mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
46a97324a5
commit
269bd27e66
3 changed files with 7 additions and 2 deletions
|
@ -166,6 +166,11 @@ struct tcp_info
|
|||
#include <net/inet_timewait_sock.h>
|
||||
|
||||
/* This defines a selective acknowledgement block. */
|
||||
struct tcp_sack_block_wire {
|
||||
__be32 start_seq;
|
||||
__be32 end_seq;
|
||||
};
|
||||
|
||||
struct tcp_sack_block {
|
||||
__u32 start_seq;
|
||||
__u32 end_seq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue