xfrm.h 504 B

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