diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-09-17 01:58:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-17 01:58:40 +0200 |
commit | 67e6b629212fa9ffb7420e8a88a41806af637e28 (patch) | |
tree | 64f07616a23b657f3eb06e1daedf2450f6fbfc60 /net/dccp/minisocks.c | |
parent | [DCCP]: More precisely set reset_code when sending RESET packets (diff) | |
download | linux-67e6b629212fa9ffb7420e8a88a41806af637e28.tar.xz linux-67e6b629212fa9ffb7420e8a88a41806af637e28.zip |
[DCCP]: Introduce DCCP_SOCKOPT_SERVICE
As discussed in the dccp@vger mailing list:
Now applications have to use setsockopt(DCCP_SOCKOPT_SERVICE, service[s]),
prior to calling listen() and connect().
An array of unsigned ints can be passed meaning that the listening sock accepts
connection requests for several services.
With this we can ditch struct sockaddr_dccp and use only sockaddr_in (and
sockaddr_in6 in the future).
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/minisocks.c')
-rw-r--r-- | net/dccp/minisocks.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c index 18461bc04cbe..933e10db1789 100644 --- a/net/dccp/minisocks.c +++ b/net/dccp/minisocks.c @@ -93,9 +93,11 @@ struct sock *dccp_create_openreq_child(struct sock *sk, struct inet_connection_sock *newicsk = inet_csk(sk); struct dccp_sock *newdp = dccp_sk(newsk); + newdp->dccps_role = DCCP_ROLE_SERVER; newdp->dccps_hc_rx_ackpkts = NULL; - newdp->dccps_role = DCCP_ROLE_SERVER; - newicsk->icsk_rto = DCCP_TIMEOUT_INIT; + newdp->dccps_service_list = NULL; + newdp->dccps_service = dreq->dreq_service; + newicsk->icsk_rto = DCCP_TIMEOUT_INIT; do_gettimeofday(&newdp->dccps_epoch); if (newdp->dccps_options.dccpo_send_ack_vector) { |