A scapy clone, with support for additional packet headers
Python
Latest commit 6e30a47 Jul 22, 2016 @arielt arielt committed on GitHub Merge pull request #7 from barefootnetworks/ariel
erspan platform specific subheader
Permalink
Failed to load latest commit information.
bin missing import Aug 27, 2013
doc Documentation update (comment from pbi in issue #5058) Sep 3, 2013
scapy Merge pull request #7 from barefootnetworks/ariel Jul 22, 2016
test missing import Aug 27, 2013
.gitignore Add geneve support Sep 19, 2014
.hgsigs
MANIFEST.in missing import Aug 27, 2013
README updated README with install instructions Aug 18, 2014
run_scapy missing import Aug 27, 2013
run_scapy.bat missing import Aug 27, 2013
setup.py

README

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.