diff options
author | wollman <wollman@FreeBSD.org> | 1999-01-22 16:50:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1999-01-22 16:50:45 +0000 |
commit | a6bfe6453305db2a177235ca5b6d1ef551939c94 (patch) | |
tree | 347b85aa645e9e0b3390e6140e65be70f304240c /sys/netinet | |
parent | 24e41a8a156cc336679e4b22276e466118597b18 (diff) | |
download | FreeBSD-src-a6bfe6453305db2a177235ca5b6d1ef551939c94.zip FreeBSD-src-a6bfe6453305db2a177235ca5b6d1ef551939c94.tar.gz |
Don't forward unicast packets received via link-layer multicast.
Suggested by: fenner
Original complaint: Shiva Shenoy <Shiva.Shenoy@yagosys.com>
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index d6cc0d5..0d775ea 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.110 1998/12/21 22:40:54 luigi Exp $ + * $Id: ip_input.c,v 1.111 1999/01/12 12:25:00 eivind Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -1400,7 +1400,7 @@ ip_forward(m, srcrt) #endif - if (m->m_flags & M_BCAST || in_canforward(ip->ip_dst) == 0) { + if (m->m_flags & (M_BCAST|M_MCAST) || in_canforward(ip->ip_dst) == 0) { ipstat.ips_cantforward++; m_freem(m); return; |