]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sctp: do not enable peer features if we can't do them.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 18 Sep 2008 23:27:38 +0000 (16:27 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 02:44:44 +0000 (19:44 -0700)
commitb18dfc326dd814b63abd0a484e3e300300065edc
treed4b23895310bf1c876c8be9cba8005a52766d5e5
parent8d9f9fdc074522b022abfa500a25a072d5e13113
sctp: do not enable peer features if we can't do them.

[ Upstream commit 0ef46e285c062cbe35d60c0adbff96f530d31c86 ]

Do not enable peer features like addip and auth, if they
are administratively disabled localy.  If the peer resports
that he supports something that we don't, neither end can
use it so enabling it is pointless.  This solves a problem
when talking to a peer that has auth and addip enabled while
we do not.  Found by Andrei Pelinescu-Onciul <andrei@iptel.org>.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/sm_make_chunk.c