提交 f0bc52f3 编写于 作者: I Ilpo Järvinen 提交者: David S. Miller

tcp: force mss equality with the next skb too.

Also make if-goto forest nicer looking.
Signed-off-by: NIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 61c1d052
...@@ -1575,11 +1575,10 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb, ...@@ -1575,11 +1575,10 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb,
goto out; goto out;
skb = tcp_write_queue_next(sk, prev); skb = tcp_write_queue_next(sk, prev);
if (!skb_can_shift(skb)) if (!skb_can_shift(skb) ||
goto out; (skb == tcp_send_head(sk)) ||
if (skb == tcp_send_head(sk)) ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED) ||
goto out; (mss != tcp_shift_mss(skb)))
if ((TCP_SKB_CB(skb)->sacked & TCPCB_TAGBITS) != TCPCB_SACKED_ACKED)
goto out; goto out;
len = skb->len; len = skb->len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册