diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-27 22:06:55 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-27 22:06:55 +0000 |
commit | 5e0fd851952f91bc232095378edc002e062b906f (patch) | |
tree | fd79b5b8a95fc42ac65b0ab0673e4e8534b5341c /usr.sbin/bgpd/bgpd.h | |
parent | 20cc279fdcf68977a27b7c7d1f6ad8b6731da10f (diff) |
parser parts for ipsec ike, markus ok
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index b235e8dc77c..5dd0b7547ea 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.112 2004/04/27 03:53:42 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.113 2004/04/27 22:06:54 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -146,21 +146,29 @@ struct filter_set { u_int8_t prepend; }; +enum auth_method { + MD5SIG = 1, + IPSEC_MANUAL_ESP, + IPSEC_MANUAL_AH, + IPSEC_IKE +}; + struct peer_ipsec { - u_int32_t spi_in; - u_int32_t spi_out; - u_int8_t auth_alg_in; - u_int8_t auth_alg_out; - char auth_key_in[IPSEC_AUTH_KEY_LEN]; - char auth_key_out[IPSEC_AUTH_KEY_LEN]; - u_int8_t auth_keylen_in; - u_int8_t auth_keylen_out; - u_int8_t enc_alg_in; - u_int8_t enc_alg_out; - char enc_key_in[IPSEC_ENC_KEY_LEN]; - char enc_key_out[IPSEC_ENC_KEY_LEN]; - u_int8_t enc_keylen_in; - u_int8_t enc_keylen_out; + enum auth_method method; + u_int32_t spi_in; + u_int32_t spi_out; + u_int8_t auth_alg_in; + u_int8_t auth_alg_out; + char auth_key_in[IPSEC_AUTH_KEY_LEN]; + char auth_key_out[IPSEC_AUTH_KEY_LEN]; + u_int8_t auth_keylen_in; + u_int8_t auth_keylen_out; + u_int8_t enc_alg_in; + u_int8_t enc_alg_out; + char enc_key_in[IPSEC_ENC_KEY_LEN]; + char enc_key_out[IPSEC_ENC_KEY_LEN]; + u_int8_t enc_keylen_in; + u_int8_t enc_keylen_out; }; struct peer_config { |