in_broadcast() called for almost every packet in ip_output()

Ryan Stone rysto32 at
Wed Jul 20 20:28:59 UTC 2016

Hang on a sec.  At this point in ip_output(), we already have the route.
Can't we just calculate the broadcast address using the route and then skip
in_broadcast() entirely?

More information about the freebsd-transport mailing list