summaryrefslogtreecommitdiff
path: root/servconf.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-10-25 00:15:35 +0000
committerDamien Miller <djm@mindrot.org>2017-10-25 12:26:06 +1100
commitacf559e1cffbd1d6167cc1742729fc381069f06b (patch)
treefc127e0bce21056c96dec59ebdc9e2ff9f5b1e4a /servconf.h
parentb9903ee8ee8671b447fc260c2bee3761e26c7227 (diff)
upstream commit
Add optional rdomain qualifier to sshd_config's ListenAddress option to allow listening on a different rdomain(4), e.g. ListenAddress 0.0.0.0 rdomain 4 Upstream-ID: 24b6622c376feeed9e9be8b9605e593695ac9091
Diffstat (limited to 'servconf.h')
-rw-r--r--servconf.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/servconf.h b/servconf.h
index 1ff3bc5a1..3d0a0653f 100644
--- a/servconf.h
+++ b/servconf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.h,v 1.127 2017/10/05 15:52:03 djm Exp $ */ 1/* $OpenBSD: servconf.h,v 1.128 2017/10/25 00:15:35 djm Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -51,14 +51,31 @@
51struct ssh; 51struct ssh;
52struct fwd_perm_list; 52struct fwd_perm_list;
53 53
54/*
55 * Used to store addresses from ListenAddr directives. These may be
56 * incomplete, as they may specify addresses that need to be merged
57 * with any ports requested by ListenPort.
58 */
59struct queued_listenaddr {
60 char *addr;
61 int port; /* <=0 if unspecified */
62 char *rdomain;
63};
64
65/* Resolved listen addresses, grouped by optional routing domain */
66struct listenaddr {
67 char *rdomain;
68 struct addrinfo *addrs;
69};
70
54typedef struct { 71typedef struct {
55 u_int num_ports; 72 u_int num_ports;
56 u_int ports_from_cmdline; 73 u_int ports_from_cmdline;
57 int ports[MAX_PORTS]; /* Port number to listen on. */ 74 int ports[MAX_PORTS]; /* Port number to listen on. */
75 struct queued_listenaddr *queued_listen_addrs;
58 u_int num_queued_listens; 76 u_int num_queued_listens;
59 char **queued_listen_addrs; 77 struct listenaddr *listen_addrs;
60 int *queued_listen_ports; 78 u_int num_listen_addrs;
61 struct addrinfo *listen_addrs; /* Addresses for server to listen. */
62 int address_family; /* Address family used by the server. */ 79 int address_family; /* Address family used by the server. */
63 80
64 char **host_key_files; /* Files containing host keys. */ 81 char **host_key_files; /* Files containing host keys. */