X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=dccp_send.c;h=5806bce3516c25ff600f31b073ba0760b40d4897;hb=181beb316afad036ac01a778544c5dec0a8d51c7;hp=55f189ad4eb01632dbcd653e104ef7f0cfe54ff8;hpb=b3c68fd8519a426d6b6285dcb5a865670285e99a;p=paraslash.git diff --git a/dccp_send.c b/dccp_send.c index 55f189ad..5806bce3 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -119,14 +119,14 @@ static void dccp_send_fec(struct sender_client *sc, char *buf, size_t len) dccp_shutdown_client(sc); } -static void dccp_post_select(fd_set *rfds, __a_unused fd_set *wfds) +static void dccp_post_select(__a_unused fd_set *rfds, __a_unused fd_set *wfds) { struct sender_client *sc; struct dccp_fec_client *dfc; int tx_ccid; uint32_t k, n; - sc = accept_sender_client(dss, rfds); + sc = accept_sender_client(dss); if (!sc) return; @@ -232,6 +232,8 @@ static void dccp_send_init(void) OPT_RESULT(DCCP_LISTEN_ADDRESS), OPT_UINT32_VAL(DCCP_PORT), OPT_UINT32_VAL(DCCP_MAX_CLIENTS), OPT_GIVEN(DCCP_DEFAULT_DENY)); + if (OPT_GIVEN(DCCP_NO_AUTOSTART)) + return; generic_com_on(dss, IPPROTO_DCCP); }