[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1367294398.3216.8.camel@cr0>
Date: Tue, 30 Apr 2013 11:59:58 +0800
From: Cong Wang <amwang@...hat.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, dlstevens@...ibm.com,
stephen@...workplumber.org
Subject: Re: [Patch net-next v6 4/5] vxlan: add ipv6 support
On Mon, 2013-04-29 at 11:52 -0400, David Miller wrote:
> From: Cong Wang <amwang@...hat.com>
> Date: Wed, 24 Apr 2013 13:54:33 +0800
>
> > + rc = sock_create_kern(AF_INET6, SOCK_DGRAM, IPPROTO_UDP, &vn->sock);
> > + if (rc < 0) {
> > + pr_debug("UDP socket create failed\n");
> > + return rc;
> > + }
>
> You have to fall back to creating and using an ipv4 socket if making
> the ipv6 one fails.
>
> IPV6 being enabled does not mean it is guaranteed the one can
> successfully create ipv6 sockets.
>
> You also must handle /proc/sys/net/ipv6/conf/${DEV}/disable_ipv6
> correctly as far as this stuff goes as well.
>
Right, we should detect the run-time IPv6 support too.
--
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