[p4] remove "rest" type
This commit is contained in:
parent
eeef4ea1e4
commit
7db850a731
2 changed files with 14 additions and 3 deletions
|
@ -109,7 +109,6 @@ header icmp_t {
|
||||||
bit<8> type;
|
bit<8> type;
|
||||||
bit<8> code;
|
bit<8> code;
|
||||||
bit<16> checksum;
|
bit<16> checksum;
|
||||||
bit<32> rest;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header cpu_t {
|
header cpu_t {
|
||||||
|
|
|
@ -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 */
|
/* Leaf */
|
||||||
state tcp {
|
state tcp {
|
||||||
packet.extract(hdr.tcp);
|
packet.extract(hdr.tcp);
|
||||||
|
|
Loading…
Reference in a new issue