diff options
Diffstat (limited to 'bgpd/bgp_debug.c')
| -rw-r--r-- | bgpd/bgp_debug.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index 8e4d8bf4f2..0bd74dbdc4 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -450,9 +450,12 @@ bgp_dump_attr (struct peer *peer, struct attr *attr, char *buf, size_t size) snprintf (buf + strlen (buf), size - strlen (buf), ", path %s", aspath_print (attr->aspath)); - if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_LABEL_INDEX))) - snprintf (buf + strlen (buf), size - strlen (buf), ", label-index %u", + if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_PREFIX_SID))) + { + if (attr->extra->label_index != BGP_INVALID_LABEL_INDEX) + snprintf (buf + strlen (buf), size - strlen (buf), ", label-index %u", attr->extra->label_index); + } if (strlen (buf) > 1) return 1; |
