File: 0007-Use-IPv4-dummy-address-as-default-for-tayga-v4-addr.patch

package info (click to toggle)
clatd 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: perl: 821; makefile: 51; sh: 43
file content (54 lines) | stat: -rw-r--r-- 2,316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From: =?utf-8?q?Daniel_Gr=C3=B6ber?= <dxld@darkboxed.org>
Date: Mon, 17 Nov 2025 14:01:42 +0100
Subject: Use IPv4 dummy address as default for tayga-v4-addr

This is suggested by the IETF v6ops draft
https://datatracker.ietf.org/doc/html/draft-ietf-v6ops-icmpext-xlat-v6only-source
tayga doesn't yet implement the SHOULD on adding a Node Identification
Extension Object, but that's ok. It's only a SHOULD :-).

See also:

 https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml#:~:text=192.0.0.8/32

 https://datatracker.ietf.org/doc/html/rfc7600#:~:text=192.0.0.8/32
---
 clatd     | 2 +-
 clatd.pod | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/clatd b/clatd
index f4f1879..cbe1e45 100755
--- a/clatd
+++ b/clatd
@@ -54,7 +54,7 @@ $CFG{"plat-fallback-prefix"} = undef;	# fallback prefix if no prefix is found
 $CFG{"proxynd-enable"} = undef;		# add proxy-nd entry for clat?
 $CFG{"route-table"} = 0xc1a7;		# add route to CLAT in this table
 $CFG{"tayga-conffile"} = undef;		# make a temporary one by default
-$CFG{"tayga-v4-addr"} = "192.0.0.2";	# from RFC 7335
+$CFG{"tayga-v4-addr"} = "192.0.0.8";	# IPv4 dummy address - stolen from RFC7600
 $CFG{"v4-conncheck-enable"} = 1;	# exit if there's already a defroute
 $CFG{"v4-conncheck-delay"} = 10;	# seconds before checking for v4 conn.
 $CFG{"v4-defaultroute-enable"} = 1;	# add a v4 defaultroute via the CLAT?
diff --git a/clatd.pod b/clatd.pod
index 3362442..a038020 100644
--- a/clatd.pod
+++ b/clatd.pod
@@ -329,14 +329,15 @@ be created (and also deleted when B<clatd> is shutting down), but you may also
 specify an explicit configuration file here, which will not be deleted on
 shutdown.
 
-=item B<tayga-v4-addr> (default: I<192.0.0.2>)
+=item B<tayga-v4-addr> (default: I<192.0.0.8>)
 
 The IPv4 address assigned to the TAYGA process. This is used for emitting
 ICMPv4 errors back to the host (i.e., it will show up as the first hop when
 tracerouting to IPv4 destinations), and you may also ping it to verify that
 the TAYGA process is still alive and well.
 
-The default address is one from I<RFC 7335>.
+The default address is the IPv4 dummy address I<RFC 7600> as suggested by
+I<draft-ietf-v6ops-icmpext-xlat-v6only-source>.
 
 =item B<v4-conncheck-enable=bool> (default: I<yes>)