Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <netdev@...>, <dccp@...>, <acme@...>
Date: Tuesday, May 13, 2008 - 5:37 am

| 
| > Is there support for this change or are there reasons to keep SOCK_DCCP?
| 
| You'll have to accept it forever since there have been several
| kernel releases already with DCCP support added and there are
| applications out there.
| 
And maybe it is not necessary or worth to change it. 

But there is a problem, the cause is not necessarily the above:

 * using an ai_socktype=0 used to work for DCCP; on dual-stack hosts,
   IPv6 addresses were returned first, so that both IPv6 and IPv4
   clients (v6-mapped-v4) could connect to the server,

 * within the last three months there was a change in the lookup
   behaviour so that now IPv4 addresses are returned first on dual
   stack hosts when AF_UNSPEC is specified with ai_socktype=0,

 * changing preference values in /etc/gai.conf did not help,

 * the only fix was the following (pretend to be UDP):

	if (inSettings->mProtocol == IPPROTO_DCCP)
		hints.ai_socktype = SOCK_DGRAM;

Maybe there is a better fix for this.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Gerrit Renker, (Tue May 13, 3:28 am)
Re: [RFC] [DCCP]: Deprecate , Remi Denis-Courmont, (Tue May 13, 8:53 am)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Gerrit Renker, (Tue May 13, 5:37 am)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Arnaldo Carvalho de Melo, (Tue May 13, 12:23 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Rémi Denis-Courmont, (Tue May 13, 1:37 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Rémi Denis-Courmont, (Wed May 14, 1:47 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Sridhar Samudrala, (Wed May 14, 1:39 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Rémi Denis-Courmont, (Wed May 14, 1:49 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Arnaldo Carvalho de Melo, (Tue May 13, 1:50 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Arnaldo Carvalho de Melo, (Tue May 13, 1:33 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Rémi Denis-Courmont, (Tue May 13, 1:06 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Arnaldo Carvalho de Melo, (Tue May 13, 1:34 pm)
Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM, Arnaldo Carvalho de Melo, (Tue May 13, 1:53 pm)