* [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
@ 2014-02-12 13:38 Francois-Xavier Le Bail
2014-02-13 0:16 ` Hannes Frederic Sowa
0 siblings, 1 reply; 11+ messages in thread
From: Francois-Xavier Le Bail @ 2014-02-12 13:38 UTC (permalink / raw)
To: NETDEV, David Miller, Hannes Frederic Sowa
- Use ipv6_chk_acast_addr_src() in inet6_bind().
Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
---
v2: ipv6_chk_acast_addr_src() was previously added.
net/ipv6/af_inet6.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index c921d5d..68b81e9 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -347,7 +347,9 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
if (!(addr_type & IPV6_ADDR_MULTICAST)) {
if (!(inet->freebind || inet->transparent) &&
!ipv6_chk_addr(net, &addr->sin6_addr,
- dev, 0)) {
+ dev, 0) &&
+ !ipv6_chk_acast_addr_src(net, dev,
+ &addr->sin6_addr)) {
err = -EADDRNOTAVAIL;
goto out_unlock;
}
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-12 13:38 [PATCH net-next v2] IPv6: enable bind() to assign an anycast address Francois-Xavier Le Bail
@ 2014-02-13 0:16 ` Hannes Frederic Sowa
2014-02-17 5:15 ` David Miller
0 siblings, 1 reply; 11+ messages in thread
From: Hannes Frederic Sowa @ 2014-02-13 0:16 UTC (permalink / raw)
To: Francois-Xavier Le Bail
Cc: NETDEV, David Miller, kuznet, christoph.paasch, eric.dumazet
Hi!
[added Cc list from old thread]
On Wed, Feb 12, 2014 at 02:38:51PM +0100, Francois-Xavier Le Bail wrote:
> - Use ipv6_chk_acast_addr_src() in inet6_bind().
>
> Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
I would agree with the change but would like to see some people from the old
thread about this change to agree with it, too.
> ---
> v2: ipv6_chk_acast_addr_src() was previously added.
>
> net/ipv6/af_inet6.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
> index c921d5d..68b81e9 100644
> --- a/net/ipv6/af_inet6.c
> +++ b/net/ipv6/af_inet6.c
> @@ -347,7 +347,9 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
> if (!(addr_type & IPV6_ADDR_MULTICAST)) {
> if (!(inet->freebind || inet->transparent) &&
> !ipv6_chk_addr(net, &addr->sin6_addr,
> - dev, 0)) {
> + dev, 0) &&
> + !ipv6_chk_acast_addr_src(net, dev,
> + &addr->sin6_addr)) {
> err = -EADDRNOTAVAIL;
> goto out_unlock;
> }
Thanks,
Hannes
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-13 0:16 ` Hannes Frederic Sowa
@ 2014-02-17 5:15 ` David Miller
2014-02-17 9:32 ` Christoph Paasch
0 siblings, 1 reply; 11+ messages in thread
From: David Miller @ 2014-02-17 5:15 UTC (permalink / raw)
To: hannes; +Cc: fx.lebail, netdev, kuznet, christoph.paasch, eric.dumazet
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
Date: Thu, 13 Feb 2014 01:16:24 +0100
> [added Cc list from old thread]
>
> On Wed, Feb 12, 2014 at 02:38:51PM +0100, Francois-Xavier Le Bail wrote:
>> - Use ipv6_chk_acast_addr_src() in inet6_bind().
>>
>> Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
>
> I would agree with the change but would like to see some people from the old
> thread about this change to agree with it, too.
I hear crickets... instead of other reviews :-)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 5:15 ` David Miller
@ 2014-02-17 9:32 ` Christoph Paasch
2014-02-17 10:02 ` Alexey Kuznetsov
0 siblings, 1 reply; 11+ messages in thread
From: Christoph Paasch @ 2014-02-17 9:32 UTC (permalink / raw)
To: David Miller; +Cc: hannes, fx.lebail, netdev, kuznet, eric.dumazet
On 17/02/14 - 00:15:45, David Miller wrote:
> From: Hannes Frederic Sowa <hannes@stressinduktion.org>
> Date: Thu, 13 Feb 2014 01:16:24 +0100
>
> > [added Cc list from old thread]
> >
> > On Wed, Feb 12, 2014 at 02:38:51PM +0100, Francois-Xavier Le Bail wrote:
> >> - Use ipv6_chk_acast_addr_src() in inet6_bind().
> >>
> >> Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
> >
> > I would agree with the change but would like to see some people from the old
> > thread about this change to agree with it, too.
>
> I hear crickets... instead of other reviews :-)
I don't have strong opinions for or against this patch.
I was only involved in the original thread because F-X claimed that
draft-iab-anycast-arch-implications (now RFC 7094) allows the use of anycast
addresses for TCP, which is not what RFC 7094 is saying. There is no
recommendation concerning TCP in the RFC and the situation is rather unclear.
Cheers,
Christoph
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 9:32 ` Christoph Paasch
@ 2014-02-17 10:02 ` Alexey Kuznetsov
2014-02-17 19:19 ` David Miller
0 siblings, 1 reply; 11+ messages in thread
From: Alexey Kuznetsov @ 2014-02-17 10:02 UTC (permalink / raw)
To: Christoph Paasch; +Cc: David Miller, hannes, fx.lebail, netdev, Eric Dumazet
Hello!
On Mon, Feb 17, 2014 at 1:32 PM, Christoph Paasch
<christoph.paasch@uclouvain.be> wrote:
> I don't have strong opinions for or against this patch.
>
> I was only involved in the original thread because F-X claimed that
> draft-iab-anycast-arch-implications (now RFC 7094) allows the use of anycast
> addresses for TCP, which is not what RFC 7094 is saying. There is no
> recommendation concerning TCP in the RFC and the situation is rather unclear.
The same is here.
Using anycast as source or bind address, why not?
Use of anycast with TCP? Logically impossible, ergo prohibited.
If someone wants to play with fire, the option can be left hidden behind
a sysctl disabled by default.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 10:02 ` Alexey Kuznetsov
@ 2014-02-17 19:19 ` David Miller
2014-02-17 19:25 ` Hannes Frederic Sowa
2014-02-17 19:42 ` François-Xavier Le Bail
0 siblings, 2 replies; 11+ messages in thread
From: David Miller @ 2014-02-17 19:19 UTC (permalink / raw)
To: kuznet; +Cc: christoph.paasch, hannes, fx.lebail, netdev, eric.dumazet
From: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Date: Mon, 17 Feb 2014 14:02:02 +0400
> Hello!
>
> On Mon, Feb 17, 2014 at 1:32 PM, Christoph Paasch
> <christoph.paasch@uclouvain.be> wrote:
>> I don't have strong opinions for or against this patch.
>>
>> I was only involved in the original thread because F-X claimed that
>> draft-iab-anycast-arch-implications (now RFC 7094) allows the use of anycast
>> addresses for TCP, which is not what RFC 7094 is saying. There is no
>> recommendation concerning TCP in the RFC and the situation is rather unclear.
>
> The same is here.
>
> Using anycast as source or bind address, why not?
>
> Use of anycast with TCP? Logically impossible, ergo prohibited.
> If someone wants to play with fire, the option can be left hidden behind
> a sysctl disabled by default.
Agreed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 19:19 ` David Miller
@ 2014-02-17 19:25 ` Hannes Frederic Sowa
2014-02-17 19:42 ` François-Xavier Le Bail
1 sibling, 0 replies; 11+ messages in thread
From: Hannes Frederic Sowa @ 2014-02-17 19:25 UTC (permalink / raw)
To: David Miller; +Cc: kuznet, christoph.paasch, fx.lebail, netdev, eric.dumazet
On Mon, Feb 17, 2014 at 02:19:49PM -0500, David Miller wrote:
> From: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
> Date: Mon, 17 Feb 2014 14:02:02 +0400
>
> > Hello!
> >
> > On Mon, Feb 17, 2014 at 1:32 PM, Christoph Paasch
> > <christoph.paasch@uclouvain.be> wrote:
> >> I don't have strong opinions for or against this patch.
> >>
> >> I was only involved in the original thread because F-X claimed that
> >> draft-iab-anycast-arch-implications (now RFC 7094) allows the use of anycast
> >> addresses for TCP, which is not what RFC 7094 is saying. There is no
> >> recommendation concerning TCP in the RFC and the situation is rather unclear.
> >
> > The same is here.
> >
> > Using anycast as source or bind address, why not?
> >
> > Use of anycast with TCP? Logically impossible, ergo prohibited.
> > If someone wants to play with fire, the option can be left hidden behind
> > a sysctl disabled by default.
>
> Agreed.
If a knob seems necessary I would vote for per address flags on those
anycast addresses (via setsockopt and netlink) so an application can
decide itself if it wants to do so.
Greetings,
Hannes
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 19:19 ` David Miller
2014-02-17 19:25 ` Hannes Frederic Sowa
@ 2014-02-17 19:42 ` François-Xavier Le Bail
2014-02-17 19:48 ` David Miller
1 sibling, 1 reply; 11+ messages in thread
From: François-Xavier Le Bail @ 2014-02-17 19:42 UTC (permalink / raw)
To: David Miller, kuznet@ms2.inr.ac.ru
Cc: christoph.paasch@uclouvain.be, hannes@stressinduktion.org,
netdev@vger.kernel.org, eric.dumazet@gmail.com
> From: David Miller <davem@davemloft.net>
> From: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
>> On Mon, Feb 17, 2014 at 1:32 PM, Christoph Paasch
>> <christoph.paasch@uclouvain.be> wrote:
>>> I don't have strong opinions for or against this patch.
>>>
>>> I was only involved in the original thread because F-X claimed that
>>> draft-iab-anycast-arch-implications (now RFC 7094) allows the use of
> anycast
>>> addresses for TCP, which is not what RFC 7094 is saying. There is no
>>> recommendation concerning TCP in the RFC and the situation is rather
> unclear.
>>
>> The same is here.
>>
>> Using anycast as source or bind address, why not?
>>
>> Use of anycast with TCP? Logically impossible, ergo prohibited.
>> If someone wants to play with fire, the option can be left hidden behind
>> a sysctl disabled by default.
>
> Agreed.
If I understand well the reviews, no change was ask for this patch.
The sysctl was asked in case of patch for TCP.
So, why the status is now "Changes Requested" ?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 19:42 ` François-Xavier Le Bail
@ 2014-02-17 19:48 ` David Miller
2014-02-17 19:52 ` François-Xavier Le Bail
0 siblings, 1 reply; 11+ messages in thread
From: David Miller @ 2014-02-17 19:48 UTC (permalink / raw)
To: fx.lebail; +Cc: kuznet, christoph.paasch, hannes, netdev, eric.dumazet
From: François-Xavier Le Bail <fx.lebail@yahoo.com>
Date: Mon, 17 Feb 2014 11:42:45 -0800 (PST)
> If I understand well the reviews, no change was ask for this patch.
> The sysctl was asked in case of patch for TCP.
> So, why the status is now "Changes Requested" ?
This change is in generic bind() code, therefore it allows binding TCP
sockets with anycast, therefore you need to make a change.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
2014-02-17 19:48 ` David Miller
@ 2014-02-17 19:52 ` François-Xavier Le Bail
0 siblings, 0 replies; 11+ messages in thread
From: François-Xavier Le Bail @ 2014-02-17 19:52 UTC (permalink / raw)
To: David Miller
Cc: kuznet@ms2.inr.ac.ru, christoph.paasch@uclouvain.be,
hannes@stressinduktion.org, netdev@vger.kernel.org,
eric.dumazet@gmail.com
----- Original Message -----
> From: David Miller <davem@davemloft.net>
> To: fx.lebail@yahoo.com
> Cc: kuznet@ms2.inr.ac.ru; christoph.paasch@uclouvain.be; hannes@stressinduktion.org; netdev@vger.kernel.org; eric.dumazet@gmail.com
> Sent: Monday, February 17, 2014 8:48 PM
> Subject: Re: [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
>
> From: François-Xavier Le Bail <fx.lebail@yahoo.com>
>
> Date: Mon, 17 Feb 2014 11:42:45 -0800 (PST)
>
>> If I understand well the reviews, no change was ask for this patch.
>> The sysctl was asked in case of patch for TCP.
>> So, why the status is now "Changes Requested" ?
>
> This change is in generic bind() code, therefore it allows binding TCP
> sockets with anycast, therefore you need to make a change.
Understood, thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net-next v2] IPv6: enable bind() to assign an anycast address
@ 2014-01-13 16:59 Francois-Xavier Le Bail
0 siblings, 0 replies; 11+ messages in thread
From: Francois-Xavier Le Bail @ 2014-01-13 16:59 UTC (permalink / raw)
To: netdev
Cc: Hannes Frederic Sowa, David S. Miller, Alexey Kuznetsov,
James Morris, Hideaki Yoshifuji, Patrick McHardy,
Francois-Xavier Le Bail
- Use ipv6_chk_acast_addr_src() in inet6_bind().
Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
---
Tested with SOCK_DGRAM and SOCK_STREAM sockets.
Tested with link-local and global anycast addresses.
net/ipv6/af_inet6.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index c921d5d..68b81e9 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -347,7 +347,9 @@ int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
if (!(addr_type & IPV6_ADDR_MULTICAST)) {
if (!(inet->freebind || inet->transparent) &&
!ipv6_chk_addr(net, &addr->sin6_addr,
- dev, 0)) {
+ dev, 0) &&
+ !ipv6_chk_acast_addr_src(net, dev,
+ &addr->sin6_addr)) {
err = -EADDRNOTAVAIL;
goto out_unlock;
}
^ permalink raw reply related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-02-17 19:55 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-12 13:38 [PATCH net-next v2] IPv6: enable bind() to assign an anycast address Francois-Xavier Le Bail
2014-02-13 0:16 ` Hannes Frederic Sowa
2014-02-17 5:15 ` David Miller
2014-02-17 9:32 ` Christoph Paasch
2014-02-17 10:02 ` Alexey Kuznetsov
2014-02-17 19:19 ` David Miller
2014-02-17 19:25 ` Hannes Frederic Sowa
2014-02-17 19:42 ` François-Xavier Le Bail
2014-02-17 19:48 ` David Miller
2014-02-17 19:52 ` François-Xavier Le Bail
-- strict thread matches above, loose matches on Subject: below --
2014-01-13 16:59 Francois-Xavier Le Bail
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).