Re: [PATCH] ipv4/raw: support binding to nonlocal addresses

2021-03-21 Thread David Ahern
On 3/20/21 6:20 PM, Riccardo Paolo Bestetti wrote: > diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c > index 50a73178d63a..734c0332b54b 100644 > --- a/net/ipv4/raw.c > +++ b/net/ipv4/raw.c > @@ -717,6 +717,7 @@ static int raw_bind(struct sock *sk, struct sockaddr > *uaddr, int addr_len) > { >

[PATCH] ipv4/raw: support binding to nonlocal addresses

2021-03-20 Thread Riccardo Paolo Bestetti
Add support to inet raw sockets for binding to nonlocal addresses through the IP_FREEBIND and IP_TRANSPARENT socket options, as well as the ipv4.ip_nonlocal_bind kernel parameter. Signed-off-by: Riccardo Paolo Bestetti --- net/ipv4/raw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)