Lines Matching defs:ifn
101 * to a VRF we lookup the ifn/ifn_index, if the ifn does
107 * vrf-> ifn-> ifn -> ifn
121 * that any locking on system level ifn/ifa is done at the
190 sctp_find_ifn(void *ifn, uint32_t ifn_index)
196 KASSERT(ifn != NULL, ("sctp_find_ifn(NULL, %u) called", ifn_index));
200 sctp_ifnp->ifn_p == ifn) {
279 * Add an ifa to an ifn.
315 * Remove an ifa from its ifn.
316 * If no more addresses exist, remove the ifn too. Otherwise, re-register
343 /* remove the ifn, possibly freeing it */
354 /* free the ifn refcount */
362 sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index,
396 sctp_ifnp = sctp_find_ifn(ifn, ifn_index);
420 sctp_ifnp->ifn_p = ifn;
425 sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index);
442 sctp_ifap->ifn_p->ifn_p == ifn) {
444 "Using existing ifn %s (0x%x) for ifa %p\n",
470 /* remove the address from the old ifn */
472 /* move the address over to the new ifn */
479 "Repairing ifn %p for ifa %p\n",
581 sctp_del_addr_from_vrf(vrf_id, addr, ifn, ifn_index);
606 void *ifn, uint32_t ifn_index)
628 ifn != sctp_ifap->ifn_p->ifn_p) {
629 SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d (%p) ifname:%s - ignoring delete\n",
653 SCTPDBG(SCTP_DEBUG_PCB4, "Del Addr-ifn:%d Could not find address:",
5711 struct sctp_ifn *ifn, *nifn;
5775 * free the vrf/ifn/ifa lists and hashes (be sure address monitor is
5781 LIST_FOREACH_SAFE(ifn, &vrf->ifnlist, next_ifn, nifn) {
5782 LIST_FOREACH_SAFE(ifa, &ifn->ifalist, next_ifa, nifa) {
5788 /* free the ifn */
5789 LIST_REMOVE(ifn, next_bucket);
5790 LIST_REMOVE(ifn, next_ifn);
5791 SCTP_FREE(ifn, SCTP_M_IFN);