Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
/ scapy-vxlan Public archive

A scapy clone, with support for additional packet headers

Notifications You must be signed in to change notification settings

p4lang/scapy-vxlan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS REPOSITORY IS DEPRECATED AND IS NO LONGER MAINTAINED. P4LANG SOFTWARE NOW
USES UPSTREAM SCAPY, WHICH SUPPORTS VXLAN, GENEVE, ETC.

Barefoot modified scapy, which supports VXLAN. Waiting for VXLAN support to be
added to the main scapy repo.
This modified repo now also supports a ERSPAN-like header.

To install:
sudo python setup.py install

To check that the modifications work, open a scapy CLI (just type 'scapy' in a
terminal) and type the following:

Welcome to Scapy (2.2.0-dev)
>>> load_contrib('vxlan')
>>> Ether()/IP()/UDP()/VXLAN()/Ether()/IP()/TCP()
<Ether  type=0x800 |<IP  frag=0 proto=udp |<UDP  dport=4789 |<VXLAN  |<Ether
type=0x800 |<IP  frag=0 proto=tcp |<TCP  |>>>>>>>
>>> load_contrib('erspan')
>>> Ether()/IP()/GRE()/ERSPAN()/Ether()/IP()/TCP()
<Ether  type=0x800 |<IP  frag=0 proto=gre |<GRE  proto=0x22eb |<ERSPAN  |<Ether
type=0x800 |<IP  frag=0 proto=tcp |<TCP  |>>>>>>>
>>>

Note how the UDP dport and the GRE proto number are updated automatically.

About

A scapy clone, with support for additional packet headers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages