|
@@ -159,8 +159,6 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
|
|
|
|
|
|
if (sk->sk_protocol == IPPROTO_TCP) {
|
|
if (sk->sk_protocol == IPPROTO_TCP) {
|
|
struct inet_connection_sock *icsk = inet_csk(sk);
|
|
struct inet_connection_sock *icsk = inet_csk(sk);
|
|
- struct net *net = sock_net(sk);
|
|
|
|
-
|
|
|
|
local_bh_disable();
|
|
local_bh_disable();
|
|
sock_prot_inuse_add(net, sk->sk_prot, -1);
|
|
sock_prot_inuse_add(net, sk->sk_prot, -1);
|
|
sock_prot_inuse_add(net, &tcp_prot, 1);
|
|
sock_prot_inuse_add(net, &tcp_prot, 1);
|
|
@@ -172,7 +170,6 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
|
|
tcp_sync_mss(sk, icsk->icsk_pmtu_cookie);
|
|
tcp_sync_mss(sk, icsk->icsk_pmtu_cookie);
|
|
} else {
|
|
} else {
|
|
struct proto *prot = &udp_prot;
|
|
struct proto *prot = &udp_prot;
|
|
- struct net *net = sock_net(sk);
|
|
|
|
|
|
|
|
if (sk->sk_protocol == IPPROTO_UDPLITE)
|
|
if (sk->sk_protocol == IPPROTO_UDPLITE)
|
|
prot = &udplite_prot;
|
|
prot = &udplite_prot;
|