summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1999-01-15 12:01:06 +0000
committerniklas <niklas@openbsd.org>1999-01-15 12:01:06 +0000
commit0260e8b4c5d7c4ee704159adf1174d54e257bf49 (patch)
tree4850f883ab414b8708b67708add10d31ceac4b9a /sys/netinet/tcp_input.c
parenthmm, after all it seems Julian again, but still has nothing to do w/ the united states (; (diff)
downloadwireguard-openbsd-0260e8b4c5d7c4ee704159adf1174d54e257bf49.tar.xz
wireguard-openbsd-0260e8b4c5d7c4ee704159adf1174d54e257bf49.zip
IN_MULTICAST takes network order addresses
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 3 insertions, 3 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
}