diff options
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index c84a32070f8d..fdd89e37b9aa 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -67,7 +67,6 @@ | |||
67 | * 2 of the License, or (at your option) any later version. | 67 | * 2 of the License, or (at your option) any later version. |
68 | */ | 68 | */ |
69 | 69 | ||
70 | #include <linux/config.h> | ||
71 | #include <linux/err.h> | 70 | #include <linux/err.h> |
72 | #include <linux/errno.h> | 71 | #include <linux/errno.h> |
73 | #include <linux/types.h> | 72 | #include <linux/types.h> |
@@ -392,7 +391,7 @@ int inet_release(struct socket *sock) | |||
392 | } | 391 | } |
393 | 392 | ||
394 | /* It is off by default, see below. */ | 393 | /* It is off by default, see below. */ |
395 | int sysctl_ip_nonlocal_bind; | 394 | int sysctl_ip_nonlocal_bind __read_mostly; |
396 | 395 | ||
397 | int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | 396 | int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
398 | { | 397 | { |
@@ -988,7 +987,7 @@ void inet_unregister_protosw(struct inet_protosw *p) | |||
988 | * Shall we try to damage output packets if routing dev changes? | 987 | * Shall we try to damage output packets if routing dev changes? |
989 | */ | 988 | */ |
990 | 989 | ||
991 | int sysctl_ip_dynaddr; | 990 | int sysctl_ip_dynaddr __read_mostly; |
992 | 991 | ||
993 | static int inet_sk_reselect_saddr(struct sock *sk) | 992 | static int inet_sk_reselect_saddr(struct sock *sk) |
994 | { | 993 | { |
@@ -1074,6 +1073,7 @@ int inet_sk_rebuild_header(struct sock *sk) | |||
1074 | }, | 1073 | }, |
1075 | }; | 1074 | }; |
1076 | 1075 | ||
1076 | security_sk_classify_flow(sk, &fl); | ||
1077 | err = ip_route_output_flow(&rt, &fl, sk, 0); | 1077 | err = ip_route_output_flow(&rt, &fl, sk, 0); |
1078 | } | 1078 | } |
1079 | if (!err) | 1079 | if (!err) |
@@ -1254,10 +1254,7 @@ static int __init inet_init(void) | |||
1254 | struct list_head *r; | 1254 | struct list_head *r; |
1255 | int rc = -EINVAL; | 1255 | int rc = -EINVAL; |
1256 | 1256 | ||
1257 | if (sizeof(struct inet_skb_parm) > sizeof(dummy_skb->cb)) { | 1257 | BUILD_BUG_ON(sizeof(struct inet_skb_parm) > sizeof(dummy_skb->cb)); |
1258 | printk(KERN_CRIT "%s: panic\n", __FUNCTION__); | ||
1259 | goto out; | ||
1260 | } | ||
1261 | 1258 | ||
1262 | rc = proto_register(&tcp_prot, 1); | 1259 | rc = proto_register(&tcp_prot, 1); |
1263 | if (rc) | 1260 | if (rc) |