summaryrefslogtreecommitdiffstats
path: root/test/patches/scapy-2.3.3/bier.patch
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-02-25 10:52:12 -0800
committerOle Trøan <otroan@employees.org>2018-02-26 11:29:22 +0000
commitcbcc84ba6684868996eccd1d94e445eb6868c54a (patch)
tree7675ade5f7ef7054f5910c94c9bf18bd60a57bb8 /test/patches/scapy-2.3.3/bier.patch
parente0a3544ae50b6b552acf68d4c9f2a12a119de327 (diff)
update BIER scapy patch to match the scapy repo PR
Change-Id: I4953b8444b49d1ad445c98a199ae8fd1635e24a5 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/patches/scapy-2.3.3/bier.patch')
-rw-r--r--test/patches/scapy-2.3.3/bier.patch6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/patches/scapy-2.3.3/bier.patch b/test/patches/scapy-2.3.3/bier.patch
index 82a881e9997..97e8a90b392 100644
--- a/test/patches/scapy-2.3.3/bier.patch
+++ b/test/patches/scapy-2.3.3/bier.patch
@@ -3,7 +3,7 @@ new file mode 100644
index 0000000..e173cdb
--- /dev/null
+++ b/scapy/contrib/bier.py
-@@ -0,0 +1,58 @@
+@@ -0,0 +1,56 @@
+# http://trac.secdev.org/scapy/ticket/31
+
+# scapy.contrib.description = BIER
@@ -38,9 +38,6 @@ index 0000000..e173cdb
+ BitField("s", 1, 1),
+ ByteField("ttl", 0)]
+
-+ def guess_payload_class(self, payload):
-+ return BIER
-+
+
+class BIER(Packet):
+ name = "BIER"
@@ -62,3 +59,4 @@ index 0000000..e173cdb
+bind_layers(BIER, IP, Proto=4)
+bind_layers(BIER, IPv6, Proto=5)
+bind_layers(UDP, BIFT, dport=8138)
++bind_layers(BIFT, BIER)