diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2020-01-28 14:47:17 -0500 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-12-28 09:45:41 +0000 |
commit | 5481ad4eb7fbbf32ff30450525c935de63ffcf0f (patch) | |
tree | 0d371afdf27b033511f83bad6249e17ec52688c6 /src/vlibmemory | |
parent | f6472e0f7b220226f2c2d4b7e05de4ebe7f36663 (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 'src/vlibmemory')
-rw-r--r-- | src/vlibmemory/socket_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlibmemory/socket_api.c b/src/vlibmemory/socket_api.c index a5fb86b891b..546791bb5c6 100644 --- a/src/vlibmemory/socket_api.c +++ b/src/vlibmemory/socket_api.c @@ -410,6 +410,7 @@ socksvr_file_add (clib_file_main_t * fm, int fd) template.write_function = vl_socket_write_ready; template.error_function = vl_socket_error_ready; template.file_descriptor = fd; + template.description = format (0, "socksrv"); template.private_data = rp - socket_main.registration_pool; rp->registration_type = REGISTRATION_TYPE_SOCKET_SERVER; @@ -767,6 +768,7 @@ vl_sock_api_init (vlib_main_t * vm) template.read_function = socksvr_accept_ready; template.write_function = socksvr_bogus_write; template.file_descriptor = sock->fd; + template.description = format (0, "socksvr %s", sock->config); template.private_data = rp - sm->registration_pool; rp->clib_file_index = clib_file_add (fm, &template); |