diff options
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index c75b3287d8f8..cc83443f301e 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -243,7 +243,6 @@ extern int __xfrm_state_delete(struct xfrm_state *x); | |||
243 | 243 | ||
244 | struct xfrm_state_afinfo { | 244 | struct xfrm_state_afinfo { |
245 | unsigned short family; | 245 | unsigned short family; |
246 | struct list_head *state_bydst; | ||
247 | struct list_head *state_bysrc; | 246 | struct list_head *state_bysrc; |
248 | struct list_head *state_byspi; | 247 | struct list_head *state_byspi; |
249 | int (*init_flags)(struct xfrm_state *x); | 248 | int (*init_flags)(struct xfrm_state *x); |
@@ -252,9 +251,6 @@ struct xfrm_state_afinfo { | |||
252 | xfrm_address_t *daddr, xfrm_address_t *saddr); | 251 | xfrm_address_t *daddr, xfrm_address_t *saddr); |
253 | struct xfrm_state *(*state_lookup)(xfrm_address_t *daddr, u32 spi, u8 proto); | 252 | struct xfrm_state *(*state_lookup)(xfrm_address_t *daddr, u32 spi, u8 proto); |
254 | struct xfrm_state *(*state_lookup_byaddr)(xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto); | 253 | struct xfrm_state *(*state_lookup_byaddr)(xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto); |
255 | struct xfrm_state *(*find_acq)(u8 mode, u32 reqid, u8 proto, | ||
256 | xfrm_address_t *daddr, xfrm_address_t *saddr, | ||
257 | int create); | ||
258 | int (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n); | 254 | int (*tmpl_sort)(struct xfrm_tmpl **dst, struct xfrm_tmpl **src, int n); |
259 | int (*state_sort)(struct xfrm_state **dst, struct xfrm_state **src, int n); | 255 | int (*state_sort)(struct xfrm_state **dst, struct xfrm_state **src, int n); |
260 | }; | 256 | }; |
@@ -456,18 +452,6 @@ unsigned __xfrm6_dst_hash(xfrm_address_t *addr) | |||
456 | } | 452 | } |
457 | 453 | ||
458 | static __inline__ | 454 | static __inline__ |
459 | unsigned xfrm_dst_hash(xfrm_address_t *addr, unsigned short family) | ||
460 | { | ||
461 | switch (family) { | ||
462 | case AF_INET: | ||
463 | return __xfrm4_dst_hash(addr); | ||
464 | case AF_INET6: | ||
465 | return __xfrm6_dst_hash(addr); | ||
466 | } | ||
467 | return 0; | ||
468 | } | ||
469 | |||
470 | static __inline__ | ||
471 | unsigned __xfrm4_src_hash(xfrm_address_t *addr) | 455 | unsigned __xfrm4_src_hash(xfrm_address_t *addr) |
472 | { | 456 | { |
473 | return __xfrm4_dst_hash(addr); | 457 | return __xfrm4_dst_hash(addr); |