Skip to content

Commit 31675bd

Browse files
committed
Added EtherIP as contrib (ticket #297)
1 parent ae10e12 commit 31675bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scapy/contrib/etherip.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# http://trac.secdev.org/scapy/ticket/297
3+
4+
# scapy.contrib.description = EtherIP
5+
# scapy.contrib.status = loads
6+
7+
class EtherIP(Packet):
8+
name = "EtherIP / RFC 3378"
9+
fields_desc = [ BitField("version", 3, 4),
10+
BitField("reserved", 0, 12)]
11+
12+
bind_layers( IP, EtherIP, frag=0, proto=0x61)
13+
bind_layers( EtherIP, Ether)
14+

0 commit comments

Comments
 (0)