Lines Matching refs:ifn
173 * to a VRF we lookup the ifn/ifn_index, if the ifn does
179 * vrf-> ifn-> ifn -> ifn
193 * that any locking on system level ifn/ifa is done at the
263 sctp_find_ifn(void *ifn, uint32_t ifn_index)
276 if (sctp_ifnp->ifn_p && ifn && (sctp_ifnp->ifn_p == ifn)) {
468 * Add an ifa to an ifn.
506 * Remove an ifa from its ifn.
507 * If no more addresses exist, remove the ifn too. Otherwise, re-register
534 /* remove the ifn, possibly freeing it */
549 /* free the ifn refcount */
558 sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index,
576 sctp_ifnp = sctp_find_ifn(ifn, ifn_index);
604 sctp_ifnp->ifn_p = ifn;
609 sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, addr->sa_family);
628 SCTPDBG(SCTP_DEBUG_PCB4, "Using existing ifn %s (0x%x) for ifa %p\n",
655 /* remove the address from the old ifn */
657 /* move the address over to the new ifn */
663 SCTPDBG(SCTP_DEBUG_PCB4, "Repairing ifn %p for ifa %p\n",
860 SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s does not match addresses\n",
862 SCTPDBG(SCTP_DEBUG_PCB4, "ifn:%d ifname:%s - ignoring delete\n",
883 SCTPDBG(SCTP_DEBUG_PCB4, "Del Addr-ifn:%d Could not find address:",
6863 struct sctp_ifn *ifn, *nifn;
6967 * free the vrf/ifn/ifa lists and hashes (be sure address monitor
6972 LIST_FOREACH_SAFE(ifn, &vrf->ifnlist, next_ifn, nifn) {
6973 LIST_FOREACH_SAFE(ifa, &ifn->ifalist, next_ifa, nifa) {
6979 /* free the ifn */
6980 LIST_REMOVE(ifn, next_bucket);
6981 LIST_REMOVE(ifn, next_ifn);
6982 SCTP_FREE(ifn, SCTP_M_IFN);