From 6d8c8089d696be0b32c12d40aa11a42b0b3b40bb Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Wed, 28 Dec 2016 09:37:38 +0100 Subject: [PATCH] bind vxlan-gpe over udp on port 4790 (#424) * bind vxlan-gpe over udp on port 4790 As defined here : https://tools.ietf.org/html/draft-ietf-nvo3-vxlan-gpe-03#section-5.3 Signed-off-by: Gabriel Ganne * Typo fixed --- scapy/layers/vxlan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scapy/layers/vxlan.py b/scapy/layers/vxlan.py index 287c41a0f..1d1d9ae4f 100644 --- a/scapy/layers/vxlan.py +++ b/scapy/layers/vxlan.py @@ -64,7 +64,8 @@ class VXLAN(Packet): else: return self.sprintf("VXLAN (vni=%VXLAN.vni%)") -bind_layers(UDP, VXLAN, dport=4789) # RFC standard port +bind_layers(UDP, VXLAN, dport=4789) # RFC standard vxlan port +bind_layers(UDP, VXLAN, dport=4790) # RFC standard vxlan-gpe port bind_layers(UDP, VXLAN, dport=6633) # New IANA assigned port for use with NSH bind_layers(UDP, VXLAN, dport=8472) # Linux implementation port bind_layers(VXLAN, Ether, {'flags': 0x8})