diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-05-27 19:15:45 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-05-27 19:15:45 +0000 |
commit | ec8755dd420eb4c4c0f442685119e84318f13ef9 (patch) | |
tree | a948cd74b13122ecbfef74c4c23bb4e54b865603 | |
parent | 8ff762798c67c0ac6c691fe07425f4ac2c8c6ca4 (diff) |
Use SADB_SATYPE_* instead of IPPROTO_*
-rw-r--r-- | sbin/ipsecctl/pfkey.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ipsecctl/pfkey.c b/sbin/ipsecctl/pfkey.c index b31a62feeec..51df7f448aa 100644 --- a/sbin/ipsecctl/pfkey.c +++ b/sbin/ipsecctl/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.6 2005/05/27 15:36:02 hshoexer Exp $ */ +/* $OpenBSD: pfkey.c,v 1.7 2005/05/27 19:15:44 hshoexer Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Markus Friedl <markus@openbsd.org> @@ -332,13 +332,13 @@ pfkey_parse(struct sadb_msg *msg, struct ipsec_rule *rule) int len; switch (msg->sadb_msg_satype) { - case IPPROTO_ESP: + case SADB_SATYPE_ESP: rule->proto = IPSEC_ESP; break; - case IPPROTO_AH: + case SADB_SATYPE_AH: rule->proto = IPSEC_AH; break; - case IPPROTO_IPCOMP: + case SADB_X_SATYPE_IPCOMP: default: return (1); } |