[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 1 Jan 2015 11:10:30 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Julian Kirsch <kirschju@....in.tum.de>
Cc: netdev@...r.kernel.org,
Christian Grothoff <christian@...thoff.org>,
Jacob Appelbaum <jacob@...elbaum.net>
Subject: Re: [PATCH] TCP: Add support for TCP Stealth
On Wed, 31 Dec 2014 22:54:59 +0100
Julian Kirsch <kirschju@....in.tum.de> wrote:
> + memcpy(iv, (const __u8 *)daddr,
> + (daddr_size > sizeof(iv)) ? sizeof(iv) : daddr_size);
> +
> +#ifdef CONFIG_TCP_MD5SIG
> + md5 = tp->af_specific->md5_lookup(sk, sk);
> +#else
> + md5 = NULL;
> +#endif
> + if (likely(sysctl_tcp_timestamps && !md5) || tp->stealth.saw_tsval)
> + tsval = tp->stealth.mstamp.stamp_jiffies;
> +
> + ((__be16 *)iv)[2] ^= cpu_to_be16(tp->stealth.integrity_hash);
Cast unnecessary on memcpy arg since it takes void *
Would be clearer to use a real structure or union not assignment to cast to setup iv.
--
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