MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_is_addr_in_ep

Function sctp_is_addr_in_ep

freebsd/netinet/sctp_output.c:2429–2447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2427}
2428
2429int
2430sctp_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
2449static struct sctp_ifa *
2450sctp_choose_boundspecific_inp(struct sctp_inpcb *inp,

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected