Page MenuHomeFreeBSD

D8303.1794809450.diff
No OneTemporary

Authored By
Unknown
Size
824 B
Referenced Files
None
Subscribers
None

D8303.1794809450.diff

Index: head/sys/netinet/ip_output.c
===================================================================
--- head/sys/netinet/ip_output.c
+++ head/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

Mime Type
text/plain
Expires
Mon, Nov 16, 6:10 AM (5 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41763908
Default Alt Text
D8303.1794809450.diff (824 B)

Event Timeline