• Al Viro's avatar
    [TCP]: struct tcp_sack_block annotations · 2f6d2c9b
    Al Viro authored
    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: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
    2f6d2c9b
tcp_input.c 128 KB