# Re: \[RFC v4 1/5\] udp\_tunnel: add config option to bind to a device

- From: David Ahern \<hidden\>
- Date: 2018-11-23 03:51:16 
- List: netdev
- Page: https://ratatoskr.run/netdev/2018/11/11115965
- Thread: https://ratatoskr.run/netdev/2018/11/11115876/t.md

```text
On 11/21/18 6:07 PM, Alexis Bauvin wrote:
> UDP tunnel sockets are always opened unbound to a specific device. This
> patch allow the socket to be bound on a custom device, which
> incidentally makes UDP tunnels VRF-aware if binding to an l3mdev.
> 
> Signed-off-by: Alexis Bauvin <redacted>
> Reviewed-by: Amine Kherbouche <redacted>
> Tested-by: Amine Kherbouche <redacted>
> ---
>  include/net/udp_tunnel.h  |  1 +
>  net/ipv4/udp_tunnel.c     | 10 ++++++++++
>  net/ipv6/ip6_udp_tunnel.c |  9 +++++++++
>  3 files changed, 20 insertions(+)

Reviewed-by: David Ahern <redacted>
```
