summaryrefslogtreecommitdiffstats
path: root/extras/deprecated
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-01-28 14:47:17 -0500
committerNeale Ranns <nranns@cisco.com>2020-12-28 09:45:41 +0000
commit5481ad4eb7fbbf32ff30450525c935de63ffcf0f (patch)
tree0d371afdf27b033511f83bad6249e17ec52688c6 /extras/deprecated
parentf6472e0f7b220226f2c2d4b7e05de4ebe7f36663 (diff)
vlib: add missing file template descriptions
Add descriptions to clib_file_t template structures so that sockets can be identified via the 'show unix file' cli command. Type: fix Change-Id: Ibf82d55aa6c7b1126bd252b76d0dc8b7076f5046 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'extras/deprecated')
-rw-r--r--extras/deprecated/netmap/netmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/deprecated/netmap/netmap.c b/extras/deprecated/netmap/netmap.c
index 03d96216bb0..7cab6bb0289 100644
--- a/extras/deprecated/netmap/netmap.c
+++ b/extras/deprecated/netmap/netmap.c
@@ -194,6 +194,7 @@ netmap_create_if (vlib_main_t * vm, u8 * if_name, u8 * hw_addr_set,
template.read_function = netmap_fd_read_ready;
template.file_descriptor = nif->fd;
template.private_data = nif->if_index;
+ template.description = format (0, "netmap socket");
nif->clib_file_index = clib_file_add (&file_main, &template);
}