From: Martin Willi Date: Mon, 18 Apr 2011 12:51:05 +0000 (+0200) Subject: Updated copy of linux/xfrm.h to 2.6.39, featuring ESN support X-Git-Tag: 4.5.2~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7925cad048f5461b229ddbe0995c7af7014847c;p=thirdparty%2Fstrongswan.git Updated copy of linux/xfrm.h to 2.6.39, featuring ESN support --- diff --git a/src/include/linux/xfrm.h b/src/include/linux/xfrm.h index 930fdd2de7..22e61fdf75 100644 --- a/src/include/linux/xfrm.h +++ b/src/include/linux/xfrm.h @@ -84,6 +84,16 @@ struct xfrm_replay_state { __u32 bitmap; }; +struct xfrm_replay_state_esn { + unsigned int bmp_len; + __u32 oseq; + __u32 seq; + __u32 oseq_hi; + __u32 seq_hi; + __u32 replay_window; + __u32 bmp[0]; +}; + struct xfrm_algo { char alg_name[64]; unsigned int alg_key_len; /* in bits */ @@ -284,6 +294,7 @@ enum xfrm_attr_type_t { XFRMA_ALG_AUTH_TRUNC, /* struct xfrm_algo_auth */ XFRMA_MARK, /* struct xfrm_mark */ XFRMA_TFCPAD, /* __u32 */ + XFRMA_REPLAY_ESN_VAL, /* struct xfrm_replay_esn */ __XFRMA_MAX #define XFRMA_MAX (__XFRMA_MAX - 1) @@ -350,6 +361,8 @@ struct xfrm_usersa_info { #define XFRM_STATE_WILDRECV 8 #define XFRM_STATE_ICMP 16 #define XFRM_STATE_AF_UNSPEC 32 +#define XFRM_STATE_ALIGN4 64 +#define XFRM_STATE_ESN 128 }; struct xfrm_usersa_id {