ipv4.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. struct timer_list rt_secret_timer;
  46. atomic_t rt_genid;
  47. };
  48. #endif