Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107297258
D28200.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
594 B
Referenced Files
None
Subscribers
None
D28200.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D28200: Set MAC to broadcast when pinging 255.255.255.255 as noted in RFC919
Attached
Detach File
Event Timeline
Log In to Comment