summaryrefslogtreecommitdiff
path: root/lib/vty.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-10-22 14:15:55 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-11-06 21:11:40 +0100
commit43dd8cafa3d683b9a1a6c2d588ab5e9838a6ff9d (patch)
treee2b3de495c1a813474f19c56abe45ddd3024aa19 /lib/vty.h
parent69b089fbfdd9971cf4a12ed69044fca08ff86ee3 (diff)
lib: replace vtyvec/vtyshvec with lists
These are just used to iterate over active vty sessions, a vector is a weird choice there. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 3c92ab64f1..62e2518957 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -56,8 +56,12 @@ struct vty_cfg_change {
const char *value;
};
+PREDECL_DLIST(vtys);
+
/* VTY struct. */
struct vty {
+ struct vtys_item itm;
+
/* File descripter of this vty. */
int fd;