ip_vs.h 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * IP Virtual Server
  3. * Data structure for network namspace
  4. *
  5. */
  6. #ifndef IP_VS_H_
  7. #define IP_VS_H_
  8. #include <linux/list.h>
  9. #include <linux/mutex.h>
  10. #include <linux/list_nulls.h>
  11. #include <linux/ip_vs.h>
  12. #include <asm/atomic.h>
  13. #include <linux/in.h>
  14. struct ip_vs_stats;
  15. struct ip_vs_sync_buff;
  16. struct ctl_table_header;
  17. struct netns_ipvs {
  18. int gen; /* Generation */
  19. /*
  20. * Hash table: for real service lookups
  21. */
  22. #define IP_VS_RTAB_BITS 4
  23. #define IP_VS_RTAB_SIZE (1 << IP_VS_RTAB_BITS)
  24. #define IP_VS_RTAB_MASK (IP_VS_RTAB_SIZE - 1)
  25. struct list_head rs_table[IP_VS_RTAB_SIZE];
  26. /* ip_vs_lblc */
  27. int sysctl_lblc_expiration;
  28. struct ctl_table_header *lblc_ctl_header;
  29. struct ctl_table *lblc_ctl_table;
  30. /* ip_vs_lblcr */
  31. int sysctl_lblcr_expiration;
  32. struct ctl_table_header *lblcr_ctl_header;
  33. struct ctl_table *lblcr_ctl_table;
  34. };
  35. #endif /* IP_VS_H_ */