summaryrefslogtreecommitdiff
path: root/include/net/phonet/pep.h
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2011-02-25 02:15:01 +0300
committerDavid S. Miller <davem@davemloft.net>2011-02-25 22:19:37 +0300
commit8f44fcc72a454c5eb7cbc138bd53f0963f23e87f (patch)
tree41b21091270d76526b13782fb0e134b79f15e409 /include/net/phonet/pep.h
parent0165d69bcb18c5aa220538389c872852243f9725 (diff)
downloadlinux-8f44fcc72a454c5eb7cbc138bd53f0963f23e87f.tar.xz
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>
Diffstat (limited to 'include/net/phonet/pep.h')
-rw-r--r--include/net/phonet/pep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/phonet/pep.h b/include/net/phonet/pep.h
index 37f23dc05de8..38eed1be6ffd 100644
--- a/include/net/phonet/pep.h
+++ b/include/net/phonet/pep.h
@@ -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)