xfrm.h 691 B

1234567891011121314151617181920212223242526
  1. #ifndef __NETNS_XFRM_H
  2. #define __NETNS_XFRM_H
  3. #include <linux/list.h>
  4. #include <linux/workqueue.h>
  5. struct netns_xfrm {
  6. struct list_head state_all;
  7. /*
  8. * Hash table to find appropriate SA towards given target (endpoint of
  9. * tunnel or destination of transport mode) allowed by selector.
  10. *
  11. * Main use is finding SA after policy selected tunnel or transport
  12. * mode. Also, it can be used by ah/esp icmp error handler to find
  13. * offending SA.
  14. */
  15. struct hlist_head *state_bydst;
  16. struct hlist_head *state_bysrc;
  17. struct hlist_head *state_byspi;
  18. unsigned int state_hmask;
  19. unsigned int state_num;
  20. struct work_struct state_hash_work;
  21. struct hlist_head state_gc_list;
  22. };
  23. #endif