Lines Matching refs:bp
126 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument
128 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
129 bp->port = port; in sctp_bind_addr_init()
133 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
138 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean()
146 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
149 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
153 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
169 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
179 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr()
188 int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) in sctp_del_bind_addr() argument
196 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_del_bind_addr()
220 union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, in sctp_bind_addrs_to_raw() argument
237 list_for_each(pos, &bp->address_list) { in sctp_bind_addrs_to_raw()
255 list_for_each_entry(addr, &bp->address_list, list) { in sctp_bind_addrs_to_raw()
272 int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, in sctp_raw_to_bind_addrs() argument
290 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
295 retval = sctp_add_bind_addr(bp, &addr, sizeof(addr), in sctp_raw_to_bind_addrs()
299 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
316 int sctp_bind_addr_match(struct sctp_bind_addr *bp, in sctp_bind_addr_match() argument
324 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_match()
340 int sctp_bind_addr_conflict(struct sctp_bind_addr *bp, in sctp_bind_addr_conflict() argument
361 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_conflict()
375 int sctp_bind_addr_state(const struct sctp_bind_addr *bp, in sctp_bind_addr_state() argument
387 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_state()
403 union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, in sctp_find_unmatch_addr() argument
418 list_for_each_entry(laddr, &bp->address_list, list) { in sctp_find_unmatch_addr()
527 struct sctp_bind_addr *bp; in sctp_is_ep_boundall() local
530 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_is_ep_boundall()
531 if (sctp_list_single_entry(&bp->address_list)) { in sctp_is_ep_boundall()
532 addr = list_entry(bp->address_list.next, in sctp_is_ep_boundall()