From eec78d29da9b742fc49d07b8eac1e66bfb17f580 Mon Sep 17 00:00:00 2001
From: Pierre LALET <pierre.lalet@cea.fr>
Date: Fri, 22 Jan 2016 09:23:36 +0100
Subject: [PATCH] Fix layer binding in IGMPv3 (contrib)

---
 scapy/contrib/igmpv3.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/scapy/contrib/igmpv3.py b/scapy/contrib/igmpv3.py
index 1ab1bae4..65ae222b 100644
--- a/scapy/contrib/igmpv3.py
+++ b/scapy/contrib/igmpv3.py
@@ -264,7 +264,6 @@ class IGMPv3(Packet):
     return retCode
 
 
-bind_layers( IP,        IGMPv3,      frag=0, proto=2, ttl=1, tos=0xc0)
-bind_layers( IGMPv3,    IGMPv3gr,    frag=0, proto=2)
-bind_layers( IGMPv3gr,  IGMPv3gr,    frag=0, proto=2)
-
+bind_layers(IP, IGMPv3, frag=0, proto=2, ttl=1, tos=0xc0)
+bind_layers(IGMPv3, IGMPv3gr)
+bind_layers(IGMPv3gr, IGMPv3gr)
-- 
GitLab