xfrm.h 565 B

12345678910111213141516171819202122
  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. struct hlist_head *state_byspi;
  17. unsigned int state_hmask;
  18. };
  19. #endif