X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/aff4850053a1bbb4cd90201676a01a65082311e1..7766e673215542dadc066193a5a166274d00e9ab:/loadparm.c diff --git a/loadparm.c b/loadparm.c index 10c33455..965b771b 100644 --- a/loadparm.c +++ b/loadparm.c @@ -97,6 +97,7 @@ typedef struct { char *pid_file; char *socket_options; + int listen_backlog; int rsync_port; } global_vars; @@ -139,6 +140,7 @@ typedef struct { int timeout; BOOL fake_super; + BOOL forward_lookup; BOOL ignore_errors; BOOL ignore_nonreadable; BOOL list; @@ -174,6 +176,7 @@ static const all_vars Defaults = { /* pid_file; */ NULL, /* socket_options; */ NULL, + /* listen_backlog; */ 5, /* rsync_port; */ 0, }, @@ -211,6 +214,7 @@ static const all_vars Defaults = { /* timeout; */ 0, /* fake_super; */ False, + /* forward_lookup; */ True, /* ignore_errors; */ False, /* ignore_nonreadable; */ False, /* list; */ True, @@ -309,6 +313,7 @@ static struct enum_list enum_facilities[] = { static struct parm_struct parm_table[] = { {"address", P_STRING, P_GLOBAL,&Vars.g.bind_address, NULL,0}, + {"listen backlog", P_INTEGER,P_GLOBAL,&Vars.g.listen_backlog, NULL,0}, {"motd file", P_STRING, P_GLOBAL,&Vars.g.motd_file, NULL,0}, {"pid file", P_STRING, P_GLOBAL,&Vars.g.pid_file, NULL,0}, {"port", P_INTEGER,P_GLOBAL,&Vars.g.rsync_port, NULL,0}, @@ -322,6 +327,7 @@ static struct parm_struct parm_table[] = {"exclude", P_STRING, P_LOCAL, &Vars.l.exclude, NULL,0}, {"fake super", P_BOOL, P_LOCAL, &Vars.l.fake_super, NULL,0}, {"filter", P_STRING, P_LOCAL, &Vars.l.filter, NULL,0}, + {"forward lookup", P_BOOL, P_LOCAL, &Vars.l.forward_lookup, NULL,0}, {"gid", P_STRING, P_LOCAL, &Vars.l.gid, NULL,0}, {"hosts allow", P_STRING, P_LOCAL, &Vars.l.hosts_allow, NULL,0}, {"hosts deny", P_STRING, P_LOCAL, &Vars.l.hosts_deny, NULL,0}, @@ -442,6 +448,7 @@ FN_GLOBAL_STRING(lp_motd_file, &Vars.g.motd_file) FN_GLOBAL_STRING(lp_pid_file, &Vars.g.pid_file) FN_GLOBAL_STRING(lp_socket_options, &Vars.g.socket_options) +FN_GLOBAL_INTEGER(lp_listen_backlog, &Vars.g.listen_backlog) FN_GLOBAL_INTEGER(lp_rsync_port, &Vars.g.rsync_port) FN_LOCAL_STRING(lp_auth_users, auth_users) @@ -476,6 +483,7 @@ FN_LOCAL_INTEGER(lp_syslog_facility, syslog_facility) FN_LOCAL_INTEGER(lp_timeout, timeout) FN_LOCAL_BOOL(lp_fake_super, fake_super) +FN_LOCAL_BOOL(lp_forward_lookup, forward_lookup) FN_LOCAL_BOOL(lp_ignore_errors, ignore_errors) FN_LOCAL_BOOL(lp_ignore_nonreadable, ignore_nonreadable) FN_LOCAL_BOOL(lp_list, list)