summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2017-04-14 20:46:31 +0000
committerbluhm <bluhm@openbsd.org>2017-04-14 20:46:31 +0000
commit459fa0feb1e08ab4109b4bff330f1f74c94429d3 (patch)
treef1e2df4d7a9791cf284ea2ef503cf04d785584c4 /sys/netinet/tcp_input.c
parentadjust .Lk tests after groff and mandoc .Lk improvements (diff)
downloadwireguard-openbsd-459fa0feb1e08ab4109b4bff330f1f74c94429d3.tar.xz
wireguard-openbsd-459fa0feb1e08ab4109b4bff330f1f74c94429d3.zip
Pass down the address family through the pr_input calls. This
allows to simplify code used for both IPv4 and IPv6. OK mikeb@ deraadt@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index f22e730395e..880c1402677 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.338 2017/02/09 15:19:32 jca Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.339 2017/04/14 20:46:31 bluhm Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -355,7 +355,7 @@ tcp_flush_queue(struct tcpcb *tp)
* protocol specification dated September, 1981 very closely.
*/
int
-tcp_input(struct mbuf **mp, int *offp, int proto)
+tcp_input(struct mbuf **mp, int *offp, int proto, int af)
{
struct mbuf *m = *mp;
int iphlen = *offp;
@@ -383,7 +383,6 @@ tcp_input(struct mbuf **mp, int *offp, int proto)
struct tdb *tdb;
int error;
#endif /* IPSEC */
- int af;
#ifdef TCP_ECN
u_char iptos;
#endif