summaryrefslogtreecommitdiff
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
authorThibaut Collet <thibaut.collet@6wind.com>2018-08-30 11:42:55 +0200
committerThibaut Collet <thibaut.collet@6wind.com>2018-08-30 14:37:55 +0200
commit20c87e98d8399c322f3f8da9d34ca19fd4ca1865 (patch)
tree38e3c8bcb5ccd319e32375339c45827613aff6dd /pimd/pim_pim.c
parentf177317a20ff417c2dc9d719f2e1135d81ff96f8 (diff)
vrf: return vrf implementation for default vrf
To correct potential crash with netns implementation of vrf (see next commit) it is necessary to allow any daemons to know the vrf implementation whatever the vrf. With current implementation the daemons do not know the vrf implementation for the default vrf. For this vrf the returned vrf implementation is always vrf-lite. To solve this issue a netns name is set to the default vrf to just test is presence to know the used implementation. For zebra a netns name (if needed) is set in the vrf_init function just before enabling the vrf. So this information is propagated to the other daemons thanks the zapi message called when the vrf is enable at zebra layer and override the default configuration (vrf-lite) of the daemon. Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
Diffstat (limited to 'pimd/pim_pim.c')
0 files changed, 0 insertions, 0 deletions