summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/unix-formats.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vppinfra/unix-formats.c b/src/vppinfra/unix-formats.c
index 91986516108..b09433c9370 100644
--- a/src/vppinfra/unix-formats.c
+++ b/src/vppinfra/unix-formats.c
@@ -231,6 +231,7 @@ u8 * format_sockaddr (u8 * s, va_list * args)
{
void * v = va_arg (*args, void *);
struct sockaddr * sa = v;
+ static u32 local_counter;
switch (sa->sa_family)
{
@@ -243,6 +244,17 @@ u8 * format_sockaddr (u8 * s, va_list * args)
}
break;
+ case AF_LOCAL:
+ {
+ /*
+ * There isn't anything useful to print.
+ * The unix cli world uses the output to make a node name,
+ * so we need to return a unique name.
+ */
+ s = format (s, "local:%u", local_counter++);
+ }
+ break;
+
#ifndef __KERNEL__
#ifdef AF_NETLINK
case AF_NETLINK: