summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>1999-11-29 16:22:30 +0000
committerHakan Olsson <ho@cvs.openbsd.org>1999-11-29 16:22:30 +0000
commit8c72913981d44da27a97e75d58d8dbdbf85902bd (patch)
treefc4e1bb23959b744eea871e0123bb3761c762a25 /sys/netinet
parentbb1b81c5a2acc40cb8730589386a276e4de9a3a1 (diff)
Make sure M_BCAST is set for IP broadcasts, even if the packet came in as
an ethernet unicast. (cmetz@, niklas@ ok.)
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 89f6792118b..456572c9b34 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.42 1999/09/25 06:35:48 deraadt Exp $ */
+/* $OpenBSD: ip_input.c,v 1.43 1999/11/29 16:22:29 ho Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -569,8 +569,11 @@ in_iawithaddr(ina, m)
* either for subnet or net.
*/
ina.s_addr == ia->ia_subnet ||
- ina.s_addr == ia->ia_net)
+ ina.s_addr == ia->ia_net) {
+ /* Make sure M_BCAST is set */
+ m->m_flags |= M_BCAST;
return ia;
+ }
}
}