summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-net.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2017-10-25 13:22:29 +1100
committerDamien Miller <djm@mindrot.org>2017-10-25 13:22:50 +1100
commit6eee79f9b8d4a3b113b698383948a119acb82415 (patch)
treecabf4928da581a974940532ff30be734d682d2bc /openbsd-compat/port-net.c
parentf5594f939f844bbb688313697d6676238da355b3 (diff)
stubs for rdomain replacement functions
Diffstat (limited to 'openbsd-compat/port-net.c')
-rw-r--r--openbsd-compat/port-net.c32
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 */
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.