summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2006-06-01 07:06:10 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2006-06-01 07:06:10 +0000
commitfe5653519d4299584ef926c50e50d5899d6e4e12 (patch)
tree4ac4b19fb6aec89070d74017b431db083632b2c2 /sys
parent1d0b9e81ef6f19d1a9e7e4e43e26c5d264096e72 (diff)
observed by Naddy, found by claudio, strange constructs require strange defines
.. fixes proto display for the non zero case ok claudio@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pfkeyv2_convert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pfkeyv2_convert.c b/sys/net/pfkeyv2_convert.c
index ca4a38edf5c..e9bad2393b2 100644
--- a/sys/net/pfkeyv2_convert.c
+++ b/sys/net/pfkeyv2_convert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2_convert.c,v 1.27 2006/05/30 17:41:44 todd Exp $ */
+/* $OpenBSD: pfkeyv2_convert.c,v 1.28 2006/06/01 07:06:09 todd Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@keromytis.org)
*
@@ -625,12 +625,12 @@ export_flow(void **p, u_int8_t ftype, struct sockaddr_encap *flow,
sizeof(uint64_t);
switch (flow->sen_type) {
#ifdef INET
- case AF_INET:
+ case SENT_IP4:
sab->sadb_protocol_proto = flow->sen_proto;
break;
#endif /* INET */
#ifdef INET6
- case AF_INET6:
+ case SENT_IP6:
sab->sadb_protocol_proto = flow->sen_ip6_proto;
break;
#endif /* INET6 */