Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177604258
D8303.1794826117.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
809 B
Referenced Files
None
Subscribers
None
D8303.1794826117.diff
View Options
Index: sys/netinet/ip_output.c
===================================================================
--- sys/netinet/ip_output.c
+++ sys/netinet/ip_output.c
@@ -350,7 +350,8 @@
have_ia_ref = 1;
ifp = ia->ia_ifp;
ip->ip_ttl = 1;
- isbroadcast = in_ifaddr_broadcast(dst->sin_addr, ia);
+ isbroadcast = ifp->if_flags & IFF_BROADCAST ?
+ in_ifaddr_broadcast(dst->sin_addr, ia) : 0;
} else if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) &&
imo != NULL && imo->imo_multicast_ifp != NULL) {
/*
@@ -403,8 +404,10 @@
gw = (struct sockaddr_in *)rte->rt_gateway;
if (rte->rt_flags & RTF_HOST)
isbroadcast = (rte->rt_flags & RTF_BROADCAST);
- else
+ else if (ifp->if_flags & IFF_BROADCAST)
isbroadcast = in_ifaddr_broadcast(gw->sin_addr, ia);
+ else
+ isbroadcast = 0;
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 10:48 AM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41773976
Default Alt Text
D8303.1794826117.diff (809 B)
Attached To
Mode
D8303: Fix ip_output() on point-to-point links
Attached
Detach File
Event Timeline