45 #include <linux/types.h>
46 #include <linux/slab.h>
78 error = sctp_copy_one_addr(net, dest, &addr->
a, scope,
90 error = sctp_copy_one_addr(net, dest, &addr->
a,
100 sctp_bind_addr_clean(dest);
147 list_del_rcu(&addr->
list);
157 sctp_bind_addr_clean(bp);
176 memcpy(&addr->
a,
new,
sizeof(*
new));
181 if (!addr->
a.
v4.sin_port)
184 addr->
state = addr_state;
187 INIT_LIST_HEAD(&addr->
list);
214 list_del_rcu(&addr->
list);
271 memcpy(addrparms.
v, &rawaddr, len);
273 addrparms_len += len;
277 *addrs_len = addrparms_len;
303 sctp_bind_addr_clean(bp);
311 sctp_bind_addr_clean(bp);
317 raw_addr_list += len;
339 if (opt->
pf->cmp_addr(&laddr->
a, addr, opt)) {
377 conflict = sp->
pf->cmp_addr(&laddr->
a, addr, sp);
403 state = laddr->
state;
432 for (i = 0; i < addrcnt; i++) {
438 if (opt->
pf->cmp_addr(&laddr->
a, addr, opt))
480 unsigned short fam = 0;
485 fam = addr->
sa.sa_family;
515 switch (net->sctp.scope_policy) {
519 if (addr_scope <= scope)
542 bp = &sctp_sk(sk)->ep->base.bind_addr;