Page MenuHomeFreeBSD

D28200.diff
No OneTemporary

D28200.diff

Index: sys/netinet/ip_output.c
===================================================================
--- sys/netinet/ip_output.c
+++ sys/netinet/ip_output.c
@@ -502,7 +502,9 @@
if (ro->ro_nh->nh_flags & NHF_HOST)
isbroadcast = (ro->ro_nh->nh_flags & NHF_BROADCAST);
else if (ifp->if_flags & IFF_BROADCAST)
- isbroadcast = in_ifaddr_broadcast(gw->sin_addr, ia);
+ isbroadcast = ((dst->sin_addr.s_addr == INADDR_BROADCAST) ||
+ (dst->sin_addr.s_addr == INADDR_ANY) ||
+ in_ifaddr_broadcast(gw->sin_addr, ia));
else
isbroadcast = 0;
if (ro->ro_nh->nh_flags & NHF_HOST)

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 4:03 AM (20 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15775996
Default Alt Text
D28200.diff (594 B)

Event Timeline