diff options
author | 2017-04-14 20:46:31 +0000 | |
---|---|---|
committer | 2017-04-14 20:46:31 +0000 | |
commit | 459fa0feb1e08ab4109b4bff330f1f74c94429d3 (patch) | |
tree | f1e2df4d7a9791cf284ea2ef503cf04d785584c4 /sys/netinet/tcp_input.c | |
parent | adjust .Lk tests after groff and mandoc .Lk improvements (diff) | |
download | wireguard-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.c | 5 |
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 |