Sylvain Munaut | 12ba778 | 2014-06-16 10:13:40 +0200 | [diff] [blame] | 1 | #pragma once |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 2 | |
| 3 | #include <stdio.h> |
| 4 | #include <stdarg.h> |
Neels Hofmeyr | 6305300 | 2019-04-10 02:41:53 +0200 | [diff] [blame] | 5 | #include <stdbool.h> |
Alexander Couzens | 0692916 | 2021-09-05 23:08:59 +0200 | [diff] [blame] | 6 | #include <time.h> |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 7 | |
Neels Hofmeyr | 4a31ffa | 2017-09-07 03:08:06 +0200 | [diff] [blame] | 8 | #include <osmocom/core/linuxlist.h> |
Neels Hofmeyr | 70ce871 | 2019-11-24 19:52:44 +0100 | [diff] [blame] | 9 | #include <osmocom/core/defs.h> |
Neels Hofmeyr | 4a31ffa | 2017-09-07 03:08:06 +0200 | [diff] [blame] | 10 | |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 11 | /*! \defgroup vty VTY (Virtual TTY) interface |
| 12 | * @{ |
Neels Hofmeyr | 17518fe | 2017-06-20 04:35:06 +0200 | [diff] [blame] | 13 | * \file vty.h */ |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 14 | |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 15 | /* GCC have printf type attribute check. */ |
| 16 | #ifdef __GNUC__ |
| 17 | #define VTY_PRINTF_ATTRIBUTE(a,b) __attribute__ ((__format__ (__printf__, a, b))) |
| 18 | #else |
| 19 | #define VTY_PRINTF_ATTRIBUTE(a,b) |
| 20 | #endif /* __GNUC__ */ |
| 21 | |
| 22 | /* Does the I/O error indicate that the operation should be retried later? */ |
| 23 | #define ERRNO_IO_RETRY(EN) \ |
| 24 | (((EN) == EAGAIN) || ((EN) == EWOULDBLOCK) || ((EN) == EINTR)) |
| 25 | |
| 26 | /* Vty read buffer size. */ |
| 27 | #define VTY_READ_BUFSIZ 512 |
| 28 | |
| 29 | #define VTY_BUFSIZ 512 |
| 30 | #define VTY_MAXHIST 20 |
| 31 | |
Vadim Yanitskiy | e566bdd | 2020-10-06 17:41:22 +0700 | [diff] [blame] | 32 | /* Number of application / library specific VTY attributes */ |
| 33 | #define VTY_CMD_USR_ATTR_NUM 32 |
Vadim Yanitskiy | ef4c597 | 2020-10-07 13:44:31 +0700 | [diff] [blame] | 34 | /* Flag characters reserved for global VTY attributes */ |
| 35 | #define VTY_CMD_ATTR_FLAGS_RESERVED \ |
Vadim Yanitskiy | 72b9088 | 2020-10-21 05:07:34 +0700 | [diff] [blame] | 36 | { '.', '!', '@', '^' } |
Vadim Yanitskiy | e566bdd | 2020-10-06 17:41:22 +0700 | [diff] [blame] | 37 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 38 | /*! VTY events */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 39 | enum event { |
| 40 | VTY_SERV, |
| 41 | VTY_READ, |
| 42 | VTY_WRITE, |
| 43 | VTY_CLOSED, |
| 44 | VTY_TIMEOUT_RESET, |
| 45 | #ifdef VTYSH |
| 46 | VTYSH_SERV, |
| 47 | VTYSH_READ, |
| 48 | VTYSH_WRITE |
| 49 | #endif /* VTYSH */ |
| 50 | }; |
| 51 | |
Andreas Eversberg | 3c6a2ce | 2012-07-12 09:22:56 +0200 | [diff] [blame] | 52 | enum vty_type { |
| 53 | VTY_TERM, |
| 54 | VTY_FILE, |
| 55 | VTY_SHELL, |
| 56 | VTY_SHELL_SERV |
| 57 | }; |
| 58 | |
Neels Hofmeyr | 4a31ffa | 2017-09-07 03:08:06 +0200 | [diff] [blame] | 59 | struct vty_parent_node { |
| 60 | struct llist_head entry; |
| 61 | |
| 62 | /*! private data, specified by creator */ |
| 63 | void *priv; |
| 64 | |
| 65 | /*! Node status of this vty */ |
| 66 | int node; |
| 67 | |
| 68 | /*! When reading from a config file, these are the indenting characters expected for children of |
| 69 | * this VTY node. */ |
| 70 | char *indent; |
| 71 | }; |
| 72 | |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 73 | /*! Internal representation of a single VTY */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 74 | struct vty { |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 75 | /*! underlying file (if any) */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 76 | FILE *file; |
| 77 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 78 | /*! private data, specified by creator */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 79 | void *priv; |
| 80 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 81 | /*! File descripter of this vty. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 82 | int fd; |
| 83 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 84 | /*! Is this vty connect to file or not */ |
Andreas Eversberg | 3c6a2ce | 2012-07-12 09:22:56 +0200 | [diff] [blame] | 85 | enum vty_type type; |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 86 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 87 | /*! Node status of this vty */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 88 | int node; |
| 89 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 90 | /*! Failure count */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 91 | int fail; |
| 92 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 93 | /*! Output buffer. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 94 | struct buffer *obuf; |
| 95 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 96 | /*! Command input buffer */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 97 | char *buf; |
| 98 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 99 | /*! Command cursor point */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 100 | int cp; |
| 101 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 102 | /*! Command length */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 103 | int length; |
| 104 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 105 | /*! Command max length. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 106 | int max; |
| 107 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 108 | /*! Histry of command */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 109 | char *hist[VTY_MAXHIST]; |
| 110 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 111 | /*! History lookup current point */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 112 | int hp; |
| 113 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 114 | /*! History insert end point */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 115 | int hindex; |
| 116 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 117 | /*! For current referencing point of interface, route-map, |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 118 | access-list etc... */ |
| 119 | void *index; |
| 120 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 121 | /*! For multiple level index treatment such as key chain and key. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 122 | void *index_sub; |
| 123 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 124 | /*! For escape character. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 125 | unsigned char escape; |
| 126 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 127 | /*! Current vty status. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 128 | enum { VTY_NORMAL, VTY_CLOSE, VTY_MORE, VTY_MORELINE } status; |
| 129 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 130 | /*! IAC handling |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 131 | * |
| 132 | * IAC handling: was the last character received the IAC |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 133 | * (interpret-as-command) escape character (and therefore the next |
| 134 | * character will be the command code)? Refer to Telnet RFC 854. */ |
| 135 | unsigned char iac; |
| 136 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 137 | /*! IAC SB (option subnegotiation) handling */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 138 | unsigned char iac_sb_in_progress; |
| 139 | /* At the moment, we care only about the NAWS (window size) negotiation, |
| 140 | * and that requires just a 5-character buffer (RFC 1073): |
| 141 | * <NAWS char> <16-bit width> <16-bit height> */ |
| 142 | #define TELNET_NAWS_SB_LEN 5 |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 143 | /*! sub-negotiation buffer */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 144 | unsigned char sb_buf[TELNET_NAWS_SB_LEN]; |
Pau Espin Pedrol | 645aec8 | 2021-05-18 14:46:29 +0200 | [diff] [blame] | 145 | /*! How many subnegotiation characters have we received? |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 146 | * |
| 147 | * We just drop those that do not fit in the buffer. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 148 | size_t sb_len; |
| 149 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 150 | /*! Window width */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 151 | int width; |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 152 | /*! Widnow height */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 153 | int height; |
| 154 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 155 | /*! Configure lines. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 156 | int lines; |
| 157 | |
| 158 | int monitor; |
| 159 | |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 160 | /*! In configure mode. */ |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 161 | int config; |
Neels Hofmeyr | 4a31ffa | 2017-09-07 03:08:06 +0200 | [diff] [blame] | 162 | |
| 163 | /*! List of parent nodes, last item is the outermost parent. */ |
| 164 | struct llist_head parent_nodes; |
| 165 | |
| 166 | /*! When reading from a config file, these are the indenting characters expected for children of |
| 167 | * the current VTY node. */ |
| 168 | char *indent; |
Vadim Yanitskiy | 0a2d9bd | 2020-10-25 16:34:57 +0700 | [diff] [blame] | 169 | |
| 170 | /*! Whether the expert mode is enabled. */ |
| 171 | bool expert_mode; |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 172 | }; |
| 173 | |
| 174 | /* Small macro to determine newline is newline only or linefeed needed. */ |
| 175 | #define VTY_NEWLINE ((vty->type == VTY_TERM) ? "\r\n" : "\n") |
| 176 | |
Andreas Eversberg | 3c6a2ce | 2012-07-12 09:22:56 +0200 | [diff] [blame] | 177 | static inline const char *vty_newline(struct vty *vty) |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 178 | { |
| 179 | return VTY_NEWLINE; |
| 180 | } |
| 181 | |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 182 | /*! Information an application registers with the VTY */ |
Harald Welte | 237f624 | 2010-05-25 23:00:45 +0200 | [diff] [blame] | 183 | struct vty_app_info { |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 184 | /*! name of the application */ |
Holger Hans Peter Freyther | dd19527 | 2010-06-08 16:12:58 +0800 | [diff] [blame] | 185 | const char *name; |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 186 | /*! version string of the application */ |
Holger Hans Peter Freyther | dd19527 | 2010-06-08 16:12:58 +0800 | [diff] [blame] | 187 | const char *version; |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 188 | /*! copyright string of the application */ |
Holger Hans Peter Freyther | dd19527 | 2010-06-08 16:12:58 +0800 | [diff] [blame] | 189 | const char *copyright; |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 190 | /*! \ref talloc context */ |
Harald Welte | 237f624 | 2010-05-25 23:00:45 +0200 | [diff] [blame] | 191 | void *tall_ctx; |
Neels Hofmeyr | d31de23 | 2019-10-31 16:09:23 +0100 | [diff] [blame] | 192 | /*! Call-back for taking actions upon exiting a node. |
| 193 | * The return value is ignored, and changes to vty->node and vty->index made in this callback are ignored. |
| 194 | * Implicit parent node tracking always sets the correct parent node and vty->index after this callback exits, |
| 195 | * so this callback can handle only those nodes that should take specific actions upon node exit, or can be left |
| 196 | * NULL entirely. */ |
Holger Hans Peter Freyther | a9e5252 | 2015-08-02 02:14:07 +0000 | [diff] [blame] | 197 | int (*go_parent_cb)(struct vty *vty); |
Neels Hofmeyr | d31de23 | 2019-10-31 16:09:23 +0100 | [diff] [blame] | 198 | /*! OBSOLETED: Implicit parent node tracking has replaced the use of this callback. This callback is no longer |
| 199 | * called, ever, and can be left NULL. */ |
Neels Hofmeyr | 70ce871 | 2019-11-24 19:52:44 +0100 | [diff] [blame] | 200 | int (*is_config_node)(struct vty *vty, int node) |
| 201 | OSMO_DEPRECATED("Implicit parent node tracking has replaced the use of this callback. This callback is" |
| 202 | " no longer called, ever, and can be left NULL."); |
Neels Hofmeyr | 87e4550 | 2017-06-20 00:17:59 +0200 | [diff] [blame] | 203 | /*! Check if the config is consistent before write */ |
Holger Hans Peter Freyther | 9f0f978 | 2014-11-21 10:40:07 +0100 | [diff] [blame] | 204 | int (*config_is_consistent)(struct vty *vty); |
Vadim Yanitskiy | 7f1ecd9 | 2020-08-15 22:16:30 +0700 | [diff] [blame] | 205 | /*! Description of the application specific VTY attributes (optional). */ |
Vadim Yanitskiy | e566bdd | 2020-10-06 17:41:22 +0700 | [diff] [blame] | 206 | const char * usr_attr_desc[VTY_CMD_USR_ATTR_NUM]; |
Vadim Yanitskiy | 7f1ecd9 | 2020-08-15 22:16:30 +0700 | [diff] [blame] | 207 | /*! Flag letters of the application specific VTY attributes (optional). */ |
Vadim Yanitskiy | e566bdd | 2020-10-06 17:41:22 +0700 | [diff] [blame] | 208 | char usr_attr_letters[VTY_CMD_USR_ATTR_NUM]; |
Harald Welte | 237f624 | 2010-05-25 23:00:45 +0200 | [diff] [blame] | 209 | }; |
| 210 | |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 211 | /* Prototypes. */ |
Harald Welte | 237f624 | 2010-05-25 23:00:45 +0200 | [diff] [blame] | 212 | void vty_init(struct vty_app_info *app_info); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 213 | int vty_read_config_file(const char *file_name, void *priv); |
Pau Espin Pedrol | 645aec8 | 2021-05-18 14:46:29 +0200 | [diff] [blame] | 214 | int vty_read_config_filep(FILE *confp, void *priv); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 215 | void vty_init_vtysh (void); |
| 216 | void vty_reset (void); |
| 217 | struct vty *vty_new (void); |
| 218 | struct vty *vty_create (int vty_sock, void *priv); |
Neels Hofmeyr | 6305300 | 2019-04-10 02:41:53 +0200 | [diff] [blame] | 219 | bool vty_is_active(struct vty *vty); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 220 | int vty_out (struct vty *, const char *, ...) VTY_PRINTF_ATTRIBUTE(2, 3); |
Neels Hofmeyr | c1aa178 | 2019-02-01 05:38:44 +0100 | [diff] [blame] | 221 | int vty_out_va(struct vty *vty, const char *format, va_list ap); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 222 | int vty_out_newline(struct vty *); |
Alexander Couzens | 0692916 | 2021-09-05 23:08:59 +0200 | [diff] [blame] | 223 | int vty_out_uptime(struct vty *vty, const struct timespec *starttime); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 224 | int vty_read(struct vty *vty); |
| 225 | //void vty_time_print (struct vty *, int); |
| 226 | void vty_close (struct vty *); |
Eric | 11a58a1 | 2021-09-09 15:42:32 +0200 | [diff] [blame] | 227 | void vty_flush(struct vty *vty); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 228 | char *vty_get_cwd (void); |
| 229 | void vty_log (const char *level, const char *proto, const char *fmt, va_list); |
| 230 | int vty_config_lock (struct vty *); |
| 231 | int vty_config_unlock (struct vty *); |
| 232 | int vty_shell (struct vty *); |
| 233 | int vty_shell_serv (struct vty *); |
| 234 | void vty_hello (struct vty *); |
Holger Hans Peter Freyther | 08aaded | 2010-09-14 02:24:03 +0800 | [diff] [blame] | 235 | void *vty_current_index(struct vty *); |
| 236 | int vty_current_node(struct vty *vty); |
Holger Hans Peter Freyther | a9e5252 | 2015-08-02 02:14:07 +0000 | [diff] [blame] | 237 | int vty_go_parent(struct vty *vty); |
Harald Welte | 3fb0b6f | 2010-05-19 19:02:52 +0200 | [diff] [blame] | 238 | |
Neels Hofmeyr | 96172f0 | 2016-02-23 14:01:41 +0100 | [diff] [blame] | 239 | /* Return IP address passed to the 'line vty'/'bind' command, or "127.0.0.1" */ |
| 240 | const char *vty_get_bind_addr(void); |
Holger Hans Peter Freyther | 99ae401 | 2018-12-15 17:36:41 +0000 | [diff] [blame] | 241 | /** Returns configured port passed to the 'line vty'/'bind' command or default_port. */ |
| 242 | int vty_get_bind_port(int default_port); |
Neels Hofmeyr | 96172f0 | 2016-02-23 14:01:41 +0100 | [diff] [blame] | 243 | |
Holger Hans Peter Freyther | 4aaccd7 | 2010-08-31 17:09:44 +0800 | [diff] [blame] | 244 | extern void *tall_vty_ctx; |
Harald Welte | 7acb30c | 2011-08-17 17:13:48 +0200 | [diff] [blame] | 245 | |
Harald Welte | d61d517 | 2011-09-04 22:56:10 +0200 | [diff] [blame] | 246 | extern struct cmd_element cfg_description_cmd; |
| 247 | extern struct cmd_element cfg_no_description_cmd; |
| 248 | |
Holger Hans Peter Freyther | 2c9168c | 2013-10-10 20:21:33 +0200 | [diff] [blame] | 249 | |
| 250 | /** |
| 251 | * signal handling |
| 252 | */ |
| 253 | enum signal_vty { |
| 254 | S_VTY_EVENT, |
| 255 | }; |
| 256 | |
| 257 | struct vty_signal_data { |
| 258 | enum event event; |
| 259 | int sock; |
| 260 | struct vty *vty; |
| 261 | }; |
| 262 | |
Sylvain Munaut | dca7d2c | 2012-04-18 21:53:23 +0200 | [diff] [blame] | 263 | /*! @} */ |