X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=dccp_send.c;h=52ec6b73d2328732290c274c89df0091ddb0b7aa;hb=4fbe16430b47;hp=69ba65f5ef864396e81a722d8e69817a0040166f;hpb=631fb4db2cea7bc44e91631957db8cd852fe75ee;p=paraslash.git diff --git a/dccp_send.c b/dccp_send.c index 69ba65f5..52ec6b73 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -42,8 +42,11 @@ struct dccp_fec_client { static void dccp_pre_select(int *max_fileno, fd_set *rfds, __a_unused fd_set *wfds) { - if (dss->listen_fd >= 0) - para_fd_set(dss->listen_fd, rfds, max_fileno); + unsigned n; + + FOR_EACH_LISTEN_FD(n, dss) + if (dss->listen_fds[n] >= 0) + para_fd_set(dss->listen_fds[n], rfds, max_fileno); } /** @@ -240,6 +243,7 @@ void dccp_send_init(struct sender *s) s->client_cmds[SENDER_delete] = NULL; init_sender_status(dss, OPT_RESULT(DCCP_ACCESS), + OPT_RESULT(DCCP_LISTEN_ADDRESS), OPT_UINT32_VAL(DCCP_PORT), OPT_UINT32_VAL(DCCP_MAX_CLIENTS), OPT_GIVEN(DCCP_DEFAULT_DENY)); generic_com_on(dss, IPPROTO_DCCP);