xfrm.h 811 B

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