[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20111021.053147.1778118777108428234.davem@davemloft.net>
Date: Fri, 21 Oct 2011 05:31:47 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH V2 net-next] tcp: add const qualifiers where possible
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 21 Oct 2011 10:58:13 +0200
> 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@...il.com>
> ---
> V2: no need to change __sk_dst_get() prototype...
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists