lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 13 Mar 2007 18:46:11 -0300
From:	"Arnaldo Carvalho de Melo" <acme@...stprotocols.net>
To:	"David Miller" <davem@...emloft.net>
Cc:	"Netdev List" <netdev@...r.kernel.org>
Subject: [PATCH 09/15] [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@...hat.com>
---
 drivers/net/atl1/atl1_main.c         |    7 +++----
 drivers/net/bnx2.c                   |    7 +++----
 drivers/net/e1000/e1000_main.c       |    4 ++--
 drivers/net/ehea/ehea_main.c         |    2 +-
 drivers/net/ixgb/ixgb_main.c         |    2 +-
 drivers/net/myri10ge/myri10ge.c      |    3 +--
 drivers/net/netxen/netxen_nic_hw.c   |    3 +--
 drivers/net/netxen/netxen_nic_main.c |    2 +-
 drivers/net/sky2.c                   |    2 +-
 drivers/net/tg3.c                    |    4 ++--
 drivers/s390/net/qeth_eddp.c         |    8 ++++----
 include/linux/tcp.h                  |   10 ++++++++++
 net/ipv4/tcp_ipv4.c                  |    2 +-
 net/ipv6/tcp_ipv6.c                  |    2 +-
 14 files changed, 32 insertions(+), 26 deletions(-)

View attachment "0009-TCP-Introduce-tcp_hdrlen-and-tcp_optlen.patch" of type "text/x-patch" (10816 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ