]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Improve printing of hostentries with MPLS labels
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 27 Mar 2024 22:26:25 +0000 (23:26 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 27 Mar 2024 22:26:25 +0000 (23:26 +0100)
MPLS labels in hostentry should be printed with 'mpls' keyword instead of
'labels' to be consistent with the rest of the 'show route' output.

nest/rt-attr.c

index 0a74cd3de551fc996246408e4452ae6bca771427..e29ded29fff2d1a1b686401f934b8dcaa0ed393a 100644 (file)
@@ -1384,7 +1384,7 @@ ea_show_hostentry(const struct adata *ad, byte *buf, uint size)
   if (!lc)
     return;
 
-  s = bsnprintf((buf += s), (size -= s), " labels");
+  s = bsnprintf((buf += s), (size -= s), " mpls");
   for (uint i=0; i < lc; i++)
     s = bsnprintf((buf += s), (size -= s), " %u", had->labels[i]);
 }