diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-26 01:59:27 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-26 01:59:27 +0000 |
commit | 78b6b421cae294c5b35379bb20ef420010b727cf (patch) | |
tree | 2d6a4a476c518518f670a94ef811a3a4477f5f1c /usr.sbin/bgpd/bgpd.h | |
parent | b5a414f622eb0da35a8d46aad2dc92368d1c38fd (diff) |
structs for ipsec, with markus
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 48029c3b392..52dfd98db5a 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.109 2004/04/25 07:16:24 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.110 2004/04/26 01:59:26 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -24,6 +24,7 @@ #include <netinet/in.h> #include <arpa/inet.h> #include <net/if.h> +#include <net/pfkeyv2.h> #include <poll.h> #include <stdarg.h> @@ -34,6 +35,8 @@ #define BGPD_USER "_bgpd" #define PEER_DESCR_LEN 32 #define TCP_MD5_KEY_LEN 80 +#define IPSEC_ENC_KEY_LEN 32 +#define IPSEC_AUTH_KEY_LEN 20 #define MAX_PKTSIZE 4096 #define MIN_HOLDTIME 3 @@ -143,6 +146,19 @@ struct filter_set { u_int8_t prepend; }; +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 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]; +}; + struct peer_config { u_int32_t id; u_int32_t groupid; @@ -164,6 +180,7 @@ struct peer_config { enum announce_type announce_type; enum enforce_as enforce_as; char tcp_md5_key[TCP_MD5_KEY_LEN]; + struct peer_ipsec ipsec; u_int8_t capabilities; enum reconf_action reconf_action; }; |