ipv4.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * ipv4 in net namespaces
  3. */
  4. #ifndef __NETNS_IPV4_H__
  5. #define __NETNS_IPV4_H__
  6. #include <net/inet_frag.h>
  7. struct ctl_table_header;
  8. struct ipv4_devconf;
  9. struct fib_rules_ops;
  10. struct hlist_head;
  11. struct sock;
  12. struct netns_ipv4 {
  13. #ifdef CONFIG_SYSCTL
  14. struct ctl_table_header *forw_hdr;
  15. struct ctl_table_header *frags_hdr;
  16. struct ctl_table_header *ipv4_hdr;
  17. struct ctl_table_header *route_hdr;
  18. #endif
  19. struct ipv4_devconf *devconf_all;
  20. struct ipv4_devconf *devconf_dflt;
  21. #ifdef CONFIG_IP_MULTIPLE_TABLES
  22. struct fib_rules_ops *rules_ops;
  23. #endif
  24. struct hlist_head *fib_table_hash;
  25. struct sock *fibnl;
  26. struct sock **icmp_sk;
  27. struct sock *tcp_sock;
  28. struct netns_frags frags;
  29. #ifdef CONFIG_NETFILTER
  30. struct xt_table *iptable_filter;
  31. struct xt_table *iptable_mangle;
  32. struct xt_table *iptable_raw;
  33. struct xt_table *arptable_filter;
  34. #ifdef CONFIG_SECURITY
  35. struct xt_table *iptable_security;
  36. #endif
  37. struct xt_table *nat_table;
  38. struct hlist_head *nat_bysource;
  39. int nat_vmalloced;
  40. #endif
  41. int sysctl_icmp_echo_ignore_all;
  42. int sysctl_icmp_echo_ignore_broadcasts;
  43. int sysctl_icmp_ignore_bogus_error_responses;
  44. int sysctl_icmp_ratelimit;
  45. int sysctl_icmp_ratemask;
  46. int sysctl_icmp_errors_use_inbound_ifaddr;
  47. int sysctl_rt_cache_rebuild_count;
  48. int current_rt_cache_rebuild_count;
  49. struct timer_list rt_secret_timer;
  50. atomic_t rt_genid;
  51. #ifdef CONFIG_IP_MROUTE
  52. struct sock *mroute_sk;
  53. struct mfc_cache **mfc_cache_array;
  54. struct vif_device *vif_table;
  55. int maxvif;
  56. atomic_t cache_resolve_queue_len;
  57. int mroute_do_assert;
  58. int mroute_do_pim;
  59. #if defined(CONFIG_IP_PIMSM_V1) || defined(CONFIG_IP_PIMSM_V2)
  60. int mroute_reg_vif_num;
  61. #endif
  62. #endif
  63. };
  64. #endif