diff options
Diffstat (limited to '')
-rw-r--r-- | net/ndisc6/files/patch-src-ndisc.c | 11 | ||||
-rw-r--r-- | net/ndisc6/files/patch-src_ndisc.c | 20 |
2 files changed, 20 insertions, 11 deletions
diff --git a/net/ndisc6/files/patch-src-ndisc.c b/net/ndisc6/files/patch-src-ndisc.c deleted file mode 100644 index 08d52dc50c91..000000000000 --- a/net/ndisc6/files/patch-src-ndisc.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/ndisc.c.orig 2016-12-07 16:43:04 UTC -+++ src/ndisc.c -@@ -532,7 +532,7 @@ parseadv (const uint8_t *buf, size_t len, const struct - printf (_("Stateful other conf. : %3s\n"), - gettext ((v & ND_RA_FLAG_OTHER) ? N_ ("Yes") : N_("No"))); - printf (_("Mobile home agent : %3s\n"), -- gettext ((v & ND_RA_FLAG_HOME_AGENT) ? N_ ("Yes") : N_("No"))); -+ gettext ((v & ND_RA_FLAG_HA) ? N_ ("Yes") : N_("No"))); - printf (_("Router preference : %6s\n"), pref_i2n (v)); - printf (_("Neighbor discovery proxy : %3s\n"), - gettext ((v & 0x04) ? N_ ("Yes") : N_("No"))); diff --git a/net/ndisc6/files/patch-src_ndisc.c b/net/ndisc6/files/patch-src_ndisc.c new file mode 100644 index 000000000000..053a8e8380de --- /dev/null +++ b/net/ndisc6/files/patch-src_ndisc.c @@ -0,0 +1,20 @@ +--- src/ndisc.c.orig 2023-11-10 15:28:07 UTC ++++ src/ndisc.c +@@ -451,7 +451,7 @@ parsednssl (const uint8_t *opt) + parsednssl (const uint8_t *opt) + { + const uint8_t *base; +- uint8_t optlen = opt[1]; ++ uint16_t optlen = opt[1]; + if (optlen < 2) + return -1; + +@@ -559,7 +559,7 @@ parseadv (const uint8_t *buf, size_t len, const struct + printf (_("Stateful other conf. : %3s\n"), + gettext ((v & ND_RA_FLAG_OTHER) ? N_ ("Yes") : N_("No"))); + printf (_("Mobile home agent : %3s\n"), +- gettext ((v & ND_RA_FLAG_HOME_AGENT) ? N_ ("Yes") : N_("No"))); ++ gettext ((v & ND_RA_FLAG_HA) ? N_ ("Yes") : N_("No"))); + printf (_("Router preference : %6s\n"), pref_i2n (v)); + printf (_("Neighbor discovery proxy : %3s\n"), + gettext ((v & 0x04) ? N_ ("Yes") : N_("No"))); |