diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2017-12-08 19:06:34 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-27 11:11:24 +0100 |
commit | fe533c564e1901ee6b767708345abb52a56056af (patch) | |
tree | 6837eb93d5e7e0ea4edf93286e4cf785c94a2868 /lib/vrf.c | |
parent | lib: netns vty command not available when vrf backend is vrf lite (diff) | |
download | frr-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |