SCTP: Add scope_id validation for link-local binds
commitc88fee3c266ce5147abf2f4efd9bed4249e122d4
authorVlad Yasevich <vladislav.yasevich@hp.com>
Sun, 22 Jul 2007 16:24:56 +0000 (22 18:24 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sun, 22 Jul 2007 16:24:56 +0000 (22 18:24 +0200)
tree29a237185148eb45915c6034d25f844f9ae6e012
parentc08c47f63dfeaebb96096f9c1c1b23e4aabc5eed
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: Adrian Bunk <bunk@stusta.de>
net/sctp/ipv6.c