[p4] remove "rest" type

This commit is contained in:
Nico Schottelius 2019-03-21 20:48:56 +01:00
parent eeef4ea1e4
commit 7db850a731
2 changed files with 14 additions and 3 deletions

View File

@ -109,7 +109,6 @@ header icmp_t {
bit<8> type;
bit<8> code;
bit<16> checksum;
bit<32> rest;
}
header cpu_t {

View File

@ -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 {