]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit276287cba20bbfea3be68ef416143b6536b64032
tree2ef0dc1e4daf53735681ba7223d40058f1175092
parentf691fb95a79b4293dc1a32f910cee48c2f8a2f53
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