diff options
author | Damien Miller <djm@mindrot.org> | 2017-10-25 13:47:59 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-10-25 13:47:59 +1100 |
commit | ce1cca39d7935dd394080ce2df62f5ce5b51f485 (patch) | |
tree | d65924d9c163b317d725950bd054edd4bd085ca8 /openbsd-compat/port-net.h | |
parent | 6eee79f9b8d4a3b113b698383948a119acb82415 (diff) |
implement get/set_rdomain() for Linux
Not enabled, pending implementation of valid_rdomain() and autoconf glue
Diffstat (limited to 'openbsd-compat/port-net.h')
-rw-r--r-- | openbsd-compat/port-net.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbsd-compat/port-net.h b/openbsd-compat/port-net.h index 715e9fb34..8aa4085f4 100644 --- a/openbsd-compat/port-net.h +++ b/openbsd-compat/port-net.h | |||
@@ -31,14 +31,17 @@ int sys_tun_infilter(struct ssh *, struct Channel *, char *, int); | |||
31 | u_char *sys_tun_outfilter(struct ssh *, struct Channel *, u_char **, size_t *); | 31 | u_char *sys_tun_outfilter(struct ssh *, struct Channel *, u_char **, size_t *); |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #if defined(SYS_RDOMAIN_XXX) | 34 | #if defined(SYS_RDOMAIN_LINUX) |
35 | # define HAVE_SYS_GET_RDOMAIN | 35 | # define HAVE_SYS_GET_RDOMAIN |
36 | # define HAVE_SYS_SET_RDOMAIN | 36 | # define HAVE_SYS_SET_RDOMAIN |
37 | # define HAVE_SYS_SET_PROCESS_RDOMAIN | ||
38 | # define HAVE_SYS_VALID_RDOMAIN | 37 | # define HAVE_SYS_VALID_RDOMAIN |
39 | char *sys_get_rdomain(int fd); | 38 | char *sys_get_rdomain(int fd); |
40 | int sys_set_rdomain(int fd, const char *name); | 39 | int sys_set_rdomain(int fd, const char *name); |
41 | int valid_rdomain(const char *name); | 40 | int valid_rdomain(const char *name); |
41 | #endif | ||
42 | |||
43 | #if defined(SYS_RDOMAIN_XXX) | ||
44 | # define HAVE_SYS_SET_PROCESS_RDOMAIN | ||
42 | void sys_set_process_rdomain(const char *name); | 45 | void sys_set_process_rdomain(const char *name); |
43 | #endif | 46 | #endif |
44 | 47 | ||