2 # Location definitions for packet matching
5 # name alignment offset mask shift
6 ip.version u8 net+0 0xF0 4
7 ip.hdrlen u8 net+0 0x0F
11 ip.flag.res u8 net+6 0xff 7
14 ip.offset u16 net+6 0x1FFF
28 # name alignment offset mask shift
29 ip6.version u8 net+0 0xF0 4
30 ip6.tc u16 net+0 0xFF0 4
31 ip6.flowlabel u32 net+0 0xFFFFF
39 # Transmission Control Protocol (TCP)
41 # name alignment offset mask shift
47 # Data offset (4 bits)
48 tcp.off u8 tcp+12 0xF0 4
50 # Reserved [0 0 0] (3 bits)
51 tcp.reserved u8 tcp+12 0x04 1
53 # ECN [N C E] (3 bits)
54 tcp.ecn u16 tcp+12 0x01C00 6
56 # Individual TCP flags (0|1) (6 bits in total)
57 tcp.flag.urg u8 tcp+13 0x20 5
58 tcp.flag.ack u8 tcp+13 0x10 4
59 tcp.flag.psh u8 tcp+13 0x08 3
60 tcp.flag.rst u8 tcp+13 0x04 2
61 tpc.flag.syn u8 tcp+13 0x02 1
62 tcp.flag.fin u8 tcp+13 0x01
70 # User Datagram Protocol (UDP)
72 # name alignment offset mask shift