summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-04-14 20:46:32 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-04-14 20:46:32 +0000
commit14e60fde4883c2c47ca36b2f86aff14bea8edd31 (patch)
tree831d67c671284e36badecefe711a7e040eece7b0 /sys/netinet/ip_input.c
parent708bc10167aa7c173466c8d11086853693f659d3 (diff)
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/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 4a43563637d..1f0814e58d5 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.296 2017/04/05 13:35:18 deraadt Exp $ */
+/* $OpenBSD: ip_input.c,v 1.297 2017/04/14 20:46:31 bluhm Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -584,7 +584,7 @@ found:
* Switch out to protocol's input routine.
*/
ipstat_inc(ips_delivered);
- (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p);
+ (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p, AF_INET);
return;
bad:
m_freem(m);