HomeFreeBSD

Don't check for broadcast IPs on non-bcast pkts

Description

Don't check for broadcast IPs on non-bcast pkts

in_broadcast() can be quite expensive, so skip calling it if the
incoming mbuf wasn't sent to a broadcast L2 address in the first
place.

Reviewed by: gnn
MFC after: 2 months
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7309

Details

Provenance
rstoneAuthored on
Reviewer
gnn
Differential Revision
D7309: Don't check for broadcast IPs on non-bcast pkts
Parents
rS304435: Don't iterate over the ifnet addr list in ip_output()
Branches
Unknown
Tags
Unknown