FreeBSD Bugzilla – Attachment 221503 Details for
Bug 252596
ping to 255.255.255.255 does not set broadcast MAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
252596.diff (text/plain), 627 bytes, created by
jcaplan
on 2021-01-12 18:39:58 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
jcaplan
Created:
2021-01-12 18:39:58 UTC
Size:
627 bytes
patch
obsolete
>Index: sys/netinet/ip_output.c >=================================================================== >--- sys/netinet/ip_output.c (revision 368820) >+++ sys/netinet/ip_output.c (working copy) >@@ -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)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252596
: 221503 |
235278