ipv4.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #endif
  18. struct ipv4_devconf *devconf_all;
  19. struct ipv4_devconf *devconf_dflt;
  20. #ifdef CONFIG_IP_MULTIPLE_TABLES
  21. struct fib_rules_ops *rules_ops;
  22. #endif
  23. struct hlist_head *fib_table_hash;
  24. struct sock *fibnl;
  25. struct sock **icmp_sk;
  26. struct sock *tcp_sock;
  27. struct netns_frags frags;
  28. #ifdef CONFIG_NETFILTER
  29. struct xt_table *iptable_filter;
  30. struct xt_table *iptable_mangle;
  31. struct xt_table *iptable_raw;
  32. struct xt_table *arptable_filter;
  33. #endif
  34. int sysctl_icmp_echo_ignore_all;
  35. int sysctl_icmp_echo_ignore_broadcasts;
  36. int sysctl_icmp_ignore_bogus_error_responses;
  37. int sysctl_icmp_ratelimit;
  38. int sysctl_icmp_ratemask;
  39. int sysctl_icmp_errors_use_inbound_ifaddr;
  40. };
  41. #endif