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

Function sctp_find_vrf

freebsd/netinet/sctp_pcb.c:215–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215struct sctp_vrf *
216sctp_find_vrf(uint32_t vrf_id)
217{
218 struct sctp_vrflist *bucket;
219 struct sctp_vrf *liste;
220
221 bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(vrf_id & SCTP_BASE_INFO(hashvrfmark))];
222 LIST_FOREACH(liste, bucket, next_vrf) {
223 if (vrf_id == liste->vrf_id) {
224 return (liste);
225 }
226 }
227 return (NULL);
228}
229
230void
231sctp_free_vrf(struct sctp_vrf *vrf)

Callers 15

sctp_choose_boundallFunction · 0.85
sctp_find_ifa_by_addrFunction · 0.85
sctp_local_addr_countFunction · 0.85
sctp_allocate_vrfFunction · 0.85
sctp_mark_ifa_addr_downFunction · 0.85
sctp_mark_ifa_addr_upFunction · 0.85
sctp_add_addr_to_vrfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected