sctp: try harder to figure out address family when checking wildcards
authorVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 18 Aug 2008 14:34:34 +0000 (10:34 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 1 Oct 2008 15:33:06 +0000 (11:33 -0400)
commit52cae8f06babf9eed327479c1aa024ce3732f912
tree2ef0dc1e4daf53735681ba7223d40058f1175092
parentc226ef9b83694311327f3ab0036c6de9c22e9daf
sctp: try harder to figure out address family when checking wildcards

sctp_is_any() function that is used to check for wildcard addresses
only looks at the address itself to determine the address family.
This function is used in the API to check the address passed in from
the user.  If the user simply zerroes out the sockaddr_storage and
pass that in, we'll end up failing.  So, let's try harder to determine
the address family by also checking the socket if it's possible.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
include/net/sctp/structs.h
net/sctp/bind_addr.c
net/sctp/ipv6.c
net/sctp/socket.c