diff --git a/protocols/osi3/ipv4.yml b/protocols/osi3/ipv4.yml index 40734c8..2ecd550 100644 --- a/protocols/osi3/ipv4.yml +++ b/protocols/osi3/ipv4.yml @@ -32,7 +32,6 @@ protocol: length: 3 subfields: - field: reserved - desc: reserved bitfield: yes length: 1 - field: df diff --git a/protocols/osi3/ipv6.yml b/protocols/osi3/ipv6.yml new file mode 100644 index 0000000..6729f65 --- /dev/null +++ b/protocols/osi3/ipv6.yml @@ -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 \ No newline at end of file diff --git a/protocols/osi4/udp.yml b/protocols/osi4/udp.yml new file mode 100644 index 0000000..dffcdeb --- /dev/null +++ b/protocols/osi4/udp.yml @@ -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 \ No newline at end of file