diff options
Diffstat (limited to 'openbsd-compat/port-net.c')
-rw-r--r-- | openbsd-compat/port-net.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/openbsd-compat/port-net.c b/openbsd-compat/port-net.c index 0e75c911d..d384b1454 100644 --- a/openbsd-compat/port-net.c +++ b/openbsd-compat/port-net.c | |||
@@ -37,6 +37,38 @@ | |||
37 | #include "ssherr.h" | 37 | #include "ssherr.h" |
38 | 38 | ||
39 | /* | 39 | /* |
40 | * This file contains various portability code for network support, | ||
41 | * including tun/tap forwarding and routing domains. | ||
42 | */ | ||
43 | |||
44 | #if defined(SYS_RDOMAIN_XXX) | ||
45 | /* XXX examples */ | ||
46 | char * | ||
47 | sys_get_rdomain(int fd) | ||
48 | { | ||
49 | return NULL; | ||
50 | } | ||
51 | |||
52 | int | ||
53 | sys_set_rdomain(int fd, const char *name) | ||
54 | { | ||
55 | return -1; | ||
56 | } | ||
57 | |||
58 | int | ||
59 | valid_rdomain(const char *name) | ||
60 | { | ||
61 | return 0; | ||
62 | } | ||
63 | |||
64 | void | ||
65 | sys_set_process_rdomain(const char *name) | ||
66 | { | ||
67 | fatal("%s: not supported", __func__); | ||
68 | } | ||
69 | #endif /* defined(SYS_RDOMAIN_XXX) */ | ||
70 | |||
71 | /* | ||
40 | * This is the portable version of the SSH tunnel forwarding, it | 72 | * This is the portable version of the SSH tunnel forwarding, it |
41 | * uses some preprocessor definitions for various platform-specific | 73 | * uses some preprocessor definitions for various platform-specific |
42 | * settings. | 74 | * settings. |