aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2007-12-07 01:50:54 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-12-07 04:07:49 -0500
commit8e71a11c9f3c09a01fcb445772ffd61b140f2479 (patch)
treea0fb2c002d472252ea060c88f8dfda6ddb23b3fc /include/net/sctp
parentf26f7c480555812ca7c4037e0a50fa54afe2cb4a (diff)
[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>
Diffstat (limited to 'include/net/sctp')
-rw-r--r--include/net/sctp/structs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index eb3113c38a94..002a00a4e6be 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -1184,6 +1184,9 @@ int sctp_bind_addr_copy(struct sctp_bind_addr *dest,
1184 const struct sctp_bind_addr *src, 1184 const struct sctp_bind_addr *src,
1185 sctp_scope_t scope, gfp_t gfp, 1185 sctp_scope_t scope, gfp_t gfp,
1186 int flags); 1186 int flags);
1187int sctp_bind_addr_dup(struct sctp_bind_addr *dest,
1188 const struct sctp_bind_addr *src,
1189 gfp_t gfp);
1187int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *, 1190int sctp_add_bind_addr(struct sctp_bind_addr *, union sctp_addr *,
1188 __u8 use_as_src, gfp_t gfp); 1191 __u8 use_as_src, gfp_t gfp);
1189int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *); 1192int sctp_del_bind_addr(struct sctp_bind_addr *, union sctp_addr *);