]> err.no Git - linux-2.6/commit
[TCP]: Introduce tcp_hdrlen() and tcp_optlen()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Mar 2007 00:43:48 +0000 (17:43 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:25:24 +0000 (22:25 -0700)
commitab6a5bb6b28a970104a34f0f6959b73cf61bdc72
tree54cfa7d4fe00d0c28a60022b075afc0856d6fc2b
parent88c7664f13bd1a36acb8566b93892a4c58759ac6
[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>
14 files changed:
drivers/net/atl1/atl1_main.c
drivers/net/bnx2.c
drivers/net/e1000/e1000_main.c
drivers/net/ehea/ehea_main.c
drivers/net/ixgb/ixgb_main.c
drivers/net/myri10ge/myri10ge.c
drivers/net/netxen/netxen_nic_hw.c
drivers/net/netxen/netxen_nic_main.c
drivers/net/sky2.c
drivers/net/tg3.c
drivers/s390/net/qeth_eddp.c
include/linux/tcp.h
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c