Loading net/ipv4/ip_output.c +2 −1 Original line number Diff line number Diff line Loading @@ -1135,7 +1135,8 @@ static int ip_setup_cork(struct sock *sk, struct inet_cork *cork, cork->fragsize = ip_sk_use_pmtu(sk) ? dst_mtu(&rt->dst) : rt->dst.dev->mtu; cork->gso_size = sk->sk_type == SOCK_DGRAM ? ipc->gso_size : 0; cork->gso_size = sk->sk_type == SOCK_DGRAM && sk->sk_protocol == IPPROTO_UDP ? ipc->gso_size : 0; cork->dst = &rt->dst; cork->length = 0; cork->ttl = ipc->ttl; Loading net/ipv6/ip6_output.c +2 −1 Original line number Diff line number Diff line Loading @@ -1229,7 +1229,8 @@ static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, if (mtu < IPV6_MIN_MTU) return -EINVAL; cork->base.fragsize = mtu; cork->base.gso_size = sk->sk_type == SOCK_DGRAM ? ipc6->gso_size : 0; cork->base.gso_size = sk->sk_type == SOCK_DGRAM && sk->sk_protocol == IPPROTO_UDP ? ipc6->gso_size : 0; if (dst_allfrag(rt->dst.path)) cork->base.flags |= IPCORK_ALLFRAG; Loading Loading
net/ipv4/ip_output.c +2 −1 Original line number Diff line number Diff line Loading @@ -1135,7 +1135,8 @@ static int ip_setup_cork(struct sock *sk, struct inet_cork *cork, cork->fragsize = ip_sk_use_pmtu(sk) ? dst_mtu(&rt->dst) : rt->dst.dev->mtu; cork->gso_size = sk->sk_type == SOCK_DGRAM ? ipc->gso_size : 0; cork->gso_size = sk->sk_type == SOCK_DGRAM && sk->sk_protocol == IPPROTO_UDP ? ipc->gso_size : 0; cork->dst = &rt->dst; cork->length = 0; cork->ttl = ipc->ttl; Loading
net/ipv6/ip6_output.c +2 −1 Original line number Diff line number Diff line Loading @@ -1229,7 +1229,8 @@ static int ip6_setup_cork(struct sock *sk, struct inet_cork_full *cork, if (mtu < IPV6_MIN_MTU) return -EINVAL; cork->base.fragsize = mtu; cork->base.gso_size = sk->sk_type == SOCK_DGRAM ? ipc6->gso_size : 0; cork->base.gso_size = sk->sk_type == SOCK_DGRAM && sk->sk_protocol == IPPROTO_UDP ? ipc6->gso_size : 0; if (dst_allfrag(rt->dst.path)) cork->base.flags |= IPCORK_ALLFRAG; Loading