diff options
author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-12-13 23:13:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 16:58:20 -0500 |
commit | 974eda11c54290a1be8f8b155edae7d791e5ce57 (patch) | |
tree | e8956b7e45c8f2e033567d788757e086f76230a0 /include | |
parent | 143c9054949436cb05e468439dc5e46231f33d09 (diff) |
inet: make no_pmtu_disc per namespace and kill ipv4_config
The other field in ipv4_config, log_martians, was converted to a
per-interface setting, so we can just remove the whole structure.
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ip.h | 6 | ||||
-rw-r--r-- | include/net/netns/ipv4.h | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 5a25f36fe3a7..535664477c4a 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -177,12 +177,6 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr, | |||
177 | __be32 saddr, const struct ip_reply_arg *arg, | 177 | __be32 saddr, const struct ip_reply_arg *arg, |
178 | unsigned int len); | 178 | unsigned int len); |
179 | 179 | ||
180 | struct ipv4_config { | ||
181 | int log_martians; | ||
182 | int no_pmtu_disc; | ||
183 | }; | ||
184 | |||
185 | extern struct ipv4_config ipv4_config; | ||
186 | #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) | 180 | #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) |
187 | #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) | 181 | #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) |
188 | #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) | 182 | #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) |
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index ee520cba2ec2..929a668e91a9 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h | |||
@@ -69,6 +69,7 @@ struct netns_ipv4 { | |||
69 | struct local_ports sysctl_local_ports; | 69 | struct local_ports sysctl_local_ports; |
70 | 70 | ||
71 | int sysctl_tcp_ecn; | 71 | int sysctl_tcp_ecn; |
72 | int sysctl_ip_no_pmtu_disc; | ||
72 | 73 | ||
73 | kgid_t sysctl_ping_group_range[2]; | 74 | kgid_t sysctl_ping_group_range[2]; |
74 | 75 | ||