diff options
author | markus@openbsd.org <markus@openbsd.org> | 2015-01-19 20:07:45 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-20 09:14:16 +1100 |
commit | 3fdc88a0def4f86aa88a5846ac079dc964c0546a (patch) | |
tree | d26470c8ffb49bb4417af2b729d933d6ce3f75f8 /packet.h | |
parent | 091c302829210c41e7f57c3f094c7b9c054306f0 (diff) |
upstream commit
move dispatch to struct ssh; ok djm@
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.62 2015/01/19 19:52:16 markus Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.63 2015/01/19 20:07:45 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -32,6 +32,8 @@ struct sshkey; | |||
32 | struct sshbuf; | 32 | struct sshbuf; |
33 | struct session_state; /* private session data */ | 33 | struct session_state; /* private session data */ |
34 | 34 | ||
35 | #include "dispatch.h" /* typedef, DISPATCH_MAX */ | ||
36 | |||
35 | struct ssh { | 37 | struct ssh { |
36 | /* Session state */ | 38 | /* Session state */ |
37 | struct session_state *state; | 39 | struct session_state *state; |
@@ -43,6 +45,11 @@ struct ssh { | |||
43 | char *remote_ipaddr; | 45 | char *remote_ipaddr; |
44 | int remote_port; | 46 | int remote_port; |
45 | 47 | ||
48 | /* Dispatcher table */ | ||
49 | dispatch_fn *dispatch[DISPATCH_MAX]; | ||
50 | /* number of packets to ignore in the dispatcher */ | ||
51 | int dispatch_skip_packets; | ||
52 | |||
46 | /* datafellows */ | 53 | /* datafellows */ |
47 | int compat; | 54 | int compat; |
48 | }; | 55 | }; |