summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_carp.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/ip_carp.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/ip_carp.c')
-rw-r--r--sys/netinet/ip_carp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index ee7846d2013..c5d53105268 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.307 2017/04/11 14:43:49 dhill Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.308 2017/04/14 20:46:31 bluhm Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -415,7 +415,7 @@ carp_hmac_verify(struct carp_vhost_entry *vhe, u_int32_t counter[2],
}
int
-carp_proto_input(struct mbuf **mp, int *offp, int proto)
+carp_proto_input(struct mbuf **mp, int *offp, int proto, int af)
{
struct ifnet *ifp;
@@ -511,7 +511,7 @@ carp_proto_input_if(struct ifnet *ifp, struct mbuf **mp, int *offp, int proto)
#ifdef INET6
int
-carp6_proto_input(struct mbuf **mp, int *offp, int proto)
+carp6_proto_input(struct mbuf **mp, int *offp, int proto, int af)
{
struct ifnet *ifp;