./configure (optional if already run)
make
-based-on: d4fc18f3755987ccea6e7f43609f862aa0254c5a
-diff --git a/loadparm.c b/loadparm.c
---- a/loadparm.c
-+++ b/loadparm.c
-@@ -123,6 +123,7 @@ typedef struct {
- char *auth_users;
- char *charset;
- char *comment;
-+ char *congestion_alg;
- char *dont_compress;
- char *early_exec;
- char *exclude;
-@@ -152,6 +153,7 @@ typedef struct {
- BOOL auth_users_EXP;
- BOOL charset_EXP;
- BOOL comment_EXP;
-+ BOOL congestion_alg_EXP;
- BOOL dont_compress_EXP;
- BOOL early_exec_EXP;
- BOOL exclude_EXP;
-@@ -177,6 +179,7 @@ typedef struct {
- BOOL temp_dir_EXP;
- BOOL uid_EXP;
+based-on: 6c8ca91c731b7bf2b081694bda85b7dadc2b7aff
+diff --git a/daemon-parm.txt b/daemon-parm.txt
+--- a/daemon-parm.txt
++++ b/daemon-parm.txt
+@@ -18,6 +18,7 @@ Locals: =================================================================
+ STRING auth_users NULL
+ STRING charset NULL
+ STRING comment NULL
++STRING congestion_alg NULL
+ STRING dont_compress DEFAULT_DONT_COMPRESS
+ STRING early_exec NULL
+ STRING exclude NULL
+@@ -45,6 +46,7 @@ STRING uid NULL
+ PATH path NULL
+ PATH temp_dir NULL
-+ int diffserv;
- int max_connections;
- int max_verbosity;
- int syslog_facility;
-@@ -241,6 +244,7 @@ static const all_vars Defaults = {
- /* auth_users; */ NULL,
- /* charset; */ NULL,
- /* comment; */ NULL,
-+ /* congestion_alg; */ NULL,
- /* dont_compress; */ DEFAULT_DONT_COMPRESS,
- /* early_exec; */ NULL,
- /* exclude; */ NULL,
-@@ -269,6 +273,7 @@ static const all_vars Defaults = {
- /* auth_users_EXP; */ False,
- /* charset_EXP; */ False,
- /* comment_EXP; */ False,
-+ /* congestion_alg_EXP; */ False,
- /* dont_compress_EXP; */ False,
- /* early_exec_EXP; */ False,
- /* exclude_EXP; */ False,
-@@ -294,6 +299,7 @@ static const all_vars Defaults = {
- /* temp_dir_EXP; */ False,
- /* uid_EXP; */ False,
-
-+ /* diffserv; */ 8,
- /* max_connections; */ 0,
- /* max_verbosity; */ 1,
- /* syslog_facility; */ LOG_DAEMON,
-@@ -412,6 +418,8 @@ static struct parm_struct parm_table[] =
- {"auth users", P_STRING, P_LOCAL, &Vars.l.auth_users, NULL,0},
- {"charset", P_STRING, P_LOCAL, &Vars.l.charset, NULL,0},
- {"comment", P_STRING, P_LOCAL, &Vars.l.comment, NULL,0},
-+ {"congestion alg", P_STRING, P_LOCAL, &Vars.l.congestion_alg, NULL,0},
-+ {"diffserv", P_INTEGER,P_LOCAL, &Vars.l.diffserv, NULL,0},
- {"dont compress", P_STRING, P_LOCAL, &Vars.l.dont_compress, NULL,0},
- {"early exec", P_STRING, P_LOCAL, &Vars.l.early_exec, NULL,0},
- {"exclude from", P_STRING, P_LOCAL, &Vars.l.exclude_from, NULL,0},
-@@ -554,6 +562,7 @@ FN_GLOBAL_BOOL(lp_haproxy_header, haproxy_header)
- FN_LOCAL_STRING(lp_auth_users, auth_users)
- FN_LOCAL_STRING(lp_charset, charset)
- FN_LOCAL_STRING(lp_comment, comment)
-+FN_LOCAL_STRING(lp_congestion_alg, congestion_alg)
- FN_LOCAL_STRING(lp_dont_compress, dont_compress)
- FN_LOCAL_STRING(lp_early_exec, early_exec)
- FN_LOCAL_STRING(lp_exclude, exclude)
-@@ -579,6 +588,7 @@ FN_LOCAL_STRING(lp_syslog_tag, syslog_tag)
- FN_LOCAL_STRING(lp_temp_dir, temp_dir)
- FN_LOCAL_STRING(lp_uid, uid)
-
-+FN_LOCAL_INTEGER(lp_diffserv, diffserv)
- FN_LOCAL_INTEGER(lp_max_connections, max_connections)
- FN_LOCAL_INTEGER(lp_max_verbosity, max_verbosity)
- FN_LOCAL_INTEGER(lp_syslog_facility, syslog_facility)
++INTEGER diffserv 8
+ INTEGER max_connections 0
+ INTEGER max_verbosity 1
+ INTEGER timeout 0
diff --git a/options.c b/options.c
--- a/options.c
+++ b/options.c
-@@ -74,6 +74,8 @@ int delete_during = 0;
+@@ -79,6 +79,8 @@ int delete_during = 0;
int delete_before = 0;
int delete_after = 0;
int delete_excluded = 0;
int remove_source_files = 0;
int one_file_system = 0;
int protocol_version = PROTOCOL_VERSION;
-@@ -970,6 +972,8 @@ static struct poptOption long_options[] = {
+@@ -832,6 +834,8 @@ static struct poptOption long_options[] = {
{"outbuf", 0, POPT_ARG_STRING, &outbuf_mode, 0, 0, 0 },
{"remote-option", 'M', POPT_ARG_STRING, 0, 'M', 0, 0 },
{"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 },
diff --git a/rsync.1.md b/rsync.1.md
--- a/rsync.1.md
+++ b/rsync.1.md
-@@ -438,6 +438,8 @@ detailed description below for a complete description.
+@@ -531,6 +531,8 @@ has its own detailed description later in this manpage.
--address=ADDRESS bind address for outgoing socket to daemon
--port=PORT specify double-colon alternate port number
--sockopts=OPTIONS specify custom TCP options
diff --git a/socket.c b/socket.c
--- a/socket.c
+++ b/socket.c
-@@ -39,6 +39,8 @@ extern char *sockopts;
+@@ -40,6 +40,8 @@ extern char *sockopts;
extern int default_af_hint;
extern int connect_timeout;
extern int pid_file_fd;
/* Open a socket to a tcp remote host with the specified port.
*
* Based on code from Warren. Proxy support by Stephen Rothwell.
-@@ -275,6 +308,7 @@ int open_socket_out(char *host, int port, const char *bind_addr,
+@@ -272,6 +305,7 @@ int open_socket_out(char *host, int port, const char *bind_addr, int af_hint)
alarm(connect_timeout);
}
set_socket_options(s, sockopts);
while (connect(s, res->ai_addr, res->ai_addrlen) < 0) {
if (connect_timeout < 0)
-@@ -449,6 +483,7 @@ static int *open_socket_in(int type, int port, const char *bind_addr,
+@@ -440,6 +474,7 @@ static int *open_socket_in(int type, int port, const char *bind_addr,
continue;
}