summaryrefslogtreecommitdiff
path: root/satp.py
blob: facaee4828b004004a25f1fa30d510d258f0add8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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")