summaryrefslogtreecommitdiffstats
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-12-08 19:06:34 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commitfe533c564e1901ee6b767708345abb52a56056af (patch)
tree6837eb93d5e7e0ea4edf93286e4cf785c94a2868 /lib/vrf.c
parentlib: netns vty command not available when vrf backend is vrf lite (diff)
downloadfrr-fe533c564e1901ee6b767708345abb52a56056af.tar.xz
frr-fe533c564e1901ee6b767708345abb52a56056af.zip
zebra: socket operations stick to namespace if necessary
Upon following calls: interface poll, address poll, route poll, and ICMPv6 handling, each new Namespace is being parsed. For that, the socket operations need to switch from one NS to one other, to get the necessary information. As of now, there is a crash when dumping interfaces, through show running-config. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 56c8bdbab..81ff6d56f 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -97,7 +97,8 @@ struct vrf *vrf_get(vrf_id_t vrf_id, const char *name)
int new = 0;
if (debug_vrf)
- zlog_debug("VRF_GET: %s(%u)", name, vrf_id);
+ zlog_debug("VRF_GET: %s(%u)",
+ name == NULL ? "(NULL)" : name, vrf_id);
/* Nothing to see, move along here */
if (!name && vrf_id == VRF_UNKNOWN)