[SCTP]: Fix the bind_addr info during migration.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 7 Dec 2007 06:50:54 +0000 (22:50 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 7 Dec 2007 09:07:49 +0000 (01:07 -0800)
commit8e71a11c9f3c09a01fcb445772ffd61b140f2479
treea0fb2c002d472252ea060c88f8dfda6ddb23b3fc
parentf26f7c480555812ca7c4037e0a50fa54afe2cb4a
[SCTP]: Fix the bind_addr info during migration.

During accept/migrate the code attempts to copy the addresses from
the parent endpoint to the new endpoint.   However, if the parent
was bound to a wildcard address, then we end up pointlessly copying
all of the current addresses on the system.

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