summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2.h
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-12-14 20:20:07 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-12-14 20:20:07 +0000
commit0d36d7e12683cf89f8bfb0a3c24e527f2767103f (patch)
tree2d67301ebbfac5c5773ee48f26b044c88814c70d /sys/net/pfkeyv2.h
parent4fc2aa4f886a168e016fd10062038d7aaa50c22d (diff)
Make sure that the address families of a flow's source address,
destination address and their netmasks match, otherwise return EINVAL. ok bluhm@ patrick@
Diffstat (limited to 'sys/net/pfkeyv2.h')
-rw-r--r--sys/net/pfkeyv2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h
index 6bf38870029..bef399018a9 100644
--- a/sys/net/pfkeyv2.h
+++ b/sys/net/pfkeyv2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.h,v 1.85 2020/11/05 19:28:27 phessler Exp $ */
+/* $OpenBSD: pfkeyv2.h,v 1.86 2020/12/14 20:20:06 tobhe Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) January 1998
*
@@ -429,7 +429,7 @@ void import_identities(struct ipsec_ids **, int, struct sadb_ident *,
void import_key(struct ipsecinit *, struct sadb_key *, int);
void import_lifetime(struct tdb *, struct sadb_lifetime *, int);
void import_sa(struct tdb *, struct sadb_sa *, struct ipsecinit *);
-void import_flow(struct sockaddr_encap *, struct sockaddr_encap *,
+int import_flow(struct sockaddr_encap *, struct sockaddr_encap *,
struct sadb_address *, struct sadb_address *, struct sadb_address *,
struct sadb_address *, struct sadb_protocol *, struct sadb_protocol *);
void import_udpencap(struct tdb *, struct sadb_x_udpencap *);