summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-tun.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2017-09-12 18:01:35 +1000
committerDamien Miller <djm@mindrot.org>2017-09-12 18:01:35 +1000
commit871f1e4374420b07550041b329627c474abc3010 (patch)
tree8b01b89e95aa3faf6a2eb9be50fee5a25928a7f6 /openbsd-compat/port-tun.h
parent4ec0bb9f9ad7b4eb0af110fa8eddf8fa199e46bb (diff)
adapt portable to channels API changes
Diffstat (limited to 'openbsd-compat/port-tun.h')
-rw-r--r--openbsd-compat/port-tun.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/port-tun.h b/openbsd-compat/port-tun.h
index c53df01fc..103514370 100644
--- a/openbsd-compat/port-tun.h
+++ b/openbsd-compat/port-tun.h
@@ -18,6 +18,7 @@
18#define _PORT_TUN_H 18#define _PORT_TUN_H
19 19
20struct Channel; 20struct Channel;
21struct ssh;
21 22
22#if defined(SSH_TUN_LINUX) || defined(SSH_TUN_FREEBSD) 23#if defined(SSH_TUN_LINUX) || defined(SSH_TUN_FREEBSD)
23# define CUSTOM_SYS_TUN_OPEN 24# define CUSTOM_SYS_TUN_OPEN
@@ -26,8 +27,8 @@ int sys_tun_open(int, int);
26 27
27#if defined(SSH_TUN_COMPAT_AF) || defined(SSH_TUN_PREPEND_AF) 28#if defined(SSH_TUN_COMPAT_AF) || defined(SSH_TUN_PREPEND_AF)
28# define SSH_TUN_FILTER 29# define SSH_TUN_FILTER
29int sys_tun_infilter(struct Channel *, char *, int); 30int sys_tun_infilter(struct ssh *, struct Channel *, char *, int);
30u_char *sys_tun_outfilter(struct Channel *, u_char **, u_int *); 31u_char *sys_tun_outfilter(struct ssh *, struct Channel *, u_char **, size_t *);
31#endif 32#endif
32 33
33#endif 34#endif