From e1d0631a37e4326084e0fa2a9cb9f6466667d9e8 Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume@valadon.net> Date: Thu, 24 Jul 2014 12:11:06 +0200 Subject: [PATCH] IPv6 next header field was overloaded twice in ICMPv6MLQuery() and ICMPv6MLReport() --HG-- branch : Issue #5100 --- scapy/layers/inet6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scapy/layers/inet6.py b/scapy/layers/inet6.py index b0ff3957..9340cd39 100644 --- a/scapy/layers/inet6.py +++ b/scapy/layers/inet6.py @@ -1312,7 +1312,7 @@ class ICMPv6MLQuery(_ICMPv6ML): # RFC 2710 type = 130 mrd = 10000 mladdr = "::" # 10s for mrd - overload_fields = {IPv6: { "dst": "ff02::1", "hlim": 1 }} + overload_fields = {IPv6: { "dst": "ff02::1", "hlim": 1, "nh": 58 }} def hashret(self): if self.mladdr != "::": return struct.pack("HH",self.mladdr)+self.payload.hashret() @@ -1325,7 +1325,7 @@ class ICMPv6MLQuery(_ICMPv6ML): # RFC 2710 class ICMPv6MLReport(_ICMPv6ML): # RFC 2710 name = "MLD - Multicast Listener Report" type = 131 - overload_fields = {IPv6: {"hlim": 1}} + overload_fields = {IPv6: {"hlim": 1, "nh": 58}} # implementer le hashret et le answers # When a node ceases to listen to a multicast address on an interface, -- GitLab