++todos ++proto

This commit is contained in:
Nico Schottelius 2019-02-21 23:48:04 +01:00
commit 8bc292564e
2 changed files with 14 additions and 2 deletions

View file

@ -13,7 +13,12 @@ typedef bit<9> port_t;
const bit<16> TYPE_IPV4 = 0x0800;
const bit<16> TYPE_IPV6 = 0x86DD;
const bit<8> TYPE_TCP = 6;
const bit<8> PROTO_ICMP = 1;
const bit<8> PROTO_TCP = 6;
const bit<8> PROTO_UDP = 17;
const bit<8> PROTO_ICMP6 = 58;
const bit<8> TCP_SEQ_LEN = 4;