[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120721170035.be1bb3aff663ecf9e81028e2@gmail.com>
Date: Sat, 21 Jul 2012 17:00:35 +0900
From: Hiroaki SHIMODA <shimoda.hiroaki@...il.com>
To: eric.dumazet@...il.com
Cc: davem@...emloft.net, netdev@...r.kernel.org, therbert@...gle.com,
wsommerfeld@...gle.com
Subject: Re: [PATCH net-next v2] ipv4: tcp: remove per net tcp_sock
On Thu, 19 Jul 2012 19:34:03 +0200
Eric Dumazet <eric.dumazet@...il.com> wrote:
> +static DEFINE_PER_CPU(struct inet_sock, unicast_sock) = {
> + .sk = {
> + .__sk_common = {
> + .skc_refcnt = ATOMIC_INIT(1),
> + },
> + .sk_wmem_alloc = ATOMIC_INIT(1),
> + .sk_allocation = GFP_ATOMIC,
> + .sk_flags = (1UL << SOCK_USE_WRITE_QUEUE),
> + },
> + .pmtudisc = IP_PMTUDISC_WANT,
> +};
RST packet generated from unicast_sock have 0 TTL value.
I think ".uc_ttl = -1" is needed in above initialization.
--
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