Prepare switch for fully answering NDP/NS query
Including parser which might be broken in case there are no options present
This commit is contained in:
parent
f79033c0c9
commit
9f5a37f7f6
3 changed files with 41 additions and 6 deletions
|
|
@ -55,9 +55,12 @@ parser MyParser(packet_in packet,
|
|||
}
|
||||
|
||||
state icmp6_neighbor_solicitation {
|
||||
packet.extract(hdr.icmp6_na_ns);
|
||||
transition accept;
|
||||
packet.extract(hdr.icmp6_na_ns);
|
||||
|
||||
/* BUG: This MIGHT fail */
|
||||
packet.extract(hdr.icmp6_option_link_layer_addr);
|
||||
|
||||
transition accept;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue