| 2427 | } |
| 2428 | |
| 2429 | int |
| 2430 | sctp_is_addr_in_ep(struct sctp_inpcb *inp, struct sctp_ifa *ifa) |
| 2431 | { |
| 2432 | struct sctp_laddr *laddr; |
| 2433 | |
| 2434 | if (ifa == NULL) |
| 2435 | return (0); |
| 2436 | LIST_FOREACH(laddr, &inp->sctp_addr_list, sctp_nxt_addr) { |
| 2437 | if (laddr->ifa == NULL) { |
| 2438 | SCTPDBG(SCTP_DEBUG_OUTPUT1, "%s: NULL ifa\n", |
| 2439 | __func__); |
| 2440 | continue; |
| 2441 | } |
| 2442 | if ((laddr->ifa == ifa) && laddr->action == 0) |
| 2443 | /* same pointer */ |
| 2444 | return (1); |
| 2445 | } |
| 2446 | return (0); |
| 2447 | } |
| 2448 | |
| 2449 | static struct sctp_ifa * |
| 2450 | sctp_choose_boundspecific_inp(struct sctp_inpcb *inp, |
no outgoing calls
no test coverage detected