View | Details | Raw Unified | Return to bug 252596 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/netinet/ip_output.c (+3 lines)
Lines 547-552 Link Here
547
		    ((ifp->if_flags & IFF_BROADCAST) &&
547
		    ((ifp->if_flags & IFF_BROADCAST) &&
548
		    in_ifaddr_broadcast(dst->sin_addr, ia)));
548
		    in_ifaddr_broadcast(dst->sin_addr, ia)));
549
	}
549
	}
550
	/* Fix broadcast flag if IP address in the IP packet is BROADCAST or ANY */
551
	if (ip->ip_dst.s_addr == INADDR_BROADCAST || ip->ip_dst.s_addr == INADDR_ANY)
552
		isbroadcast = 1;
550
553
551
	/* Catch a possible divide by zero later. */
554
	/* Catch a possible divide by zero later. */
552
	KASSERT(mtu > 0, ("%s: mtu %d <= 0, ro=%p (nh_flags=0x%08x) ifp=%p",
555
	KASSERT(mtu > 0, ("%s: mtu %d <= 0, ro=%p (nh_flags=0x%08x) ifp=%p",

Return to bug 252596