summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/misc.h b/misc.h
index ff2ba1b5a..415910686 100644
--- a/misc.h
+++ b/misc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: misc.h,v 1.27 2005/12/06 22:38:27 reyk Exp $ */ 1/* $OpenBSD: misc.h,v 1.28 2005/12/08 18:34:11 reyk Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -50,4 +50,16 @@ void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
50char *read_passphrase(const char *, int); 50char *read_passphrase(const char *, int);
51int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2))); 51int ask_permission(const char *, ...) __attribute__((format(printf, 1, 2)));
52int read_keyfile_line(FILE *, const char *, char *, size_t, u_long *); 52int read_keyfile_line(FILE *, const char *, char *, size_t, u_long *);
53int tun_open(int); 53
54int tun_open(int, int);
55
56/* Common definitions for ssh tunnel device forwarding */
57#define SSH_TUNMODE_NO 0x00
58#define SSH_TUNMODE_POINTOPOINT 0x01
59#define SSH_TUNMODE_ETHERNET 0x02
60#define SSH_TUNMODE_DEFAULT SSH_TUNMODE_POINTOPOINT
61#define SSH_TUNMODE_YES (SSH_TUNMODE_POINTOPOINT|SSH_TUNMODE_ETHERNET)
62
63#define SSH_TUNID_ANY 0x7fffffff
64#define SSH_TUNID_ERR (SSH_TUNID_ANY - 1)
65#define SSH_TUNID_MAX (SSH_TUNID_ANY - 2)