lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 14 May 2008 15:45:18 +0100
From:	Gerrit Renker <gerrit@....abdn.ac.uk>
To:	Ulrich Drepper <drepper@...hat.com>
Cc:	R?mi Denis-Courmont <rdenis@...phalempin.com>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	David Stevens <dlstevens@...ibm.com>,
	David Miller <davem@...emloft.net>, dccp@...r.kernel.org,
	netdev@...r.kernel.org
Subject: Re: [RFC] [DCCP]: Deprecate SOCK_DCCP in favour of SOCK_DGRAM

Quoting Ulrich Drepper:
| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA1
| 
| Gerrit Renker wrote:
| > RFC 3493 says that 0 for socktype/protocol means that caller will accept
| > any socket type / protocol, so presumably this does include DCCP and UDP-Lite.
| 
| I know what the RFC says.  But there are a gazillion of protocols out
| there and I won't create a record for all of them in case socktype and
| protocol are zero.  That's just overkill in 99.9% of all cases.
| 
| I assumption is that UDPlite is just too specialized to be useful to a
| wide array of people.  Yes, it case be supported if explicitly requested
| but should be returned if 0/0 is passed in.
| 
Sorry I misunderstood your email. Yes the above case is clear: if
someone supplies 0/0, s/he will probably not want any specialised
protocols in the return list.

This didn't appear in Remi's list. I have completed the list and put the
cases in the table below; `defaults' is interpreted in the way above.

 +--------------+---------------+---------------+---------------+
 | ai_socktype	| ai_protocol	| Return type	| Return Proto  |
 +--------------+---------------+---------------+---------------+
 | SOCK_DCCP	| IPPROTO_DCCP	| SOCK_DCCP	| IPPROTO_DCCP 	|
 | SOCK_DCCP	| 0		| SOCK_DCCP	| IPPROTO_DCCP 	|
 | 0		| IPPROTO_DCCP	| SOCK_DCCP	| IPPROTO_DCCP	|
 | 0		| 0		| (defaults)	| (defaults)	|
 +--------------+---------------+---------------+---------------+


If at all possible, for UDP-Lite it is similar. Since UDP-Lite is
actually just a form of UDP, this seems much less urgent than DCCP -
one might argue that UDP-Lite falls under SOCK_DGRAM/UDP.

 +-------------+-----------------+-------------+-----------------+
 | ai_socktype | ai_protocol	 | Return type |  Return Proto   |
 +-------------+-----------------+-------------+-----------------+
 | SOCK_DGRAM  | IPPROTO_UDPLITE | SOCK_DGRAM  | IPPROTO_UDPLITE |
 | SOCK_DGRAM  | 0		 | SOCK_DGRAM  | IPPROTO_UDP	 |
 | 0	       | IPPROTO_UDPLITE | SOCK_DGRAM  | IPPROTO_UDPLITE |   
 | 0	       | 0		 | (defaults)  | (defaults)      |
 +-------------+-----------------+-------------+-----------------+

... but it would still be good to have. 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ