summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/packet.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2015-01-19 20:07:46 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2015-01-19 20:07:46 +0000
commitd54af8c45a3d77b88393a007c562a43eabb43491 (patch)
treee518c25e56050846a3dcecaa2a82581cc4fb3221 /usr.bin/ssh/packet.h
parente1a2fe72b41018620c2deb45374fb5c1c4e7df85 (diff)
move dispatch to struct ssh; ok djm@
Diffstat (limited to 'usr.bin/ssh/packet.h')
-rw-r--r--usr.bin/ssh/packet.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/ssh/packet.h b/usr.bin/ssh/packet.h
index 46d15a17d33..2fa9009c5ba 100644
--- a/usr.bin/ssh/packet.h
+++ b/usr.bin/ssh/packet.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.h,v 1.62 2015/01/19 19:52:16 markus Exp $ */
+/* $OpenBSD: packet.h,v 1.63 2015/01/19 20:07:45 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -28,6 +28,8 @@ struct sshkey;
struct sshbuf;
struct session_state; /* private session data */
+#include "dispatch.h" /* typedef, DISPATCH_MAX */
+
struct ssh {
/* Session state */
struct session_state *state;
@@ -39,6 +41,11 @@ struct ssh {
char *remote_ipaddr;
int remote_port;
+ /* Dispatcher table */
+ dispatch_fn *dispatch[DISPATCH_MAX];
+ /* number of packets to ignore in the dispatcher */
+ int dispatch_skip_packets;
+
/* datafellows */
int compat;
};