]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.h
lib: Allow interface lookup by VRF_UNKNOWN
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 5 Jan 2018 14:21:55 +0000 (09:21 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Jan 2018 14:19:43 +0000 (09:19 -0500)
commit14fcc65cbbcd3d1684b879a10a0d8564c238e0e6
tree6ea11723710bc2f05b4258a45ef152250a98374a
parent0cb76b9d8dd1925d34fe84f1c24c2a7890444e97
lib: Allow interface lookup by VRF_UNKNOWN

Modify if_lookup_by_index to accept a VRF_UNKNOWN
as a vrf_id.  This will cause it to look in all
vrf's for the interface pointer.

Subsequently all if_XXXX functions that call this function
will also get this behavior.

VRF_UNKNOWN *should* not be used for interface creation
as that this will break some core assumptions.

This work is part of allowing vrf route leaking.  Currently
it is possible to create a route in the linux kernel that has
a nexthop across vrf boundaries.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/if.c
lib/if.h