X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/5122e997b817982e567ac8959bcb3aa7a6dd5cf7..d1e348cfd503b08e7d34b7683d23aae209af0a71:/ipsec-tools/racoon/isakmp_unity.h diff --git a/ipsec-tools/racoon/isakmp_unity.h b/ipsec-tools/racoon/isakmp_unity.h index 4f09af1..b52f02c 100644 --- a/ipsec-tools/racoon/isakmp_unity.h +++ b/ipsec-tools/racoon/isakmp_unity.h @@ -1,3 +1,5 @@ +/* $NetBSD: isakmp_unity.h,v 1.4 2006/09/09 16:22:09 manu Exp $ */ + /* $KAME$ */ /* @@ -29,6 +31,10 @@ * SUCH DAMAGE. */ +/* ISAKMP notifies specific to the Unity vendor Id */ +/* Sent during xauth if the user types his password too slowly */ +#define ISAKMP_NTYPE_UNITY_HEARTBEAT 40500 + /* ISAKMP mode config attributes specific to the Unity vendor Id */ #define UNITY_BANNER 28672 #define UNITY_SAVE_PASSWD 28673 @@ -42,4 +48,25 @@ #define UNITY_BACKUP_SERVERS 28681 #define UNITY_DDNS_HOSTNAME 28682 +/* + * Unity adress/mask lists + * XXX : the padding is probably there for something ! + */ + +struct unity_network { + struct in_addr addr4; + struct in_addr mask4; + char padding[6]; +} __attribute__((__packed__)); + +struct unity_netentry { + struct unity_network network; + struct unity_netentry *next; +}; + +int splitnet_list_add(struct unity_netentry **, struct unity_network *, int *); +void splitnet_list_free(struct unity_netentry *, int *); +char * splitnet_list_2str(struct unity_netentry *); + vchar_t *isakmp_unity_req(struct ph1handle *, struct isakmp_data *); +void isakmp_unity_reply(struct ph1handle *, struct isakmp_data *);