diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2006-09-22 09:33:58 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-09-24 17:49:26 -0300 |
commit | 00e4d116a7ef94eb910be037912b0b2fc09f608b (patch) | |
tree | 81e8a52c7529691b3c07605613da65cae80f41c9 /net/dccp/ipv4.c | |
parent | 1ab9dd0902df4f4ff56fbf672220549090ab28ba (diff) | |
download | talos-op-linux-00e4d116a7ef94eb910be037912b0b2fc09f608b.tar.gz talos-op-linux-00e4d116a7ef94eb910be037912b0b2fc09f608b.zip |
[DCCP]: Allow default/fallback service code.
This has been discussed on dccp@vger and removes the necessity for applications
to supply service codes in each and every case.
If an application does not want to provide a service code, that's fine, it will
be given 0. Otherwise, service codes can be set via socket options as before.
This patch has been tested using various client/server configurations
(including listening on multiple service codes).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/ipv4.c')
-rw-r--r-- | net/dccp/ipv4.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/dccp/ipv4.c b/net/dccp/ipv4.c index 9a1a76a7dc41..66be29b6f508 100644 --- a/net/dccp/ipv4.c +++ b/net/dccp/ipv4.c @@ -56,9 +56,6 @@ int dccp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) dp->dccps_role = DCCP_ROLE_CLIENT; - if (dccp_service_not_initialized(sk)) - return -EPROTO; - if (addr_len < sizeof(struct sockaddr_in)) return -EINVAL; |