smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.82k stars 433 forks source link

fix: enter unreachable when discarding HBH Option with multicast destination address #996

Closed thvdveld closed 2 months ago

thvdveld commented 2 months ago

It was previously possible to enter an unreachable path when the HBH option type was 0b11 and the destination address was multicast. This is now fixed in the interface.

I also changed the way an HBH option type is parsed. Only the 2 highest order bits indicate what action must be taken, meaning that we can't have an unknown state.