ipv4.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. struct xt_table *iptable_security;
  35. struct xt_table *nat_table;
  36. struct hlist_head *nat_bysource;
  37. int nat_vmalloced;
  38. #endif
  39. int sysctl_icmp_echo_ignore_all;
  40. int sysctl_icmp_echo_ignore_broadcasts;
  41. int sysctl_icmp_ignore_bogus_error_responses;
  42. int sysctl_icmp_ratelimit;
  43. int sysctl_icmp_ratemask;
  44. int sysctl_icmp_errors_use_inbound_ifaddr;
  45. int sysctl_rt_cache_rebuild_count;
  46. int current_rt_cache_rebuild_count;
  47. struct timer_list rt_secret_timer;
  48. atomic_t rt_genid;
  49. #ifdef CONFIG_IP_MROUTE
  50. struct sock *mroute_sk;
  51. struct mfc_cache **mfc_cache_array;
  52. struct vif_device *vif_table;
  53. int maxvif;
  54. atomic_t cache_resolve_queue_len;
  55. int mroute_do_assert;
  56. int mroute_do_pim;
  57. #if defined(CONFIG_IP_PIMSM_V1) || defined(CONFIG_IP_PIMSM_V2)
  58. int mroute_reg_vif_num;
  59. #endif
  60. #endif
  61. };
  62. #endif