2015-01-04 11:23:12 +01:00
|
|
|
# Example YAML protocol structure
|
2016-09-18 16:30:45 +02:00
|
|
|
---
|
2015-01-04 11:23:12 +01:00
|
|
|
protocol: &tcp
|
|
|
|
name: TCP
|
|
|
|
fields:
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: source port
|
|
|
|
length: 2
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: destination port
|
|
|
|
length: 2
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: sequence number
|
|
|
|
length: 4
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: acknowledgment number
|
|
|
|
length: 4
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: data offset
|
|
|
|
bitfield: yes
|
|
|
|
length: 4
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: reserved
|
|
|
|
bitfield: yes
|
|
|
|
length: 6
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: URG
|
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: ACK
|
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: PSH
|
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: RST
|
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: SYN
|
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
2016-09-18 16:30:45 +02:00
|
|
|
-
|
2015-01-04 11:23:12 +01:00
|
|
|
field: FIN
|
|
|
|
bitfield: yes
|
|
|
|
length: 1
|
|
|
|
-
|
|
|
|
field: window
|
|
|
|
length: 2
|
|
|
|
-
|
|
|
|
field: checksum
|
|
|
|
length: 2
|
|
|
|
-
|
|
|
|
field: options
|
|
|
|
length: 4
|
|
|
|
optional: true
|
|
|
|
repeatable: true
|
|
|
|
-
|
|
|
|
field: data
|
|
|
|
length: 0
|
|
|
|
data: true
|
|
|
|
osilayer: 4
|