added udp and ipv6 basic

This commit is contained in:
Marcel 2015-01-04 12:59:35 +01:00
parent f4778aaee1
commit c1fe1e32cc
3 changed files with 48 additions and 1 deletions

View File

@ -32,7 +32,6 @@ protocol:
length: 3
subfields:
- field: reserved
desc: reserved
bitfield: yes
length: 1
- field: df

31
protocols/osi3/ipv6.yml Normal file
View File

@ -0,0 +1,31 @@
---
protocol:
name: ipv6
osilayer: 3
fields:
- field: version
bitfield: yes
length: 4
- field: trafficclass
desc: traffic class
bitfield: yes
length: 8
- field: flowlabel
desc: flow label
bitfield: yes
length: 20
- field: length
desc: payload length
length: 2
- field: nextheader
desc: next header identifier (see ipv4 protocol id)
length: 1
- field: hoplimit
desc: hop limit
length: 1
- field: srcaddress
desc: source address
length: 16
- field: dstaddress
desc: destination address
length: 16

17
protocols/osi4/udp.yml Normal file
View File

@ -0,0 +1,17 @@
---
protocol:
name: udp
shortname: udp
osilayer: 4
fields:
- field: srcport
desc: source port
length: 2
- field: dstport
desc: destination port
length: 2
- field: length
desc: length of header and data
length: 2
- field: checksum
length: 2