udp_tunnel: add config option to bind to a device
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 <abauvin@scaleway.com> Reviewed-by: Amine Kherbouche <akherbouche@scaleway.com> Tested-by: Amine Kherbouche <akherbouche@scaleway.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e3dd762772
commit
da5095d052
@@ -30,6 +30,7 @@ struct udp_port_cfg {
|
||||
|
||||
__be16 local_udp_port;
|
||||
__be16 peer_udp_port;
|
||||
int bind_ifindex;
|
||||
unsigned int use_udp_checksums:1,
|
||||
use_udp6_tx_checksums:1,
|
||||
use_udp6_rx_checksums:1,
|
||||
|
Reference in New Issue
Block a user