]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: struct tcp_sack_block annotations
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 28 Sep 2006 01:32:28 +0000 (18:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:02:04 +0000 (18:02 -0700)
commit57c2f79b38142013739867c75f7ab9c4f9af4cc1
tree92b1694b00ee61777bd6976d32cb283effdf9172
parentd3c95c77b0038cb39dc496aa8d44bd0ea8edd8eb
[TCP]: struct tcp_sack_block annotations

Some of the instances of tcp_sack_block are host-endian, some - net-endian.
Define struct tcp_sack_block_wire identical to struct tcp_sack_block
with u32 replaced with __be32; annotate uses of tcp_sack_block replacing
net-endian ones with tcp_sack_block_wire.  Change is obviously safe since
for cc(1) __be32 is typedefed to u32.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/netfilter/ip_nat_helper.c
net/ipv4/tcp_input.c