improved Makefile (clean now for -j *)
[anytun.git] / satp.py
blobfacaee4828b004004a25f1fa30d510d258f0add8
1 #! /usr/bin/env python
3 # Set log level to benefit from Scapy warnings
4 import logging
5 logging.getLogger("scapy").setLevel(1)
7 from scapy import *
9 class SATP(Packet):
10 name = "SATP"
11 fields_desc = [
12 IntField("seq", None),
13 ShortField("id", None)
16 layer_bonds += [ ( UDP, SATP, { "sport" : 4444, "dport" : 4444 }) ]
18 for l in layer_bonds:
19 bind_layers(*l)
20 del(l)
23 if __name__ == "__main__":
24 interact(mydict=globals(), mybanner="Test add-on v3.14")