Commit 4244f8a9f86a6d6e820b4cb53835c15c56d41aff

Authored by YOSHIFUJI Hideaki
Committed by David S. Miller
1 parent 0be669bb37

[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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -578,7 +578,7 @@
578 578 struct tcphdr *th = skb->h.th;
579 579 struct {
580 580 struct tcphdr th;
581   - u32 tsopt[3];
  581 + u32 tsopt[TCPOLEN_TSTAMP_ALIGNED >> 2];
582 582 } rep;
583 583 struct ip_reply_arg arg;
584 584  
... ... @@ -653,7 +653,7 @@
653 653 int tot_len = sizeof(struct tcphdr);
654 654  
655 655 if (ts)
656   - tot_len += 3*4;
  656 + tot_len += TCPOLEN_TSTAMP_ALIGNED;
657 657  
658 658 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + tot_len,
659 659 GFP_ATOMIC);