Folks,

I have a proposed fix for:

6774464 assertion failure in net_hook_register() when running zone tests

The webrev is here:

http://cr.opensolaris.org/~seb/webrev.6774464/

The fix is quite simple; check for failure from net_protocol_lookup().
A related fix that I'm making while in ipnet_register_netihook() is to
use a netid_t for this lookup instead of netstackid_t.  Two two values
happen to be the same due to the implementation, but proper use of the
API would mandate a conversion from netstackid_t (which we have stored
in ipnet_stack_t) to netid_t in order to do use the
net_protocol_lookup() function.

-Seb



Reply via email to