summaryrefslogtreecommitdiff
path: root/sys/netinet6/route6.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/netinet6/route6.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/netinet6/route6.c')
-rw-r--r--sys/netinet6/route6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c
index 357fe45a78d..914059abc69 100644
--- a/sys/netinet6/route6.c
+++ b/sys/netinet6/route6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6.c,v 1.20 2017/02/05 16:04:14 jca Exp $ */
+/* $OpenBSD: route6.c,v 1.21 2017/04/14 20:46:31 bluhm Exp $ */
/* $KAME: route6.c,v 1.22 2000/12/03 00:54:00 itojun Exp $ */
/*
@@ -50,7 +50,7 @@
*/
int
-route6_input(struct mbuf **mp, int *offp, int proto)
+route6_input(struct mbuf **mp, int *offp, int proto, int af)
{
struct ip6_hdr *ip6;
struct mbuf *m = *mp;