Use if instead of switch
This commit is contained in:
parent
01d9305350
commit
907f677e2d
1 changed files with 2 additions and 4 deletions
|
@ -84,11 +84,9 @@ control MyIngress(inout headers hdr,
|
|||
|
||||
hdr.ipv4.protocol = hdr.ipv6.next_header;
|
||||
|
||||
switch(hdr.ipv6.next_header) {
|
||||
PROTO_ICMP6: {
|
||||
if(hdr.ipv6.next_header == PROTO_ICMP6) {
|
||||
nat64_icmp6;
|
||||
}
|
||||
}
|
||||
|
||||
hdr.ipv6.setInvalid();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue