diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2007-05-04 15:55:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-04 15:55:39 -0400 |
commit | 5a6d34162f5c6f522f857df274f1c8240f161e11 (patch) | |
tree | 537d305eef465617944821a1df59da3523a640df /include/linux | |
parent | af11e31609d93765c1b22611592543e028f7aa54 (diff) |
[XFRM] SPD info TLV aggregation
Aggregate the SPD info TLVs.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/xfrm.h | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index c237fe3af8ce..b58adc52448d 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h | |||
@@ -288,36 +288,29 @@ struct xfrmu_sadhinfo { | |||
288 | __u32 sadhmcnt; /* max allowed hash bkts */ | 288 | __u32 sadhmcnt; /* max allowed hash bkts */ |
289 | }; | 289 | }; |
290 | 290 | ||
291 | /* SPD Table filter flags */ | ||
292 | enum xfrm_spd_ftype_t { | ||
293 | XFRM_SPD_UNSPEC, | ||
294 | XFRM_SPD_HMASK=1, | ||
295 | XFRM_SPD_HMAX=2, | ||
296 | XFRM_SPD_ICNT=4, | ||
297 | XFRM_SPD_OCNT=8, | ||
298 | XFRM_SPD_FCNT=16, | ||
299 | XFRM_SPD_ISCNT=32, | ||
300 | XFRM_SPD_OSCNT=64, | ||
301 | XFRM_SPD_FSCNT=128, | ||
302 | __XFRM_SPD_MAX | ||
303 | |||
304 | #define XFRM_SPD_MAX (__XFRM_SPD_MAX - 1) | ||
305 | }; | ||
306 | enum xfrm_spdattr_type_t { | 291 | enum xfrm_spdattr_type_t { |
307 | XFRMA_SPD_UNSPEC, | 292 | XFRMA_SPD_UNSPEC, |
308 | XFRMA_SPDHMASK, | 293 | XFRMA_SPD_INFO, |
309 | XFRMA_SPDHMAX, | 294 | XFRMA_SPD_HINFO, |
310 | XFRMA_SPDICNT, | ||
311 | XFRMA_SPDOCNT, | ||
312 | XFRMA_SPDFCNT, | ||
313 | XFRMA_SPDISCNT, | ||
314 | XFRMA_SPDOSCNT, | ||
315 | XFRMA_SPDFSCNT, | ||
316 | __XFRMA_SPD_MAX | 295 | __XFRMA_SPD_MAX |
317 | 296 | ||
318 | #define XFRMA_SPD_MAX (__XFRMA_SPD_MAX - 1) | 297 | #define XFRMA_SPD_MAX (__XFRMA_SPD_MAX - 1) |
319 | }; | 298 | }; |
320 | 299 | ||
300 | struct xfrmu_spdinfo { | ||
301 | __u32 incnt; | ||
302 | __u32 outcnt; | ||
303 | __u32 fwdcnt; | ||
304 | __u32 inscnt; | ||
305 | __u32 outscnt; | ||
306 | __u32 fwdscnt; | ||
307 | }; | ||
308 | |||
309 | struct xfrmu_spdhinfo { | ||
310 | __u32 spdhcnt; | ||
311 | __u32 spdhmcnt; | ||
312 | }; | ||
313 | |||
321 | struct xfrm_usersa_info { | 314 | struct xfrm_usersa_info { |
322 | struct xfrm_selector sel; | 315 | struct xfrm_selector sel; |
323 | struct xfrm_id id; | 316 | struct xfrm_id id; |