Bug in ICMP redirect handling

prabhakar lakhera prabhakar.lakhera at gmail.com
Tue Feb 21 22:50:34 UTC 2017

This seems like a bug:


I believe the ordering of if/else checks for cmd value is important as the
last one checks for mapping of PRC* to an error.

Given that the mapping is defined to be 0 for redirects (only cached routes
are supposed to be invalidated), looks like right now we'll simply return

else if ((unsigned)cmd >= PRC_NCMDS || *inetctlerrmap[cmd] == 0)* return;

The above is I guess is only in the head and not in a major version yet.

More information about the freebsd-net mailing list