commit | ab6a5bb6b28a970104a34f0f6959b73cf61bdc72 | [log] [tgz] |
---|---|---|
author | Arnaldo Carvalho de Melo <acme@redhat.com> | Sun Mar 18 17:43:48 2007 -0700 |
committer | David S. Miller <davem@sunset.davemloft.net> | Wed Apr 25 22:25:24 2007 -0700 |
tree | 54cfa7d4fe00d0c28a60022b075afc0856d6fc2b | |
parent | 88c7664f13bd1a36acb8566b93892a4c58759ac6 [diff] |
[TCP]: Introduce tcp_hdrlen() and tcp_optlen() The ip_hdrlen() buddy, created to reduce the number of skb->h.th-> uses and to avoid the longer, open coded equivalent. Ditched a no-op in bnx2 in the process. I wonder if we should have a BUG_ON(skb->h.th->doff < 5) in tcp_optlen()... Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>