From ed1f67fb9e9d391ecf92406e8738e0f032d084c4 Mon Sep 17 00:00:00 2001 From: miawgogo <7449028+miawgogo@users.noreply.github.com> Date: Sat, 10 Jan 2026 17:26:38 +0000 Subject: [PATCH 1/2] layers.inet6: add SNAC flag its a recent flag mainly added for Thread https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#icmpv6-parameters-11 --- scapy/layers/inet6.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scapy/layers/inet6.py b/scapy/layers/inet6.py index dc101664796..03a1fbabe1f 100644 --- a/scapy/layers/inet6.py +++ b/scapy/layers/inet6.py @@ -2208,7 +2208,8 @@ class ICMPv6ND_RA(_ICMPv6NDGuessPayload, _ICMPv6): BitField("H", 0, 1), BitEnumField("prf", 1, 2, icmp6ndraprefs), # RFC 4191 BitField("P", 0, 1), - BitField("res", 0, 2), + BitField("S", 0, 1), + BitField("res", 0, 1), ShortField("routerlifetime", 1800), IntField("reachabletime", 0), IntField("retranstimer", 0)] From 6177400e69b0873e664f53e7f6d45f3e746e0439 Mon Sep 17 00:00:00 2001 From: miawgogo <7449028+miawgogo@users.noreply.github.com> Date: Sat, 10 Jan 2026 21:16:43 +0000 Subject: [PATCH 2/2] layers.inet6: document what IETF document the flag belongs to --- scapy/layers/inet6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/layers/inet6.py b/scapy/layers/inet6.py index 03a1fbabe1f..949df3ffc86 100644 --- a/scapy/layers/inet6.py +++ b/scapy/layers/inet6.py @@ -2208,7 +2208,7 @@ class ICMPv6ND_RA(_ICMPv6NDGuessPayload, _ICMPv6): BitField("H", 0, 1), BitEnumField("prf", 1, 2, icmp6ndraprefs), # RFC 4191 BitField("P", 0, 1), - BitField("S", 0, 1), + BitField("S", 0, 1), # draft-ietf-6man-snac-router-ra-flag-03 BitField("res", 0, 1), ShortField("routerlifetime", 1800), IntField("reachabletime", 0),