hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/net/netns/conntrack.h
....@@ -18,25 +18,15 @@
1818 struct ctl_table_header;
1919 struct nf_conntrack_ecache;
2020
21
-struct nf_proto_net {
22
-#ifdef CONFIG_SYSCTL
23
- struct ctl_table_header *ctl_table_header;
24
- struct ctl_table *ctl_table;
25
-#endif
26
- unsigned int users;
27
-};
28
-
2921 struct nf_generic_net {
30
- struct nf_proto_net pn;
3122 unsigned int timeout;
3223 };
3324
3425 struct nf_tcp_net {
35
- struct nf_proto_net pn;
3626 unsigned int timeouts[TCP_CONNTRACK_TIMEOUT_MAX];
37
- unsigned int tcp_loose;
38
- unsigned int tcp_be_liberal;
39
- unsigned int tcp_max_retrans;
27
+ int tcp_loose;
28
+ int tcp_be_liberal;
29
+ int tcp_max_retrans;
4030 };
4131
4232 enum udp_conntrack {
....@@ -46,18 +36,15 @@
4636 };
4737
4838 struct nf_udp_net {
49
- struct nf_proto_net pn;
5039 unsigned int timeouts[UDP_CT_MAX];
5140 };
5241
5342 struct nf_icmp_net {
54
- struct nf_proto_net pn;
5543 unsigned int timeout;
5644 };
5745
5846 #ifdef CONFIG_NF_CT_PROTO_DCCP
5947 struct nf_dccp_net {
60
- struct nf_proto_net pn;
6148 int dccp_loose;
6249 unsigned int dccp_timeout[CT_DCCP_MAX + 1];
6350 };
....@@ -65,8 +52,20 @@
6552
6653 #ifdef CONFIG_NF_CT_PROTO_SCTP
6754 struct nf_sctp_net {
68
- struct nf_proto_net pn;
6955 unsigned int timeouts[SCTP_CONNTRACK_MAX];
56
+};
57
+#endif
58
+
59
+#ifdef CONFIG_NF_CT_PROTO_GRE
60
+enum gre_conntrack {
61
+ GRE_CT_UNREPLIED,
62
+ GRE_CT_REPLIED,
63
+ GRE_CT_MAX
64
+};
65
+
66
+struct nf_gre_net {
67
+ struct list_head keymap_list;
68
+ unsigned int timeouts[GRE_CT_MAX];
7069 };
7170 #endif
7271
....@@ -81,6 +80,9 @@
8180 #endif
8281 #ifdef CONFIG_NF_CT_PROTO_SCTP
8382 struct nf_sctp_net sctp;
83
+#endif
84
+#ifdef CONFIG_NF_CT_PROTO_GRE
85
+ struct nf_gre_net gre;
8486 #endif
8587 };
8688
....@@ -97,18 +99,14 @@
9799 struct delayed_work ecache_dwork;
98100 bool ecache_dwork_pending;
99101 #endif
102
+ bool auto_assign_helper_warned;
100103 #ifdef CONFIG_SYSCTL
101104 struct ctl_table_header *sysctl_header;
102
- struct ctl_table_header *acct_sysctl_header;
103
- struct ctl_table_header *tstamp_sysctl_header;
104
- struct ctl_table_header *event_sysctl_header;
105
- struct ctl_table_header *helper_sysctl_header;
106105 #endif
107106 unsigned int sysctl_log_invalid; /* Log invalid packets */
108107 int sysctl_events;
109108 int sysctl_acct;
110109 int sysctl_auto_assign_helper;
111
- bool auto_assign_helper_warned;
112110 int sysctl_tstamp;
113111 int sysctl_checksum;
114112