SCTP: Add scope_id validation for link-local binds
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 3 Jul 2007 18:29:23 +0000 (14:29 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 6 Jul 2007 00:40:15 +0000 (17:40 -0700)
commit1669d857a25d62c6d0a6d9216e01c21287a7c844
treedfe9ae301c96947e7bde1c9a69b5d0b376901ebb
parentf50f95cab735ebe2993e8d1549f0615bad05f3f2
SCTP: Add scope_id validation for link-local binds

SCTP currently permits users to bind to link-local addresses,
but doesn't verify that the scope id specified at bind matches
the interface that the address is configured on.  It was report
that this can hang a system.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ipv6.c