diff options
Diffstat (limited to 'include/linux/xfrm.h')
-rw-r--r-- | include/linux/xfrm.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index b58adc52448d..e31b8c84f2c9 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h | |||
@@ -91,8 +91,15 @@ struct xfrm_replay_state | |||
91 | }; | 91 | }; |
92 | 92 | ||
93 | struct xfrm_algo { | 93 | struct xfrm_algo { |
94 | char alg_name[64]; | ||
95 | unsigned int alg_key_len; /* in bits */ | ||
96 | char alg_key[0]; | ||
97 | }; | ||
98 | |||
99 | struct xfrm_algo_aead { | ||
94 | char alg_name[64]; | 100 | char alg_name[64]; |
95 | int alg_key_len; /* in bits */ | 101 | int alg_key_len; /* in bits */ |
102 | int alg_icv_len; /* in bits */ | ||
96 | char alg_key[0]; | 103 | char alg_key[0]; |
97 | }; | 104 | }; |
98 | 105 | ||
@@ -114,6 +121,7 @@ enum | |||
114 | XFRM_POLICY_IN = 0, | 121 | XFRM_POLICY_IN = 0, |
115 | XFRM_POLICY_OUT = 1, | 122 | XFRM_POLICY_OUT = 1, |
116 | XFRM_POLICY_FWD = 2, | 123 | XFRM_POLICY_FWD = 2, |
124 | XFRM_POLICY_MASK = 3, | ||
117 | XFRM_POLICY_MAX = 3 | 125 | XFRM_POLICY_MAX = 3 |
118 | }; | 126 | }; |
119 | 127 | ||
@@ -269,6 +277,7 @@ enum xfrm_attr_type_t { | |||
269 | XFRMA_LASTUSED, | 277 | XFRMA_LASTUSED, |
270 | XFRMA_POLICY_TYPE, /* struct xfrm_userpolicy_type */ | 278 | XFRMA_POLICY_TYPE, /* struct xfrm_userpolicy_type */ |
271 | XFRMA_MIGRATE, | 279 | XFRMA_MIGRATE, |
280 | XFRMA_ALG_AEAD, /* struct xfrm_algo_aead */ | ||
272 | __XFRMA_MAX | 281 | __XFRMA_MAX |
273 | 282 | ||
274 | #define XFRMA_MAX (__XFRMA_MAX - 1) | 283 | #define XFRMA_MAX (__XFRMA_MAX - 1) |
@@ -328,6 +337,7 @@ struct xfrm_usersa_info { | |||
328 | #define XFRM_STATE_DECAP_DSCP 2 | 337 | #define XFRM_STATE_DECAP_DSCP 2 |
329 | #define XFRM_STATE_NOPMTUDISC 4 | 338 | #define XFRM_STATE_NOPMTUDISC 4 |
330 | #define XFRM_STATE_WILDRECV 8 | 339 | #define XFRM_STATE_WILDRECV 8 |
340 | #define XFRM_STATE_ICMP 16 | ||
331 | }; | 341 | }; |
332 | 342 | ||
333 | struct xfrm_usersa_id { | 343 | struct xfrm_usersa_id { |
@@ -362,6 +372,8 @@ struct xfrm_userpolicy_info { | |||
362 | #define XFRM_POLICY_BLOCK 1 | 372 | #define XFRM_POLICY_BLOCK 1 |
363 | __u8 flags; | 373 | __u8 flags; |
364 | #define XFRM_POLICY_LOCALOK 1 /* Allow user to override global policy */ | 374 | #define XFRM_POLICY_LOCALOK 1 /* Allow user to override global policy */ |
375 | /* Automatically expand selector to include matching ICMP payloads. */ | ||
376 | #define XFRM_POLICY_ICMP 2 | ||
365 | __u8 share; | 377 | __u8 share; |
366 | }; | 378 | }; |
367 | 379 | ||