mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
Phonet: fix flawed "SYN/ACK" logic
* 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>
This commit is contained in:
parent
0165d69bcb
commit
8f44fcc72a
2 changed files with 47 additions and 77 deletions
|
@ -154,6 +154,7 @@ enum {
|
|||
PN_LEGACY_FLOW_CONTROL,
|
||||
PN_ONE_CREDIT_FLOW_CONTROL,
|
||||
PN_MULTI_CREDIT_FLOW_CONTROL,
|
||||
PN_MAX_FLOW_CONTROL,
|
||||
};
|
||||
|
||||
#define pn_flow_safe(fc) ((fc) >> 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue