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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Sep 2008 23:27:38 +0000 (16:27 -0700)
commitf8a7e9151fa6db5462c904b88161617f1861429e
treec2fc631d5760f097bab6b5173166c872639580ff
parentc39b970ee0e8cc1e2d2dbf2a8e031148fdc553b8
sctp: do not enable peer features if we can't do them.

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>
net/sctp/sm_make_chunk.c