diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-15 12:01:08 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-15 12:01:08 +0000 |
commit | 6912df7fa4a659c4c6cb5fcf2ab9df19e5dd546e (patch) | |
tree | 94558240e42432804635454b1a25c5a427038178 /sys/netinet | |
parent | 3e1a5e83abd9e5f455d5c73edd4397b1fcf119c0 (diff) |
IN_MULTICAST takes network order addresses
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 | ||||
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 8787479426a..3c82a2d77c7 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.25 1999/01/11 15:05:32 niklas Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.26 1999/01/15 12:01:06 niklas Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -980,7 +980,7 @@ findpcb: goto drop; } else #endif /* INET6 */ - if (IN_MULTICAST(ntohl(ti->ti_dst.s_addr))) + if (IN_MULTICAST(ti->ti_dst.s_addr)) goto drop; am = m_get(M_DONTWAIT, MT_SONAME); /* XXX */ if (am == NULL) @@ -2065,7 +2065,7 @@ dropwithreset: goto drop; } else { #endif /* INET6 */ - if (IN_MULTICAST(ntohl(ti->ti_dst.s_addr))) + if (IN_MULTICAST(ti->ti_dst.s_addr)) goto drop; #ifdef INET6 } diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 95b4ccccc7d..16dc2dd57a4 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.20 1999/01/11 16:05:46 niklas Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.21 1999/01/15 12:01:07 niklas Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -299,7 +299,7 @@ udp_input(m, va_alist) #ifdef INET6 if ((ipv6 && IN6_IS_ADDR_MULTICAST(&ipv6->ipv6_dst)) || - (ip && IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) || + (ip && IN_MULTICAST(ip->ip_dst.s_addr)) || (ip && in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif))) { #else /* INET6 */ if (IN_MULTICAST(ip->ip_dst.s_addr) || |