Lines Matching refs:ifn
107 * to a VRF we lookup the ifn/ifn_index, if the ifn does
113 * vrf-> ifn-> ifn -> ifn
127 * that any locking on system level ifn/ifa is done at the
196 sctp_find_ifn(void *ifn, uint32_t ifn_index)
210 if (sctp_ifnp->ifn_p && ifn && (sctp_ifnp->ifn_p == ifn)) {
402 * Add an ifa to an ifn.
440 * Remove an ifa from its ifn.
441 * If no more addresses exist, remove the ifn too. Otherwise, re-register
468 /* remove the ifn, possibly freeing it */
483 /* free the ifn refcount */
492 sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index,
510 sctp_ifnp = sctp_find_ifn(ifn, ifn_index);
539 sctp_ifnp->ifn_p = ifn;
544 sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, addr->sa_family);
563 SCTPDBG(SCTP_DEBUG_PCB4, "Using existing ifn %s (0x%x) for ifa %p\n",
590 /* remove the address from the old ifn */
592 /* move the address over to the new ifn */
598 SCTPDBG(SCTP_DEBUG_PCB4, "Repairing ifn %p for ifa %p\n",
767 SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s does not match addresses\n",
769 SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n",
791 SCTPDBG(SCTP_DEBUG_PCB4, "Del Addr-ifn:%d Could not find address:",
5915 struct sctp_ifn *ifn, *nifn;
5979 * free the vrf/ifn/ifa lists and hashes (be sure address monitor is
5984 LIST_FOREACH_SAFE(ifn, &vrf->ifnlist, next_ifn, nifn) {
5985 LIST_FOREACH_SAFE(ifa, &ifn->ifalist, next_ifa, nifa) {
5991 /* free the ifn */
5992 LIST_REMOVE(ifn, next_bucket);
5993 LIST_REMOVE(ifn, next_ifn);
5994 SCTP_FREE(ifn, SCTP_M_IFN);