diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-10-22 14:15:55 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-06 21:11:40 +0100 |
| commit | 43dd8cafa3d683b9a1a6c2d588ab5e9838a6ff9d (patch) | |
| tree | e2b3de495c1a813474f19c56abe45ddd3024aa19 /lib/vty.h | |
| parent | 69b089fbfdd9971cf4a12ed69044fca08ff86ee3 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |
