diff options
author | bms <bms@FreeBSD.org> | 2007-03-15 08:44:22 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2007-03-15 08:44:22 +0000 |
commit | 74244a8ee15f8d26e69ee78532463ce077032893 (patch) | |
tree | 35f819feae9dacd195b34254a974e469d49ee167 /sys/netinet/ip_mroute.c | |
parent | 96df9fb668f0d0268057fbf266b7da8c3bd4584b (diff) | |
download | FreeBSD-src-74244a8ee15f8d26e69ee78532463ce077032893.zip FreeBSD-src-74244a8ee15f8d26e69ee78532463ce077032893.tar.gz |
Diff reduction with NetBSD; use IN_LOCAL_GROUP() to check if an address
is within the locally scoped multicast range 224.0.0.0/24.
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index f401798..5de70e3 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1350,7 +1350,7 @@ X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, * Don't forward a packet with time-to-live of zero or one, * or a packet destined to a local-only group. */ - if (ip->ip_ttl <= 1 || ntohl(ip->ip_dst.s_addr) <= INADDR_MAX_LOCAL_GROUP) { + if (ip->ip_ttl <= 1 || IN_LOCAL_GROUP(ntohl(ip->ip_dst.s_addr))) { MFC_UNLOCK(); VIF_UNLOCK(); return 0; |