[TCP]: Use TCPOLEN_TSTAMP_ALIGNED macro instead of magic number.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0be669bb37
commit
4244f8a9f8
@@ -653,7 +653,7 @@ static void tcp_v6_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32
|
||||
int tot_len = sizeof(struct tcphdr);
|
||||
|
||||
if (ts)
|
||||
tot_len += 3*4;
|
||||
tot_len += TCPOLEN_TSTAMP_ALIGNED;
|
||||
|
||||
buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len,
|
||||
GFP_ATOMIC);
|
||||
|
Reference in New Issue
Block a user