diff options
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.70 2016/02/08 10:57:07 djm Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.71 2016/03/07 19:02:43 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -56,9 +56,11 @@ struct ssh { | |||
56 | /* Key exchange */ | 56 | /* Key exchange */ |
57 | struct kex *kex; | 57 | struct kex *kex; |
58 | 58 | ||
59 | /* cached remote ip address and port*/ | 59 | /* cached local and remote ip addresses and ports */ |
60 | char *remote_ipaddr; | 60 | char *remote_ipaddr; |
61 | int remote_port; | 61 | int remote_port; |
62 | char *local_ipaddr; | ||
63 | int local_port; | ||
62 | 64 | ||
63 | /* Dispatcher table */ | 65 | /* Dispatcher table */ |
64 | dispatch_fn *dispatch[DISPATCH_MAX]; | 66 | dispatch_fn *dispatch[DISPATCH_MAX]; |
@@ -145,6 +147,8 @@ int ssh_packet_set_state(struct ssh *, struct sshbuf *); | |||
145 | 147 | ||
146 | const char *ssh_remote_ipaddr(struct ssh *); | 148 | const char *ssh_remote_ipaddr(struct ssh *); |
147 | int ssh_remote_port(struct ssh *); | 149 | int ssh_remote_port(struct ssh *); |
150 | const char *ssh_local_ipaddr(struct ssh *); | ||
151 | int ssh_local_port(struct ssh *); | ||
148 | 152 | ||
149 | void ssh_packet_set_rekey_limits(struct ssh *, u_int64_t, time_t); | 153 | void ssh_packet_set_rekey_limits(struct ssh *, u_int64_t, time_t); |
150 | time_t ssh_packet_get_rekey_timeout(struct ssh *); | 154 | time_t ssh_packet_get_rekey_timeout(struct ssh *); |