diff options
author | Christian Pointner <equinox@anytun.org> | 2009-12-05 13:37:34 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-12-05 13:37:34 +0000 |
commit | 62774a5d9ede8c9c23dc4208022508c2308404f2 (patch) | |
tree | 8bd563df4554f41fdbc8c5bc8ab99d05846c7b6a /satp.py | |
parent | initial checkin (tags, trunk, branches) (diff) |
added all common stuff from anytun repo
Diffstat (limited to 'satp.py')
-rwxr-xr-x | satp.py | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#! /usr/bin/env python + +# Set log level to benefit from Scapy warnings +import logging +logging.getLogger("scapy").setLevel(1) + +from scapy import * + +class SATP(Packet): + name = "SATP" + fields_desc = [ + IntField("seq", None), + ShortField("id", None) + ] + +layer_bonds += [ ( UDP, SATP, { "sport" : 4444, "dport" : 4444 }) ] + +for l in layer_bonds: + bind_layers(*l) +del(l) + + +if __name__ == "__main__": + interact(mydict=globals(), mybanner="Test add-on v3.14") + |