]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[TCP]: struct tcp_sack_block annotations
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 14 Feb 2007 12:58:42 +0000 (13:58 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 12:58:42 +0000 (13:58 +0100)
commit2f6d2c9b7d870de96a915748178aa02596ac19c1
treeb1e89ac341c66542d3bcf53dcc0dac06be87fba4
parent844affa5745e38d3ac2e11d4cee79deed06df0e2
[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: Adrian Bunk <bunk@stusta.de>
include/linux/tcp.h
net/ipv4/netfilter/ip_nat_helper.c
net/ipv4/tcp_input.c