summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:43:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:43:53 +0000
commit7277994f59337cd053e0d87f368a4485e446266c (patch)
tree3163155048af67af32eff2fd59170471a547254b /debian
parentUpdating vcs fields. (diff)
downloadwide-dhcpv6-7277994f59337cd053e0d87f368a4485e446266c.tar.xz
wide-dhcpv6-7277994f59337cd053e0d87f368a4485e446266c.zip
Ignoring XID mismatch from DHCP6 servers in dhcp6c to make debian-installer work with dhcp6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/progress-linux/0001-ignore-xid-mismatch.patch26
-rw-r--r--debian/patches/series1
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0001-ignore-xid-mismatch.patch b/debian/patches/progress-linux/0001-ignore-xid-mismatch.patch
new file mode 100644
index 0000000..76a6123
--- /dev/null
+++ b/debian/patches/progress-linux/0001-ignore-xid-mismatch.patch
@@ -0,0 +1,26 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Ignoring XID mismatch from DHCP6 servers in dhcp6c to make debian-installer work with dhcp6.
+
+diff -Naurp wide-dhcpv6.orig/dhcp6c.c wide-dhcpv6/dhcp6c.c
+--- wide-dhcpv6.orig/dhcp6c.c
++++ wide-dhcpv6/dhcp6c.c
+@@ -1516,8 +1516,7 @@ client6_recvadvert(ifp, dh6, len, optinf
+ /* find the corresponding event based on the received xid */
+ ev = find_event_withid(ifp, ntohl(dh6->dh6_xid) & DH6_XIDMASK);
+ if (ev == NULL) {
+- debug_printf(LOG_INFO, FNAME, "XID mismatch");
+- return (-1);
++ debug_printf(LOG_INFO, FNAME, "XID mismatch (ignored)");
+ }
+
+ /* packet validation based on Section 15.3 of RFC3315. */
+@@ -1775,8 +1774,7 @@ client6_recvreply(ifp, dh6, len, optinfo
+ /* find the corresponding event based on the received xid */
+ ev = find_event_withid(ifp, ntohl(dh6->dh6_xid) & DH6_XIDMASK);
+ if (ev == NULL) {
+- debug_printf(LOG_INFO, FNAME, "XID mismatch");
+- return (-1);
++ debug_printf(LOG_INFO, FNAME, "XID mismatch (ignored)");
+ }
+
+ state = ev->state;
diff --git a/debian/patches/series b/debian/patches/series
index 06b270c..e3bc3fe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -20,3 +20,4 @@
0020-Adding-option-to-randomize-interface-id.patch
0021-Make-sla-len-config-optional.patch
0022-Make-sla-id-config-optional.patch
+progress-linux/0001-ignore-xid-mismatch.patch