Scapy upgrade to 2.4.0.rc5

- many of the patches fd.io applies in test/patches/2.3.3 are now upstreamed in 2.4
- 2.4 adds support for IGMPv3 which is my main motivation for the upgrade

Change-Id: If2c0a524e3cba320b4a5d8cd07817c6ea2bf0c5a
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2018-02-25 12:27:18 -08:00
committed by Dave Wallace
parent f38bef46a3
commit 2bc940272e
11 changed files with 211 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ class TestGtpu(BridgeDomain, VppTestCase):
return (Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) /
IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) /
UDP(sport=self.dport, dport=self.dport, chksum=0) /
GTP_U_Header(TEID=vni, gtp_type=self.gtp_type, length=150) /
GTP_U_Header(teid=vni, gtp_type=self.gtp_type, length=150) /
pkt)
def encap_mcast(self, pkt, src_ip, src_mac, vni):
@@ -38,7 +38,7 @@ class TestGtpu(BridgeDomain, VppTestCase):
return (Ether(src=src_mac, dst=self.mcast_mac) /
IP(src=src_ip, dst=self.mcast_ip4) /
UDP(sport=self.dport, dport=self.dport, chksum=0) /
GTP_U_Header(TEID=vni, gtp_type=self.gtp_type, length=150) /
GTP_U_Header(teid=vni, gtp_type=self.gtp_type, length=150) /
pkt)
def decapsulate(self, pkt):
@@ -68,8 +68,8 @@ class TestGtpu(BridgeDomain, VppTestCase):
# Verify UDP destination port is GTPU 2152, source UDP port could be
# arbitrary.
self.assertEqual(pkt[UDP].dport, type(self).dport)
# Verify TEID
self.assertEqual(pkt[GTP_U_Header].TEID, vni)
# Verify teid
self.assertEqual(pkt[GTP_U_Header].teid, vni)
def test_encap(self):
""" Encapsulation test