summaryrefslogtreecommitdiff
path: root/lib/route-table.c
diff options
context:
space:
mode:
authorNobuhiro MIKI <nmiki@yahoo-corp.jp>2023-03-06 11:49:18 +0900
committerIlya Maximets <i.maximets@ovn.org>2023-03-07 18:29:16 +0100
commitb801f1aa001cf0537cc64b268a49c7988b78cbf5 (patch)
tree265f3e1b4aee4c97e1f497aa55156728a14d5b4c /lib/route-table.c
parent01acf09f746e4678e81b545b38ca682171628d02 (diff)
downloadopenvswitch-b801f1aa001cf0537cc64b268a49c7988b78cbf5.tar.gz
ovs-router: Introduce src option in ovs/route/add command.
When adding a route with ovs/route/add command, the source address in "ovs_router_entry" structure is always the FIRST address that the interface has. See "ovs_router_get_netdev_source_address" function for more information. If an interface has multiple ipv4 and/or ipv6 addresses, there are use cases where the user wants to control the source address. This patch therefore addresses this issue by adding a src parameter. Note that same constraints also exist when caching routes from Kernel FIB with Netlink, but are not dealt with in this patch. Acked-by: Eelco Chaudron <echaudro@redhat.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/route-table.c')
0 files changed, 0 insertions, 0 deletions