diff options
author | 2006-06-01 07:06:09 +0000 | |
---|---|---|
committer | 2006-06-01 07:06:09 +0000 | |
commit | 8a1b00247046638c8217a4e06ce3593809c3a81f (patch) | |
tree | 0813d7c475ccb07c4e16e4550ce0f68145dd245e | |
parent | spacing (diff) | |
download | wireguard-openbsd-8a1b00247046638c8217a4e06ce3593809c3a81f.tar.xz wireguard-openbsd-8a1b00247046638c8217a4e06ce3593809c3a81f.zip |
observed by Naddy, found by claudio, strange constructs require strange defines
.. fixes proto display for the non zero case
ok claudio@
-rw-r--r-- | sys/net/pfkeyv2_convert.c | 6 |
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 */ |