diff --git a/p4src/headers.p4 b/p4src/headers.p4 index 203c54a..81a0e43 100644 --- a/p4src/headers.p4 +++ b/p4src/headers.p4 @@ -109,7 +109,6 @@ header icmp_t { bit<8> type; bit<8> code; bit<16> checksum; - bit<32> rest; } header cpu_t { diff --git a/p4src/parsers.p4 b/p4src/parsers.p4 index 4988ede..66f99bd 100644 --- a/p4src/parsers.p4 +++ b/p4src/parsers.p4 @@ -46,6 +46,18 @@ parser MyParser(packet_in packet, } } + /* + state icmp6 { + packet.extract(hdr.icmp6); + transition select(hdr.ipv6.next_header){ + ICMP6_NS: + default: accept; + } + } + state icmp6_neighbor_solicitation { + + } */ + /* Leaf */ state tcp { packet.extract(hdr.tcp); @@ -58,8 +70,8 @@ parser MyParser(packet_in packet, } state icmp6 { - packet.extract(hdr.icmp6); - transition accept; + packet.extract(hdr.icmp6); + transition accept; } state icmp {