diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-11-11 03:12:30 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-11-11 03:12:30 +0300 |
commit | 8c58b84d5d246db41d02ee28448d24a4bfd3c02f (patch) | |
tree | 3bb8b2ba8b87b90282820939e455d7e61aae2c60 /accel-pptpd/cli/telnet.h | |
parent | 0bf5010f4252c414fb629fd21f0f2abdebb6eda7 (diff) | |
download | accel-ppp-xebd-8c58b84d5d246db41d02ee28448d24a4bfd3c02f.tar.gz accel-ppp-xebd-8c58b84d5d246db41d02ee28448d24a4bfd3c02f.zip |
cli: implemented command history
Diffstat (limited to 'accel-pptpd/cli/telnet.h')
-rw-r--r-- | accel-pptpd/cli/telnet.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/accel-pptpd/cli/telnet.h b/accel-pptpd/cli/telnet.h index eab156c..adbb7b9 100644 --- a/accel-pptpd/cli/telnet.h +++ b/accel-pptpd/cli/telnet.h @@ -5,12 +5,19 @@ struct client_t { struct list_head entry; struct triton_md_handler_t hnd; - uint8_t *recv_buf; - int recv_pos; struct list_head xmit_queue; struct buffer_t *xmit_buf; int xmit_pos; + struct list_head history; + struct list_head *history_pos; + uint8_t *cmdline; + int cmdline_pos; + int cmdline_pos2; + int cmdline_len; int auth:1; + int echo:1; + int telcmd:1; + int esc:1; }; int telnet_send(struct client_t *cln, const void *buf, int size); |