tcp: add const qualifiers where possible
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 21 Oct 2011 09:22:42 +0000 (05:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2011 09:22:42 +0000 (05:22 -0400)
Adding const qualifiers to pointers can ease code review, and spot some
bugs. It might allow compiler to optimize code further.

For example, is it legal to temporary write a null cksum into tcphdr
in tcp_md5_hash_header() ? I am afraid a sniffer could catch the
temporary null value...

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found