summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorcmetz <cmetz@openbsd.org>1999-03-24 02:28:21 +0000
committercmetz <cmetz@openbsd.org>1999-03-24 02:28:21 +0000
commitb97cbc0112cd59f5a7997332fba5e876c23a1a14 (patch)
tree3cf37569bcc7095f260cd559943d7283258d96b2 /sys/netinet/tcp_usrreq.c
parentarrgghhh! do NOT add pkgdep lines when creating PLIST-auto; (diff)
downloadwireguard-openbsd-b97cbc0112cd59f5a7997332fba5e876c23a1a14.tar.xz
wireguard-openbsd-b97cbc0112cd59f5a7997332fba5e876c23a1a14.zip
Replace 'in6a_words' (old NRL convention) with 's6_addr32' (new BSDI et al.
convention that is more common and more specific as to the access size)
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 953ebef8e9d..38e82edc26c 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.32 1999/01/11 02:01:36 deraadt Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.33 1999/03/24 02:28:21 cmetz Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -245,8 +245,8 @@ tcp_usrreq(so, req, m, nam, control)
if (IN6_IS_ADDR_UNSPECIFIED(in6_addr) ||
IN6_IS_ADDR_MULTICAST(in6_addr) ||
(IN6_IS_ADDR_V4MAPPED(in6_addr) &&
- ((in6_addr->in6a_words[3] == INADDR_ANY) ||
- IN_MULTICAST(in6_addr->in6a_words[3]) ||
+ ((in6_addr->s6_addr32[3] == INADDR_ANY) ||
+ IN_MULTICAST(in6_addr->s6_addr32[3]) ||
in_broadcast(sin->sin_addr, NULL)))) {
error = EINVAL;
break;