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:
Nico Schottelius 2019-03-23 14:15:31 +01:00
commit 9f5a37f7f6
3 changed files with 41 additions and 6 deletions

View file

@ -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;
}