Files
ack-tegra/Documentation
Gerrit Renker 69a6a0b38a dccp: allow probing of CCID-array length
This fixes a problem in the DCCP getsockopt() API: currently there is no way
for a user to a priori know the number of built-in CCIDs, other than trying
DCCP_SOCKOPT_AVAILABLE_CCIDS in a loop, incrementing the option length until
EINVAL is no longer returned.

This patch truncates the array to the user-provided length. No copy is made
when the length is <= 0.

Due to the length restriction in do_dccp_getsockopt() to sizeof(int), the
minimum array length remains 4, which is a reasonable default (only 3
CCIDs, CCID-2..4, are currently defined).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-12 11:47:00 -08:00
..
2009-12-09 12:04:34 +02:00
2009-10-01 21:17:49 +02:00
2009-12-03 19:28:53 +01:00
2009-12-16 07:20:05 -08:00
2009-12-09 14:21:36 -08:00
2009-12-12 13:08:16 +01:00
2009-12-22 20:43:40 +01:00
2009-06-18 13:04:04 -07:00
2009-12-26 18:37:44 +01:00
2009-11-09 09:40:54 +01:00
2009-10-04 22:53:41 +02:00
2009-12-12 13:08:13 +01:00
2009-10-15 07:25:20 -06:00
2009-07-01 22:36:22 +02:00
2009-08-28 15:21:12 -04:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00