Phonet: fix flawed "SYN/ACK" logic
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Thu, 24 Feb 2011 23:15:01 +0000 (23:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Feb 2011 19:19:37 +0000 (11:19 -0800)
* Do not fail if the peer supports more or less than 3 algorithms.
 * Ignore unknown congestion control algorithms instead of failing.
 * Simplify congestion algorithm negotiation (largest is best).
 * Do not use a static buffer.
 * Fix off-by-two read overflow.
 * Avoid extra memory copy (in addition to skb_copy_bits()).

The previous code really made no sense.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found