summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/port-net.c32
-rw-r--r--openbsd-compat/port-net.h11
2 files changed, 43 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 */
46char *
47sys_get_rdomain(int fd)
48{
49 return NULL;
50}
51
52int
53sys_set_rdomain(int fd, const char *name)
54{
55 return -1;
56}
57
58int
59valid_rdomain(const char *name)
60{
61 return 0;
62}
63
64void
65sys_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.
diff --git a/openbsd-compat/port-net.h b/openbsd-compat/port-net.h
index 926bc93e1..715e9fb34 100644
--- a/openbsd-compat/port-net.h
+++ b/openbsd-compat/port-net.h
@@ -31,4 +31,15 @@ int sys_tun_infilter(struct ssh *, struct Channel *, char *, int);
31u_char *sys_tun_outfilter(struct ssh *, struct Channel *, u_char **, size_t *); 31u_char *sys_tun_outfilter(struct ssh *, struct Channel *, u_char **, size_t *);
32#endif 32#endif
33 33
34#if defined(SYS_RDOMAIN_XXX)
35# define HAVE_SYS_GET_RDOMAIN
36# define HAVE_SYS_SET_RDOMAIN
37# define HAVE_SYS_SET_PROCESS_RDOMAIN
38# define HAVE_SYS_VALID_RDOMAIN
39char *sys_get_rdomain(int fd);
40int sys_set_rdomain(int fd, const char *name);
41int valid_rdomain(const char *name);
42void sys_set_process_rdomain(const char *name);
43#endif
44
34#endif 45#endif