summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-01-19 20:07:45 +0000
committerDamien Miller <djm@mindrot.org>2015-01-20 09:14:16 +1100
commit3fdc88a0def4f86aa88a5846ac079dc964c0546a (patch)
treed26470c8ffb49bb4417af2b729d933d6ce3f75f8 /packet.h
parent091c302829210c41e7f57c3f094c7b9c054306f0 (diff)
downloadopenssh-git-3fdc88a0def4f86aa88a5846ac079dc964c0546a.tar.gz
upstream commit
move dispatch to struct ssh; ok djm@
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index 0d691979..d9b56c30 100644
--- a/packet.h
+++ b/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>
@@ -32,6 +32,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;
@@ -43,6 +45,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;
};