| 213 | } |
| 214 | |
| 215 | struct sctp_vrf * |
| 216 | sctp_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 | |
| 230 | void |
| 231 | sctp_free_vrf(struct sctp_vrf *vrf) |
no outgoing calls
no test coverage detected