ifa 100 arch/ia64/include/asm/mca.h unsigned long ifa; ifa 12 arch/ia64/include/asm/native/inst.h mov reg = cr.ifa ifa 42 arch/ia64/include/asm/native/inst.h mov cr.ifa = reg ifa 18 arch/ia64/include/asm/tlbflush.h u64 ifa; ifa 1237 arch/ia64/kernel/mca.c old_rr = ia64_get_rr(p->ifa); ifa 1239 arch/ia64/kernel/mca.c ia64_set_rr(p->ifa, p->rr); ifa 1242 arch/ia64/kernel/mca.c ia64_ptr(iord, p->ifa, p->itir >> 2); ifa 1245 arch/ia64/kernel/mca.c ia64_itr(0x1, i, p->ifa, p->pte, p->itir >> 2); ifa 1249 arch/ia64/kernel/mca.c ia64_itr(0x2, i, p->ifa, p->pte, p->itir >> 2); ifa 1253 arch/ia64/kernel/mca.c ia64_set_rr(p->ifa, old_rr); ifa 416 arch/ia64/kernel/traps.c ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa, ifa 477 arch/ia64/kernel/traps.c addr = (void __user *) ifa; ifa 535 arch/ia64/kernel/traps.c ifa = regs.cr_iip; ifa 538 arch/ia64/kernel/traps.c case 35: si_code = TRAP_BRANCH; ifa = 0; break; ifa 539 arch/ia64/kernel/traps.c case 36: si_code = TRAP_TRACE; ifa = 0; break; ifa 544 arch/ia64/kernel/traps.c force_sig_fault(SIGTRAP, si_code, (void __user *) ifa, ifa 591 arch/ia64/kernel/traps.c iip, ifa, isr); ifa 598 arch/ia64/kernel/traps.c iip, ifa, isr, iim); ifa 673 arch/ia64/kernel/unaligned.c emulate_load_updates (update_t type, load_store_t ld, struct pt_regs *regs, unsigned long ifa) ifa 713 arch/ia64/kernel/unaligned.c ifa += imm; ifa 715 arch/ia64/kernel/unaligned.c setreg(ld.r3, ifa, 0, regs); ifa 717 arch/ia64/kernel/unaligned.c DPRINT("ld.x=%d ld.m=%d imm=%ld r3=0x%lx\n", ld.x, ld.m, imm, ifa); ifa 741 arch/ia64/kernel/unaligned.c ifa += r2; ifa 746 arch/ia64/kernel/unaligned.c setreg(ld.r3, ifa, nat_r2, regs); ifa 748 arch/ia64/kernel/unaligned.c DPRINT("imm=%d r2=%ld r3=0x%lx nat_r2=%d\n",ld.imm, r2, ifa, nat_r2); ifa 754 arch/ia64/kernel/unaligned.c emulate_load_int (unsigned long ifa, load_store_t ld, struct pt_regs *regs) ifa 777 arch/ia64/kernel/unaligned.c if (copy_from_user(&val, (void __user *) ifa, len)) ifa 785 arch/ia64/kernel/unaligned.c emulate_load_updates(ld.op == 0x5 ? UPD_IMMEDIATE: UPD_REG, ld, regs, ifa); ifa 875 arch/ia64/kernel/unaligned.c emulate_store_int (unsigned long ifa, load_store_t ld, struct pt_regs *regs) ifa 896 arch/ia64/kernel/unaligned.c DPRINT("st%d [%lx]=%lx\n", len, ifa, r2); ifa 904 arch/ia64/kernel/unaligned.c if (copy_to_user((void __user *) ifa, &r2, len)) ifa 928 arch/ia64/kernel/unaligned.c ifa += imm; ifa 930 arch/ia64/kernel/unaligned.c DPRINT("imm=%lx r3=%lx\n", imm, ifa); ifa 932 arch/ia64/kernel/unaligned.c setreg(ld.r3, ifa, 0, regs); ifa 1024 arch/ia64/kernel/unaligned.c emulate_load_floatpair (unsigned long ifa, load_store_t ld, struct pt_regs *regs) ifa 1053 arch/ia64/kernel/unaligned.c if (copy_from_user(&fpr_init[0], (void __user *) ifa, len) ifa 1054 arch/ia64/kernel/unaligned.c || copy_from_user(&fpr_init[1], (void __user *) (ifa + len), len)) ifa 1102 arch/ia64/kernel/unaligned.c ifa += len<<1; ifa 1114 arch/ia64/kernel/unaligned.c setreg(ld.r3, ifa, 0, regs); ifa 1129 arch/ia64/kernel/unaligned.c emulate_load_float (unsigned long ifa, load_store_t ld, struct pt_regs *regs) ifa 1155 arch/ia64/kernel/unaligned.c if (copy_from_user(&fpr_init, (void __user *) ifa, len)) ifa 1192 arch/ia64/kernel/unaligned.c emulate_load_updates(ld.op == 0x7 ? UPD_IMMEDIATE: UPD_REG, ld, regs, ifa); ifa 1205 arch/ia64/kernel/unaligned.c emulate_store_float (unsigned long ifa, load_store_t ld, struct pt_regs *regs) ifa 1247 arch/ia64/kernel/unaligned.c if (copy_to_user((void __user *) ifa, &fpr_final, len)) ifa 1272 arch/ia64/kernel/unaligned.c ifa += imm; ifa 1274 arch/ia64/kernel/unaligned.c DPRINT("imm=%lx r3=%lx\n", imm, ifa); ifa 1276 arch/ia64/kernel/unaligned.c setreg(ld.r3, ifa, 0, regs); ifa 1295 arch/ia64/kernel/unaligned.c ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs) ifa 1336 arch/ia64/kernel/unaligned.c ifa, regs->cr_iip + ipsr->ri); ifa 1366 arch/ia64/kernel/unaligned.c ifa, regs->cr_iip + ipsr->ri); ifa 1374 arch/ia64/kernel/unaligned.c regs->cr_iip, ifa, regs->cr_ipsr, ipsr->ri, ipsr->it); ifa 1470 arch/ia64/kernel/unaligned.c ret = emulate_load_int(ifa, u.insn, regs); ifa 1481 arch/ia64/kernel/unaligned.c ret = emulate_store_int(ifa, u.insn, regs); ifa 1489 arch/ia64/kernel/unaligned.c ret = emulate_load_floatpair(ifa, u.insn, regs); ifa 1491 arch/ia64/kernel/unaligned.c ret = emulate_load_float(ifa, u.insn, regs); ifa 1498 arch/ia64/kernel/unaligned.c ret = emulate_load_float(ifa, u.insn, regs); ifa 1503 arch/ia64/kernel/unaligned.c ret = emulate_store_float(ifa, u.insn, regs); ifa 1539 arch/ia64/kernel/unaligned.c force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *) ifa, ifa 433 arch/ia64/mm/tlb.c tr_end = p->ifa + (1<<tr_log_size) - 1; ifa 435 arch/ia64/mm/tlb.c if (va > tr_end || p->ifa > va_end) ifa 529 arch/ia64/mm/tlb.c p->ifa = va; ifa 538 arch/ia64/mm/tlb.c p->ifa = va; ifa 569 arch/ia64/mm/tlb.c if ((p->pte&0x1) && is_tr_overlap(p, p->ifa, p->itir>>2)) { ifa 571 arch/ia64/mm/tlb.c ia64_ptr(0x1, p->ifa, p->itir>>2); ifa 578 arch/ia64/mm/tlb.c if ((p->pte & 0x1) && is_tr_overlap(p, p->ifa, p->itir>>2)) { ifa 580 arch/ia64/mm/tlb.c ia64_ptr(0x2, p->ifa, p->itir>>2); ifa 740 arch/um/drivers/net_kern.c struct in_ifaddr *ifa = ptr; ifa 741 arch/um/drivers/net_kern.c struct net_device *dev = ifa->ifa_dev->dev; ifa 761 arch/um/drivers/net_kern.c memcpy(addr_buf, &ifa->ifa_address, sizeof(addr_buf)); ifa 762 arch/um/drivers/net_kern.c memcpy(netmask_buf, &ifa->ifa_mask, sizeof(netmask_buf)); ifa 333 drivers/infiniband/core/roce_gid_mgmt.c const struct in_ifaddr *ifa; ifa 353 drivers/infiniband/core/roce_gid_mgmt.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 360 drivers/infiniband/core/roce_gid_mgmt.c entry->ip.sin_addr.s_addr = ifa->ifa_address; ifa 859 drivers/infiniband/core/roce_gid_mgmt.c struct in_ifaddr *ifa = ptr; ifa 862 drivers/infiniband/core/roce_gid_mgmt.c in.sin_addr.s_addr = ifa->ifa_address; ifa 863 drivers/infiniband/core/roce_gid_mgmt.c ndev = ifa->ifa_dev->dev; ifa 3237 drivers/infiniband/hw/cxgb4/cm.c const struct in_ifaddr *ifa; ifa 3243 drivers/infiniband/hw/cxgb4/cm.c in_dev_for_each_ifa_rcu(ifa, ind) { ifa 3244 drivers/infiniband/hw/cxgb4/cm.c if (ifa->ifa_flags & IFA_F_SECONDARY) ifa 3246 drivers/infiniband/hw/cxgb4/cm.c laddr->sin_addr.s_addr = ifa->ifa_address; ifa 3247 drivers/infiniband/hw/cxgb4/cm.c raddr->sin_addr.s_addr = ifa->ifa_address; ifa 1776 drivers/infiniband/hw/i40iw/i40iw_cm.c const struct in_ifaddr *ifa; ifa 1780 drivers/infiniband/hw/i40iw/i40iw_cm.c in_dev_for_each_ifa_rtnl(ifa, idev) { ifa 1784 drivers/infiniband/hw/i40iw/i40iw_cm.c &ifa->ifa_address, ifa 1804 drivers/infiniband/hw/i40iw/i40iw_cm.c child_listen_node->loc_addr[0] = ntohl(ifa->ifa_address); ifa 1225 drivers/infiniband/hw/i40iw/i40iw_main.c const struct in_ifaddr *ifa; ifa 1230 drivers/infiniband/hw/i40iw/i40iw_main.c in_dev_for_each_ifa_rtnl(ifa, idev) { ifa 1232 drivers/infiniband/hw/i40iw/i40iw_main.c "IP=%pI4, vlan_id=%d, MAC=%pM\n", &ifa->ifa_address, ifa 1235 drivers/infiniband/hw/i40iw/i40iw_main.c ip_addr = ntohl(ifa->ifa_address); ifa 149 drivers/infiniband/hw/i40iw/i40iw_utils.c struct in_ifaddr *ifa = ptr; ifa 150 drivers/infiniband/hw/i40iw/i40iw_utils.c struct net_device *event_netdev = ifa->ifa_dev->dev; ifa 179 drivers/infiniband/hw/i40iw/i40iw_utils.c struct in_ifaddr *ifa; ifa 181 drivers/infiniband/hw/i40iw/i40iw_utils.c ifa = rcu_dereference(in->ifa_list); ifa 182 drivers/infiniband/hw/i40iw/i40iw_utils.c if (ifa) ifa 183 drivers/infiniband/hw/i40iw/i40iw_utils.c local_ipaddr = ntohl(ifa->ifa_address); ifa 188 drivers/infiniband/hw/i40iw/i40iw_utils.c local_ipaddr = ntohl(ifa->ifa_address); ifa 226 drivers/infiniband/hw/i40iw/i40iw_utils.c struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; ifa 227 drivers/infiniband/hw/i40iw/i40iw_utils.c struct net_device *event_netdev = ifa->idev->dev; ifa 246 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_copy_ip_ntohl(local_ipaddr6, ifa->addr.in6_u.u6_addr32); ifa 248 drivers/infiniband/hw/usnic/usnic_ib_main.c struct in_ifaddr *ifa = ptr; ifa 265 drivers/infiniband/hw/usnic/usnic_ib_main.c usnic_fwd_add_ipaddr(us_ibdev->ufdev, ifa->ifa_address); ifa 288 drivers/infiniband/hw/usnic/usnic_ib_main.c struct in_ifaddr *ifa = ptr; ifa 289 drivers/infiniband/hw/usnic/usnic_ib_main.c struct net_device *netdev = ifa->ifa_dev->dev; ifa 441 drivers/infiniband/hw/usnic/usnic_ib_main.c const struct in_ifaddr *ifa; ifa 443 drivers/infiniband/hw/usnic/usnic_ib_main.c ifa = rcu_dereference(ind->ifa_list); ifa 444 drivers/infiniband/hw/usnic/usnic_ib_main.c if (ifa) ifa 445 drivers/infiniband/hw/usnic/usnic_ib_main.c usnic_fwd_add_ipaddr(us_ibdev->ufdev, ifa->ifa_address); ifa 202 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c struct inet6_ifaddr *ifa; ifa 210 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 211 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c ret = cxgb4_clip_get(dev, (const u32 *)ifa->addr.s6_addr, 1); ifa 2279 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct inet6_ifaddr *ifa = data; ifa 2280 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct net_device *event_dev = ifa->idev->dev; ifa 2293 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (const u32 *)ifa, 1); ifa 2297 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c (const u32 *)ifa, 1); ifa 2313 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c cxgb4_clip_get(event_dev, (const u32 *)ifa, 1); ifa 2316 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c cxgb4_clip_release(event_dev, (const u32 *)ifa, 1); ifa 7027 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct in_ifaddr *ifa = (struct in_ifaddr *) ptr; ifa 7028 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct net_device *dev = ifa->ifa_dev->dev; ifa 3197 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct in_ifaddr *ifa, unsigned long event) ifa 3204 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dev = ifa->ifa_dev ? ifa->ifa_dev->dev : NULL; ifa 3214 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (cur->ip_addr == ifa->ifa_address) ifa 3224 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c cur->ip_addr = ifa->ifa_address; ifa 3226 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_config_ipaddr(adapter, ifa->ifa_address, NX_IP_UP); ifa 3232 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c if (cur->ip_addr == ifa->ifa_address) { ifa 3235 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_config_ipaddr(adapter, ifa->ifa_address, ifa 3251 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct in_ifaddr *ifa; ifa 3261 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c in_dev_for_each_ifa_rcu(ifa, indev) { ifa 3264 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_list_config_ip(adapter, ifa, NX_IP_UP); ifa 3267 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_list_config_ip(adapter, ifa, NX_IP_DOWN); ifa 3395 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 3398 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c dev = ifa->ifa_dev ? ifa->ifa_dev->dev : NULL; ifa 3416 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_list_config_ip(adapter, ifa, ip_event); ifa 3423 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_list_config_ip(adapter, ifa, ip_event); ifa 4122 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c const struct in_ifaddr *ifa; ifa 4129 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c in_dev_for_each_ifa_rtnl(ifa, indev) { ifa 4133 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c ifa->ifa_address, QLCNIC_IP_UP); ifa 4137 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c ifa->ifa_address, QLCNIC_IP_DOWN); ifa 4203 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 4205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c dev = ifa->ifa_dev ? ifa->ifa_dev->dev : NULL; ifa 4229 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_config_ipaddr(adapter, ifa->ifa_address, QLCNIC_IP_UP); ifa 4233 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_config_ipaddr(adapter, ifa->ifa_address, QLCNIC_IP_DOWN); ifa 3665 drivers/net/ethernet/via/via-velocity.c struct in_ifaddr *ifa = ptr; ifa 3666 drivers/net/ethernet/via/via-velocity.c struct net_device *dev = ifa->ifa_dev->dev; ifa 1506 drivers/net/ethernet/via/via-velocity.h struct in_ifaddr *ifa; ifa 1512 drivers/net/ethernet/via/via-velocity.h ifa = rcu_dereference(in_dev->ifa_list); ifa 1513 drivers/net/ethernet/via/via-velocity.h if (ifa != NULL) { ifa 1514 drivers/net/ethernet/via/via-velocity.h memcpy(vptr->ip_addr, &ifa->ifa_address, 4); ifa 1011 drivers/net/plip/plip.c const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list); ifa 1012 drivers/net/plip/plip.c if (ifa) { ifa 1015 drivers/net/plip/plip.c memcpy(eth->h_dest+2, &ifa->ifa_address, 4); ifa 1106 drivers/net/plip/plip.c const struct in_ifaddr *ifa = rcu_dereference(in_dev->ifa_list); ifa 1107 drivers/net/plip/plip.c if (ifa != NULL) { ifa 1108 drivers/net/plip/plip.c memcpy(dev->dev_addr+2, &ifa->ifa_local, 4); ifa 3621 drivers/net/vmxnet3/vmxnet3_drv.c struct in_ifaddr *ifa; ifa 3661 drivers/net/vmxnet3/vmxnet3_drv.c ifa = rcu_dereference(in_dev->ifa_list); ifa 3662 drivers/net/vmxnet3/vmxnet3_drv.c if (!ifa) { ifa 3685 drivers/net/vmxnet3/vmxnet3_drv.c *(__be32 *)arpreq = ifa->ifa_address; ifa 196 drivers/net/wan/hdlc_cisco.c const struct in_ifaddr *ifa; ifa 198 drivers/net/wan/hdlc_cisco.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 200 drivers/net/wan/hdlc_cisco.c ifa->ifa_label) == 0) { ifa 201 drivers/net/wan/hdlc_cisco.c addr = ifa->ifa_local; ifa 202 drivers/net/wan/hdlc_cisco.c mask = ifa->ifa_mask; ifa 2131 drivers/net/wireless/ath/ath6kl/cfg80211.c struct in_ifaddr *ifa; ifa 2197 drivers/net/wireless/ath/ath6kl/cfg80211.c ifa = rtnl_dereference(in_dev->ifa_list); ifa 2201 drivers/net/wireless/ath/ath6kl/cfg80211.c while (index < MAX_IP_ADDRS && ifa) { ifa 2202 drivers/net/wireless/ath/ath6kl/cfg80211.c ips[index] = ifa->ifa_local; ifa 2203 drivers/net/wireless/ath/ath6kl/cfg80211.c ifa = rtnl_dereference(ifa->ifa_next); ifa 2207 drivers/net/wireless/ath/ath6kl/cfg80211.c if (ifa) { ifa 914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct in_ifaddr *ifa = data; ifa 915 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct net_device *ndev = ifa->ifa_dev->dev; ifa 951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifa->ifa_address == addr_table[i]) ifa 958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c &ifa->ifa_address); ifa 961 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c &ifa->ifa_address, sizeof(ifa->ifa_address)); ifa 970 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c &ifa->ifa_address); ifa 1005 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct inet6_ifaddr *ifa = data; ifa 1014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ifp->ndev != ifa->idev->dev) ifa 1019 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c if (ipv6_addr_equal(&ifa->addr, &table[i])) ifa 1026 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c table[ifp->ipv6addr_idx++] = ifa->addr; ifa 1030 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c table[NDOL_MAX_ENTRIES - 1] = ifa->addr; ifa 103 drivers/net/wireless/intel/iwlwifi/mvm/d3.c struct inet6_ifaddr *ifa; ifa 109 drivers/net/wireless/intel/iwlwifi/mvm/d3.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 110 drivers/net/wireless/intel/iwlwifi/mvm/d3.c mvmvif->target_ipv6_addrs[idx] = ifa->addr; ifa 111 drivers/net/wireless/intel/iwlwifi/mvm/d3.c if (ifa->flags & IFA_F_TENTATIVE) ifa 3256 drivers/net/wireless/marvell/mwifiex/cfg80211.c struct in_ifaddr *ifa; ifa 3270 drivers/net/wireless/marvell/mwifiex/cfg80211.c ifa = rtnl_dereference(in_dev->ifa_list); ifa 3271 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (!ifa || !ifa->ifa_local) ifa 3273 drivers/net/wireless/marvell/mwifiex/cfg80211.c ips[i] = ifa->ifa_local; ifa 2548 drivers/s390/net/qeth_l3_main.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 2549 drivers/s390/net/qeth_l3_main.c struct net_device *dev = ifa->ifa_dev->dev; ifa 2562 drivers/s390/net/qeth_l3_main.c addr.u.a4.addr = be32_to_cpu(ifa->ifa_address); ifa 2563 drivers/s390/net/qeth_l3_main.c addr.u.a4.mask = be32_to_cpu(ifa->ifa_mask); ifa 2576 drivers/s390/net/qeth_l3_main.c struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; ifa 2577 drivers/s390/net/qeth_l3_main.c struct net_device *dev = ifa->idev->dev; ifa 2603 drivers/s390/net/qeth_l3_main.c ip_work->addr.u.a6.addr = ifa->addr; ifa 2604 drivers/s390/net/qeth_l3_main.c ip_work->addr.u.a6.pfxlen = ifa->prefix_len; ifa 73 drivers/staging/isdn/hysdn/hysdn_net.c const struct in_ifaddr *ifa; ifa 76 drivers/staging/isdn/hysdn/hysdn_net.c ifa = rcu_dereference(in_dev->ifa_list); ifa 77 drivers/staging/isdn/hysdn/hysdn_net.c if (ifa != NULL) ifa 78 drivers/staging/isdn/hysdn/hysdn_net.c memcpy(dev->dev_addr + (ETH_ALEN - sizeof(ifa->ifa_local)), &ifa->ifa_local, sizeof(ifa->ifa_local)); ifa 302 fs/lockd/svc.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 311 fs/lockd/svc.c &ifa->ifa_local); ifa 313 fs/lockd/svc.c sin.sin_addr.s_addr = ifa->ifa_local; ifa 332 fs/lockd/svc.c struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; ifa 340 fs/lockd/svc.c dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr); ifa 342 fs/lockd/svc.c sin6.sin6_addr = ifa->addr; ifa 344 fs/lockd/svc.c sin6.sin6_scope_id = ifa->idev->dev->ifindex; ifa 431 fs/nfsd/nfssvc.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 432 fs/nfsd/nfssvc.c struct net_device *dev = ifa->ifa_dev->dev; ifa 442 fs/nfsd/nfssvc.c dprintk("nfsd_inetaddr_event: removed %pI4\n", &ifa->ifa_local); ifa 444 fs/nfsd/nfssvc.c sin.sin_addr.s_addr = ifa->ifa_local; ifa 462 fs/nfsd/nfssvc.c struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; ifa 463 fs/nfsd/nfssvc.c struct net_device *dev = ifa->idev->dev; ifa 473 fs/nfsd/nfssvc.c dprintk("nfsd_inet6addr_event: removed %pI6\n", &ifa->addr); ifa 475 fs/nfsd/nfssvc.c sin6.sin6_addr = ifa->addr; ifa 477 fs/nfsd/nfssvc.c sin6.sin6_scope_id = ifa->idev->dev->ifindex; ifa 189 include/linux/inetdevice.h static inline bool inet_ifa_match(__be32 addr, const struct in_ifaddr *ifa) ifa 191 include/linux/inetdevice.h return !((addr^ifa->ifa_address)&ifa->ifa_mask); ifa 209 include/linux/inetdevice.h #define in_dev_for_each_ifa_rtnl(ifa, in_dev) \ ifa 210 include/linux/inetdevice.h for (ifa = rtnl_dereference((in_dev)->ifa_list); ifa; \ ifa 211 include/linux/inetdevice.h ifa = rtnl_dereference(ifa->ifa_next)) ifa 213 include/linux/inetdevice.h #define in_dev_for_each_ifa_rcu(ifa, in_dev) \ ifa 214 include/linux/inetdevice.h for (ifa = rcu_dereference((in_dev)->ifa_list); ifa; \ ifa 215 include/linux/inetdevice.h ifa = rcu_dereference(ifa->ifa_next)) ifa 82 include/net/dn_dev.h void (*timer3)(struct net_device *, struct dn_ifaddr *ifa); ifa 177 include/net/dn_dev.h struct dn_ifaddr *ifa; ifa 187 include/net/dn_dev.h for (ifa = rcu_dereference(dn_db->ifa_list); ifa 188 include/net/dn_dev.h ifa != NULL; ifa 189 include/net/dn_dev.h ifa = rcu_dereference(ifa->ifa_next)) ifa 190 include/net/dn_dev.h if ((addr ^ ifa->ifa_local) == 0) { ifa 230 include/net/route.h void fib_modify_prefix_metric(struct in_ifaddr *ifa, u32 new_metric); ifa 721 net/appletalk/aarp.c struct atalk_iface *ifa; ifa 750 net/appletalk/aarp.c ifa = atalk_find_dev(dev); ifa 751 net/appletalk/aarp.c if (!ifa) ifa 754 net/appletalk/aarp.c if (ifa->status & ATIF_PROBE && ifa 755 net/appletalk/aarp.c ifa->address.s_node == ea->pa_dst_node && ifa 756 net/appletalk/aarp.c ifa->address.s_net == ea->pa_dst_net) { ifa 757 net/appletalk/aarp.c ifa->status |= ATIF_PROBE_FAIL; /* Fail the probe (in use) */ ifa 816 net/appletalk/aarp.c ma = &ifa->address; ifa 579 net/atm/clip.c void *ifa) ifa 584 net/atm/clip.c in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; ifa 699 net/core/netpoll.c const struct in_ifaddr *ifa; ifa 705 net/core/netpoll.c ifa = rtnl_dereference(in_dev->ifa_list); ifa 706 net/core/netpoll.c if (!ifa) { ifa 714 net/core/netpoll.c np->local_ip.ip = ifa->ifa_local; ifa 2121 net/core/pktgen.c const struct in_ifaddr *ifa; ifa 2123 net/core/pktgen.c ifa = rcu_dereference(in_dev->ifa_list); ifa 2124 net/core/pktgen.c if (ifa) { ifa 2125 net/core/pktgen.c pkt_dev->saddr_min = ifa->ifa_address; ifa 79 net/decnet/dn_dev.c static void dn_ifaddr_notify(int event, struct dn_ifaddr *ifa); ifa 83 net/decnet/dn_dev.c static void dn_send_brd_hello(struct net_device *dev, struct dn_ifaddr *ifa); ifa 84 net/decnet/dn_dev.c static void dn_send_ptp_hello(struct net_device *dev, struct dn_ifaddr *ifa); ifa 318 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 320 net/decnet/dn_dev.c ifa = kzalloc(sizeof(*ifa), GFP_KERNEL); ifa 322 net/decnet/dn_dev.c return ifa; ifa 325 net/decnet/dn_dev.c static void dn_dev_free_ifa(struct dn_ifaddr *ifa) ifa 327 net/decnet/dn_dev.c kfree_rcu(ifa, rcu); ifa 357 net/decnet/dn_dev.c static int dn_dev_insert_ifa(struct dn_dev *dn_db, struct dn_ifaddr *ifa) ifa 369 net/decnet/dn_dev.c if (ifa1->ifa_local == ifa->ifa_local) ifa 374 net/decnet/dn_dev.c if (ifa->ifa_local != dn_eth2dn(dev->dev_addr)) { ifa 375 net/decnet/dn_dev.c dn_dn2eth(mac_addr, ifa->ifa_local); ifa 380 net/decnet/dn_dev.c ifa->ifa_next = dn_db->ifa_list; ifa 381 net/decnet/dn_dev.c rcu_assign_pointer(dn_db->ifa_list, ifa); ifa 383 net/decnet/dn_dev.c dn_ifaddr_notify(RTM_NEWADDR, ifa); ifa 384 net/decnet/dn_dev.c blocking_notifier_call_chain(&dnaddr_chain, NETDEV_UP, ifa); ifa 389 net/decnet/dn_dev.c static int dn_dev_set_ifa(struct net_device *dev, struct dn_ifaddr *ifa) ifa 401 net/decnet/dn_dev.c ifa->ifa_dev = dn_db; ifa 404 net/decnet/dn_dev.c ifa->ifa_scope = RT_SCOPE_HOST; ifa 406 net/decnet/dn_dev.c rv = dn_dev_insert_ifa(dn_db, ifa); ifa 408 net/decnet/dn_dev.c dn_dev_free_ifa(ifa); ifa 420 net/decnet/dn_dev.c struct dn_ifaddr *ifa = NULL; ifa 452 net/decnet/dn_dev.c (ifa = rtnl_dereference(*ifap)) != NULL; ifa 453 net/decnet/dn_dev.c ifap = &ifa->ifa_next) ifa 454 net/decnet/dn_dev.c if (strcmp(ifr->ifr_name, ifa->ifa_label) == 0) ifa 458 net/decnet/dn_dev.c if (ifa == NULL && cmd != SIOCSIFADDR) { ifa 465 net/decnet/dn_dev.c *((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local; ifa 469 net/decnet/dn_dev.c if (!ifa) { ifa 470 net/decnet/dn_dev.c if ((ifa = dn_dev_alloc_ifa()) == NULL) { ifa 474 net/decnet/dn_dev.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); ifa 476 net/decnet/dn_dev.c if (ifa->ifa_local == dn_saddr2dn(sdn)) ifa 481 net/decnet/dn_dev.c ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn); ifa 483 net/decnet/dn_dev.c ret = dn_dev_set_ifa(dev, ifa); ifa 576 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 598 net/decnet/dn_dev.c (ifa = rtnl_dereference(*ifap)) != NULL; ifa 599 net/decnet/dn_dev.c ifap = &ifa->ifa_next) { ifa 601 net/decnet/dn_dev.c nla_memcmp(tb[IFA_LOCAL], &ifa->ifa_local, 2)) ifa 604 net/decnet/dn_dev.c if (tb[IFA_LABEL] && nla_strcmp(tb[IFA_LABEL], ifa->ifa_label)) ifa 623 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 650 net/decnet/dn_dev.c if ((ifa = dn_dev_alloc_ifa()) == NULL) ifa 656 net/decnet/dn_dev.c ifa->ifa_local = nla_get_le16(tb[IFA_LOCAL]); ifa 657 net/decnet/dn_dev.c ifa->ifa_address = nla_get_le16(tb[IFA_ADDRESS]); ifa 658 net/decnet/dn_dev.c ifa->ifa_flags = tb[IFA_FLAGS] ? nla_get_u32(tb[IFA_FLAGS]) : ifa 660 net/decnet/dn_dev.c ifa->ifa_scope = ifm->ifa_scope; ifa 661 net/decnet/dn_dev.c ifa->ifa_dev = dn_db; ifa 664 net/decnet/dn_dev.c nla_strlcpy(ifa->ifa_label, tb[IFA_LABEL], IFNAMSIZ); ifa 666 net/decnet/dn_dev.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); ifa 668 net/decnet/dn_dev.c err = dn_dev_insert_ifa(dn_db, ifa); ifa 670 net/decnet/dn_dev.c dn_dev_free_ifa(ifa); ifa 684 net/decnet/dn_dev.c static int dn_nl_fill_ifaddr(struct sk_buff *skb, struct dn_ifaddr *ifa, ifa 689 net/decnet/dn_dev.c u32 ifa_flags = ifa->ifa_flags | IFA_F_PERMANENT; ifa 699 net/decnet/dn_dev.c ifm->ifa_scope = ifa->ifa_scope; ifa 700 net/decnet/dn_dev.c ifm->ifa_index = ifa->ifa_dev->dev->ifindex; ifa 702 net/decnet/dn_dev.c if ((ifa->ifa_address && ifa 703 net/decnet/dn_dev.c nla_put_le16(skb, IFA_ADDRESS, ifa->ifa_address)) || ifa 704 net/decnet/dn_dev.c (ifa->ifa_local && ifa 705 net/decnet/dn_dev.c nla_put_le16(skb, IFA_LOCAL, ifa->ifa_local)) || ifa 706 net/decnet/dn_dev.c (ifa->ifa_label[0] && ifa 707 net/decnet/dn_dev.c nla_put_string(skb, IFA_LABEL, ifa->ifa_label)) || ifa 718 net/decnet/dn_dev.c static void dn_ifaddr_notify(int event, struct dn_ifaddr *ifa) ifa 727 net/decnet/dn_dev.c err = dn_nl_fill_ifaddr(skb, ifa, 0, 0, event, 0); ifa 747 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 769 net/decnet/dn_dev.c for (ifa = rcu_dereference(dn_db->ifa_list), dn_idx = 0; ifa; ifa 770 net/decnet/dn_dev.c ifa = rcu_dereference(ifa->ifa_next), dn_idx++) { ifa 774 net/decnet/dn_dev.c if (dn_nl_fill_ifaddr(skb, ifa, NETLINK_CB(cb->skb).portid, ifa 793 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 801 net/decnet/dn_dev.c ifa = rcu_dereference(dn_db->ifa_list); ifa 802 net/decnet/dn_dev.c if (ifa != NULL) { ifa 803 net/decnet/dn_dev.c *addr = ifa->ifa_local; ifa 838 net/decnet/dn_dev.c static void dn_send_endnode_hello(struct net_device *dev, struct dn_ifaddr *ifa) ifa 854 net/decnet/dn_dev.c dn_dn2eth(msg->id, ifa->ifa_local); ifa 882 net/decnet/dn_dev.c static int dn_am_i_a_router(struct dn_neigh *dn, struct dn_dev *dn_db, struct dn_ifaddr *ifa) ifa 900 net/decnet/dn_dev.c if (le16_to_cpu(dn->addr) < le16_to_cpu(ifa->ifa_local)) ifa 906 net/decnet/dn_dev.c static void dn_send_router_hello(struct net_device *dev, struct dn_ifaddr *ifa) ifa 939 net/decnet/dn_dev.c dn_dn2eth(ptr, ifa->ifa_local); ifa 968 net/decnet/dn_dev.c if (dn_am_i_a_router(dn, dn_db, ifa)) { ifa 978 net/decnet/dn_dev.c static void dn_send_brd_hello(struct net_device *dev, struct dn_ifaddr *ifa) ifa 983 net/decnet/dn_dev.c dn_send_endnode_hello(dev, ifa); ifa 985 net/decnet/dn_dev.c dn_send_router_hello(dev, ifa); ifa 988 net/decnet/dn_dev.c static void dn_send_ptp_hello(struct net_device *dev, struct dn_ifaddr *ifa) ifa 1005 net/decnet/dn_dev.c *((__le16 *)ptr) = ifa->ifa_local; ifa 1012 net/decnet/dn_dev.c dn_dn2eth(src, ifa->ifa_local); ifa 1046 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 1052 net/decnet/dn_dev.c for (ifa = rcu_dereference(dn_db->ifa_list); ifa 1053 net/decnet/dn_dev.c ifa; ifa 1054 net/decnet/dn_dev.c ifa = rcu_dereference(ifa->ifa_next)) { ifa 1055 net/decnet/dn_dev.c if (!(ifa->ifa_flags & IFA_F_SECONDARY)) ifa 1056 net/decnet/dn_dev.c dn_db->parms.timer3(dev, ifa); ifa 1144 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 1175 net/decnet/dn_dev.c if ((ifa = dn_dev_alloc_ifa()) == NULL) ifa 1178 net/decnet/dn_dev.c ifa->ifa_local = ifa->ifa_address = addr; ifa 1179 net/decnet/dn_dev.c ifa->ifa_flags = 0; ifa 1180 net/decnet/dn_dev.c ifa->ifa_scope = RT_SCOPE_UNIVERSE; ifa 1181 net/decnet/dn_dev.c strcpy(ifa->ifa_label, dev->name); ifa 1183 net/decnet/dn_dev.c dn_dev_set_ifa(dev, ifa); ifa 1227 net/decnet/dn_dev.c struct dn_ifaddr *ifa; ifa 1232 net/decnet/dn_dev.c while ((ifa = rtnl_dereference(dn_db->ifa_list)) != NULL) { ifa 1234 net/decnet/dn_dev.c dn_dev_free_ifa(ifa); ifa 559 net/decnet/dn_fib.c static void fib_magic(int cmd, int type, __le16 dst, int dst_len, struct dn_ifaddr *ifa) ifa 576 net/decnet/dn_fib.c .prefsrc = ifa->ifa_local, ifa 582 net/decnet/dn_fib.c .oif = ifa->ifa_dev->dev->ifindex, ifa 618 net/decnet/dn_fib.c static void dn_fib_add_ifaddr(struct dn_ifaddr *ifa) ifa 621 net/decnet/dn_fib.c fib_magic(RTM_NEWROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); ifa 631 net/decnet/dn_fib.c static void dn_fib_del_ifaddr(struct dn_ifaddr *ifa) ifa 649 net/decnet/dn_fib.c if (ifa2->ifa_local == ifa->ifa_local) { ifa 658 net/decnet/dn_fib.c fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); ifa 660 net/decnet/dn_fib.c if (dnet_addr_type(ifa->ifa_local) != RTN_LOCAL) { ifa 661 net/decnet/dn_fib.c if (dn_fib_sync_down(ifa->ifa_local, NULL, 0)) ifa 677 net/decnet/dn_fib.c struct dn_ifaddr *ifa = (struct dn_ifaddr *)ptr; ifa 681 net/decnet/dn_fib.c dn_fib_add_ifaddr(ifa); ifa 682 net/decnet/dn_fib.c dn_fib_sync_up(ifa->ifa_dev->dev); ifa 686 net/decnet/dn_fib.c dn_fib_del_ifaddr(ifa); ifa 687 net/decnet/dn_fib.c if (ifa->ifa_dev && ifa->ifa_dev->ifa_list == NULL) { ifa 688 net/decnet/dn_fib.c dn_fib_disable_addr(ifa->ifa_dev->dev, 1); ifa 910 net/decnet/dn_route.c struct dn_ifaddr *ifa; ifa 916 net/decnet/dn_route.c for (ifa = rcu_dereference(dn_db->ifa_list); ifa 917 net/decnet/dn_route.c ifa != NULL; ifa 918 net/decnet/dn_route.c ifa = rcu_dereference(ifa->ifa_next)) { ifa 919 net/decnet/dn_route.c if (ifa->ifa_scope > scope) ifa 922 net/decnet/dn_route.c saddr = ifa->ifa_local; ifa 925 net/decnet/dn_route.c ret = dn_match_addr(daddr, ifa->ifa_local); ifa 927 net/decnet/dn_route.c saddr = ifa->ifa_local; ifa 929 net/decnet/dn_route.c saddr = ifa->ifa_local; ifa 128 net/ipv4/devinet.c static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) ifa 130 net/ipv4/devinet.c u32 hash = inet_addr_hash(net, ifa->ifa_local); ifa 133 net/ipv4/devinet.c hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]); ifa 136 net/ipv4/devinet.c static void inet_hash_remove(struct in_ifaddr *ifa) ifa 139 net/ipv4/devinet.c hlist_del_init_rcu(&ifa->hash); ifa 153 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 156 net/ipv4/devinet.c ifa = inet_lookup_ifaddr_rcu(net, addr); ifa 157 net/ipv4/devinet.c if (!ifa) { ifa 171 net/ipv4/devinet.c result = ifa->ifa_dev->dev; ifa 184 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 186 net/ipv4/devinet.c hlist_for_each_entry_rcu(ifa, &inet_addr_lst[hash], hash) ifa 187 net/ipv4/devinet.c if (ifa->ifa_local == addr && ifa 188 net/ipv4/devinet.c net_eq(dev_net(ifa->ifa_dev->dev), net)) ifa 189 net/ipv4/devinet.c return ifa; ifa 223 net/ipv4/devinet.c struct in_ifaddr *ifa = container_of(head, struct in_ifaddr, rcu_head); ifa 224 net/ipv4/devinet.c if (ifa->ifa_dev) ifa 225 net/ipv4/devinet.c in_dev_put(ifa->ifa_dev); ifa 226 net/ipv4/devinet.c kfree(ifa); ifa 229 net/ipv4/devinet.c static void inet_free_ifa(struct in_ifaddr *ifa) ifa 231 net/ipv4/devinet.c call_rcu(&ifa->rcu_head, inet_rcu_free_ifa); ifa 307 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 317 net/ipv4/devinet.c while ((ifa = rtnl_dereference(in_dev->ifa_list)) != NULL) { ifa 319 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 333 net/ipv4/devinet.c const struct in_ifaddr *ifa; ifa 336 net/ipv4/devinet.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 337 net/ipv4/devinet.c if (inet_ifa_match(a, ifa)) { ifa 338 net/ipv4/devinet.c if (!b || inet_ifa_match(b, ifa)) { ifa 353 net/ipv4/devinet.c struct in_ifaddr *ifa, *ifa1; ifa 372 net/ipv4/devinet.c while ((ifa = rtnl_dereference(*ifap1)) != NULL) { ifa 373 net/ipv4/devinet.c if (!(ifa->ifa_flags & IFA_F_SECONDARY) && ifa 374 net/ipv4/devinet.c ifa1->ifa_scope <= ifa->ifa_scope) ifa 375 net/ipv4/devinet.c last_prim = ifa; ifa 377 net/ipv4/devinet.c if (!(ifa->ifa_flags & IFA_F_SECONDARY) || ifa 378 net/ipv4/devinet.c ifa1->ifa_mask != ifa->ifa_mask || ifa 379 net/ipv4/devinet.c !inet_ifa_match(ifa1->ifa_address, ifa)) { ifa 380 net/ipv4/devinet.c ifap1 = &ifa->ifa_next; ifa 381 net/ipv4/devinet.c prev_prom = ifa; ifa 386 net/ipv4/devinet.c inet_hash_remove(ifa); ifa 387 net/ipv4/devinet.c *ifap1 = ifa->ifa_next; ifa 389 net/ipv4/devinet.c rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); ifa 391 net/ipv4/devinet.c NETDEV_DOWN, ifa); ifa 392 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 394 net/ipv4/devinet.c promote = ifa; ifa 405 net/ipv4/devinet.c for (ifa = promote; ifa; ifa = rtnl_dereference(ifa->ifa_next)) { ifa 406 net/ipv4/devinet.c if (ifa1->ifa_mask == ifa->ifa_mask && ifa 407 net/ipv4/devinet.c inet_ifa_match(ifa1->ifa_address, ifa)) ifa 408 net/ipv4/devinet.c fib_del_ifaddr(ifa, ifa1); ifa 448 net/ipv4/devinet.c for (ifa = next_sec; ifa; ifa 449 net/ipv4/devinet.c ifa = rtnl_dereference(ifa->ifa_next)) { ifa 450 net/ipv4/devinet.c if (ifa1->ifa_mask != ifa->ifa_mask || ifa 451 net/ipv4/devinet.c !inet_ifa_match(ifa1->ifa_address, ifa)) ifa 453 net/ipv4/devinet.c fib_add_ifaddr(ifa); ifa 472 net/ipv4/devinet.c static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, ifa 476 net/ipv4/devinet.c struct in_device *in_dev = ifa->ifa_dev; ifa 483 net/ipv4/devinet.c if (!ifa->ifa_local) { ifa 484 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 488 net/ipv4/devinet.c ifa->ifa_flags &= ~IFA_F_SECONDARY; ifa 492 net/ipv4/devinet.c ifa->ifa_flags &= ~IPV6ONLY_FLAGS; ifa 499 net/ipv4/devinet.c ifa->ifa_scope <= ifa1->ifa_scope) ifa 501 net/ipv4/devinet.c if (ifa1->ifa_mask == ifa->ifa_mask && ifa 502 net/ipv4/devinet.c inet_ifa_match(ifa1->ifa_address, ifa)) { ifa 503 net/ipv4/devinet.c if (ifa1->ifa_local == ifa->ifa_local) { ifa 504 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 507 net/ipv4/devinet.c if (ifa1->ifa_scope != ifa->ifa_scope) { ifa 508 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 511 net/ipv4/devinet.c ifa->ifa_flags |= IFA_F_SECONDARY; ifa 525 net/ipv4/devinet.c ivi.ivi_addr = ifa->ifa_address; ifa 526 net/ipv4/devinet.c ivi.ivi_dev = ifa->ifa_dev; ifa 532 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 536 net/ipv4/devinet.c if (!(ifa->ifa_flags & IFA_F_SECONDARY)) { ifa 537 net/ipv4/devinet.c prandom_seed((__force u32) ifa->ifa_local); ifa 541 net/ipv4/devinet.c rcu_assign_pointer(ifa->ifa_next, *ifap); ifa 542 net/ipv4/devinet.c rcu_assign_pointer(*ifap, ifa); ifa 544 net/ipv4/devinet.c inet_hash_insert(dev_net(in_dev->dev), ifa); ifa 552 net/ipv4/devinet.c rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); ifa 553 net/ipv4/devinet.c blocking_notifier_call_chain(&inetaddr_chain, NETDEV_UP, ifa); ifa 558 net/ipv4/devinet.c static int inet_insert_ifa(struct in_ifaddr *ifa) ifa 560 net/ipv4/devinet.c return __inet_insert_ifa(ifa, NULL, 0, NULL); ifa 563 net/ipv4/devinet.c static int inet_set_ifa(struct net_device *dev, struct in_ifaddr *ifa) ifa 570 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 575 net/ipv4/devinet.c if (ifa->ifa_dev != in_dev) { ifa 576 net/ipv4/devinet.c WARN_ON(ifa->ifa_dev); ifa 578 net/ipv4/devinet.c ifa->ifa_dev = in_dev; ifa 580 net/ipv4/devinet.c if (ipv4_is_loopback(ifa->ifa_local)) ifa 581 net/ipv4/devinet.c ifa->ifa_scope = RT_SCOPE_HOST; ifa 582 net/ipv4/devinet.c return inet_insert_ifa(ifa); ifa 607 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 611 net/ipv4/devinet.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 612 net/ipv4/devinet.c if (ifa->ifa_mask == mask && inet_ifa_match(prefix, ifa)) ifa 613 net/ipv4/devinet.c return ifa; ifa 619 net/ipv4/devinet.c const struct in_ifaddr *ifa) ifa 623 net/ipv4/devinet.c .imr_multiaddr.s_addr = ifa->ifa_address, ifa 624 net/ipv4/devinet.c .imr_ifindex = ifa->ifa_dev->dev->ifindex, ifa 652 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 670 net/ipv4/devinet.c for (ifap = &in_dev->ifa_list; (ifa = rtnl_dereference(*ifap)) != NULL; ifa 671 net/ipv4/devinet.c ifap = &ifa->ifa_next) { ifa 673 net/ipv4/devinet.c ifa->ifa_local != nla_get_in_addr(tb[IFA_LOCAL])) ifa 676 net/ipv4/devinet.c if (tb[IFA_LABEL] && nla_strcmp(tb[IFA_LABEL], ifa->ifa_label)) ifa 680 net/ipv4/devinet.c (ifm->ifa_prefixlen != ifa->ifa_prefixlen || ifa 681 net/ipv4/devinet.c !inet_ifa_match(nla_get_in_addr(tb[IFA_ADDRESS]), ifa))) ifa 684 net/ipv4/devinet.c if (ipv4_is_multicast(ifa->ifa_address)) ifa 685 net/ipv4/devinet.c ip_mc_autojoin_config(net, false, ifa); ifa 700 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 711 net/ipv4/devinet.c hlist_for_each_entry_rcu(ifa, &inet_addr_lst[i], hash) { ifa 714 net/ipv4/devinet.c if (ifa->ifa_flags & IFA_F_PERMANENT) ifa 718 net/ipv4/devinet.c age = (now - ifa->ifa_tstamp + ifa 721 net/ipv4/devinet.c if (ifa->ifa_valid_lft != INFINITY_LIFE_TIME && ifa 722 net/ipv4/devinet.c age >= ifa->ifa_valid_lft) { ifa 724 net/ipv4/devinet.c } else if (ifa->ifa_preferred_lft == ifa 727 net/ipv4/devinet.c } else if (age >= ifa->ifa_preferred_lft) { ifa 728 net/ipv4/devinet.c if (time_before(ifa->ifa_tstamp + ifa 729 net/ipv4/devinet.c ifa->ifa_valid_lft * HZ, next)) ifa 730 net/ipv4/devinet.c next = ifa->ifa_tstamp + ifa 731 net/ipv4/devinet.c ifa->ifa_valid_lft * HZ; ifa 733 net/ipv4/devinet.c if (!(ifa->ifa_flags & IFA_F_DEPRECATED)) ifa 735 net/ipv4/devinet.c } else if (time_before(ifa->ifa_tstamp + ifa 736 net/ipv4/devinet.c ifa->ifa_preferred_lft * HZ, ifa 738 net/ipv4/devinet.c next = ifa->ifa_tstamp + ifa 739 net/ipv4/devinet.c ifa->ifa_preferred_lft * HZ; ifa 746 net/ipv4/devinet.c hlist_for_each_entry_safe(ifa, n, &inet_addr_lst[i], hash) { ifa 749 net/ipv4/devinet.c if (ifa->ifa_flags & IFA_F_PERMANENT) ifa 753 net/ipv4/devinet.c age = (now - ifa->ifa_tstamp + ifa 756 net/ipv4/devinet.c if (ifa->ifa_valid_lft != INFINITY_LIFE_TIME && ifa 757 net/ipv4/devinet.c age >= ifa->ifa_valid_lft) { ifa 761 net/ipv4/devinet.c ifap = &ifa->ifa_dev->ifa_list; ifa 764 net/ipv4/devinet.c if (tmp == ifa) { ifa 765 net/ipv4/devinet.c inet_del_ifa(ifa->ifa_dev, ifa 772 net/ipv4/devinet.c } else if (ifa->ifa_preferred_lft != ifa 774 net/ipv4/devinet.c age >= ifa->ifa_preferred_lft && ifa 775 net/ipv4/devinet.c !(ifa->ifa_flags & IFA_F_DEPRECATED)) { ifa 776 net/ipv4/devinet.c ifa->ifa_flags |= IFA_F_DEPRECATED; ifa 777 net/ipv4/devinet.c rtmsg_ifa(RTM_NEWADDR, ifa, NULL, 0); ifa 799 net/ipv4/devinet.c static void set_ifa_lifetime(struct in_ifaddr *ifa, __u32 valid_lft, ifa 804 net/ipv4/devinet.c ifa->ifa_flags &= ~(IFA_F_PERMANENT | IFA_F_DEPRECATED); ifa 808 net/ipv4/devinet.c ifa->ifa_valid_lft = timeout; ifa 810 net/ipv4/devinet.c ifa->ifa_flags |= IFA_F_PERMANENT; ifa 815 net/ipv4/devinet.c ifa->ifa_flags |= IFA_F_DEPRECATED; ifa 816 net/ipv4/devinet.c ifa->ifa_preferred_lft = timeout; ifa 818 net/ipv4/devinet.c ifa->ifa_tstamp = jiffies; ifa 819 net/ipv4/devinet.c if (!ifa->ifa_cstamp) ifa 820 net/ipv4/devinet.c ifa->ifa_cstamp = ifa->ifa_tstamp; ifa 828 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 854 net/ipv4/devinet.c ifa = inet_alloc_ifa(); ifa 855 net/ipv4/devinet.c if (!ifa) ifa 869 net/ipv4/devinet.c INIT_HLIST_NODE(&ifa->hash); ifa 870 net/ipv4/devinet.c ifa->ifa_prefixlen = ifm->ifa_prefixlen; ifa 871 net/ipv4/devinet.c ifa->ifa_mask = inet_make_mask(ifm->ifa_prefixlen); ifa 872 net/ipv4/devinet.c ifa->ifa_flags = tb[IFA_FLAGS] ? nla_get_u32(tb[IFA_FLAGS]) : ifa 874 net/ipv4/devinet.c ifa->ifa_scope = ifm->ifa_scope; ifa 875 net/ipv4/devinet.c ifa->ifa_dev = in_dev; ifa 877 net/ipv4/devinet.c ifa->ifa_local = nla_get_in_addr(tb[IFA_LOCAL]); ifa 878 net/ipv4/devinet.c ifa->ifa_address = nla_get_in_addr(tb[IFA_ADDRESS]); ifa 881 net/ipv4/devinet.c ifa->ifa_broadcast = nla_get_in_addr(tb[IFA_BROADCAST]); ifa 884 net/ipv4/devinet.c nla_strlcpy(ifa->ifa_label, tb[IFA_LABEL], IFNAMSIZ); ifa 886 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); ifa 889 net/ipv4/devinet.c ifa->ifa_rt_priority = nla_get_u32(tb[IFA_RT_PRIORITY]); ifa 903 net/ipv4/devinet.c return ifa; ifa 906 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 911 net/ipv4/devinet.c static struct in_ifaddr *find_matching_ifa(struct in_ifaddr *ifa) ifa 913 net/ipv4/devinet.c struct in_device *in_dev = ifa->ifa_dev; ifa 916 net/ipv4/devinet.c if (!ifa->ifa_local) ifa 920 net/ipv4/devinet.c if (ifa1->ifa_mask == ifa->ifa_mask && ifa 921 net/ipv4/devinet.c inet_ifa_match(ifa1->ifa_address, ifa) && ifa 922 net/ipv4/devinet.c ifa1->ifa_local == ifa->ifa_local) ifa 932 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 939 net/ipv4/devinet.c ifa = rtm_to_ifaddr(net, nlh, &valid_lft, &prefered_lft, extack); ifa 940 net/ipv4/devinet.c if (IS_ERR(ifa)) ifa 941 net/ipv4/devinet.c return PTR_ERR(ifa); ifa 943 net/ipv4/devinet.c ifa_existing = find_matching_ifa(ifa); ifa 948 net/ipv4/devinet.c set_ifa_lifetime(ifa, valid_lft, prefered_lft); ifa 949 net/ipv4/devinet.c if (ifa->ifa_flags & IFA_F_MCAUTOJOIN) { ifa 950 net/ipv4/devinet.c int ret = ip_mc_autojoin_config(net, true, ifa); ifa 953 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 957 net/ipv4/devinet.c return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid, ifa 960 net/ipv4/devinet.c u32 new_metric = ifa->ifa_rt_priority; ifa 962 net/ipv4/devinet.c inet_free_ifa(ifa); ifa 967 net/ipv4/devinet.c ifa = ifa_existing; ifa 969 net/ipv4/devinet.c if (ifa->ifa_rt_priority != new_metric) { ifa 970 net/ipv4/devinet.c fib_modify_prefix_metric(ifa, new_metric); ifa 971 net/ipv4/devinet.c ifa->ifa_rt_priority = new_metric; ifa 974 net/ipv4/devinet.c set_ifa_lifetime(ifa, valid_lft, prefered_lft); ifa 978 net/ipv4/devinet.c rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); ifa 1015 net/ipv4/devinet.c struct in_ifaddr *ifa = NULL; ifa 1087 net/ipv4/devinet.c (ifa = rtnl_dereference(*ifap)) != NULL; ifa 1088 net/ipv4/devinet.c ifap = &ifa->ifa_next) { ifa 1089 net/ipv4/devinet.c if (!strcmp(ifr->ifr_name, ifa->ifa_label) && ifa 1091 net/ipv4/devinet.c ifa->ifa_local) { ifa 1099 net/ipv4/devinet.c if (!ifa) { ifa 1101 net/ipv4/devinet.c (ifa = rtnl_dereference(*ifap)) != NULL; ifa 1102 net/ipv4/devinet.c ifap = &ifa->ifa_next) ifa 1103 net/ipv4/devinet.c if (!strcmp(ifr->ifr_name, ifa->ifa_label)) ifa 1109 net/ipv4/devinet.c if (!ifa && cmd != SIOCSIFADDR && cmd != SIOCSIFFLAGS) ifa 1115 net/ipv4/devinet.c sin->sin_addr.s_addr = ifa->ifa_local; ifa 1120 net/ipv4/devinet.c sin->sin_addr.s_addr = ifa->ifa_broadcast; ifa 1125 net/ipv4/devinet.c sin->sin_addr.s_addr = ifa->ifa_address; ifa 1130 net/ipv4/devinet.c sin->sin_addr.s_addr = ifa->ifa_mask; ifa 1136 net/ipv4/devinet.c if (!ifa) ifa 1151 net/ipv4/devinet.c if (!ifa) { ifa 1153 net/ipv4/devinet.c ifa = inet_alloc_ifa(); ifa 1154 net/ipv4/devinet.c if (!ifa) ifa 1156 net/ipv4/devinet.c INIT_HLIST_NODE(&ifa->hash); ifa 1158 net/ipv4/devinet.c memcpy(ifa->ifa_label, ifr->ifr_name, IFNAMSIZ); ifa 1160 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); ifa 1163 net/ipv4/devinet.c if (ifa->ifa_local == sin->sin_addr.s_addr) ifa 1166 net/ipv4/devinet.c ifa->ifa_broadcast = 0; ifa 1167 net/ipv4/devinet.c ifa->ifa_scope = 0; ifa 1170 net/ipv4/devinet.c ifa->ifa_address = ifa->ifa_local = sin->sin_addr.s_addr; ifa 1173 net/ipv4/devinet.c ifa->ifa_prefixlen = inet_abc_len(ifa->ifa_address); ifa 1174 net/ipv4/devinet.c ifa->ifa_mask = inet_make_mask(ifa->ifa_prefixlen); ifa 1176 net/ipv4/devinet.c ifa->ifa_prefixlen < 31) ifa 1177 net/ipv4/devinet.c ifa->ifa_broadcast = ifa->ifa_address | ifa 1178 net/ipv4/devinet.c ~ifa->ifa_mask; ifa 1180 net/ipv4/devinet.c ifa->ifa_prefixlen = 32; ifa 1181 net/ipv4/devinet.c ifa->ifa_mask = inet_make_mask(32); ifa 1183 net/ipv4/devinet.c set_ifa_lifetime(ifa, INFINITY_LIFE_TIME, INFINITY_LIFE_TIME); ifa 1184 net/ipv4/devinet.c ret = inet_set_ifa(dev, ifa); ifa 1189 net/ipv4/devinet.c if (ifa->ifa_broadcast != sin->sin_addr.s_addr) { ifa 1191 net/ipv4/devinet.c ifa->ifa_broadcast = sin->sin_addr.s_addr; ifa 1192 net/ipv4/devinet.c inet_insert_ifa(ifa); ifa 1198 net/ipv4/devinet.c if (ifa->ifa_address == sin->sin_addr.s_addr) ifa 1205 net/ipv4/devinet.c ifa->ifa_address = sin->sin_addr.s_addr; ifa 1206 net/ipv4/devinet.c inet_insert_ifa(ifa); ifa 1218 net/ipv4/devinet.c if (ifa->ifa_mask != sin->sin_addr.s_addr) { ifa 1219 net/ipv4/devinet.c __be32 old_mask = ifa->ifa_mask; ifa 1221 net/ipv4/devinet.c ifa->ifa_mask = sin->sin_addr.s_addr; ifa 1222 net/ipv4/devinet.c ifa->ifa_prefixlen = inet_mask_len(ifa->ifa_mask); ifa 1231 net/ipv4/devinet.c (ifa->ifa_prefixlen < 31) && ifa 1232 net/ipv4/devinet.c (ifa->ifa_broadcast == ifa 1233 net/ipv4/devinet.c (ifa->ifa_local|~old_mask))) { ifa 1234 net/ipv4/devinet.c ifa->ifa_broadcast = (ifa->ifa_local | ifa 1237 net/ipv4/devinet.c inet_insert_ifa(ifa); ifa 1250 net/ipv4/devinet.c const struct in_ifaddr *ifa; ifa 1260 net/ipv4/devinet.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 1268 net/ipv4/devinet.c strcpy(ifr.ifr_name, ifa->ifa_label); ifa 1272 net/ipv4/devinet.c ifa->ifa_local; ifa 1288 net/ipv4/devinet.c const struct in_ifaddr *ifa; ifa 1290 net/ipv4/devinet.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 1291 net/ipv4/devinet.c if (ifa->ifa_flags & IFA_F_SECONDARY) ifa 1293 net/ipv4/devinet.c if (ifa->ifa_scope != RT_SCOPE_LINK && ifa 1294 net/ipv4/devinet.c ifa->ifa_scope <= scope) ifa 1295 net/ipv4/devinet.c return ifa->ifa_local; ifa 1303 net/ipv4/devinet.c const struct in_ifaddr *ifa; ifa 1318 net/ipv4/devinet.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 1319 net/ipv4/devinet.c if (ifa->ifa_flags & IFA_F_SECONDARY) ifa 1321 net/ipv4/devinet.c if (min(ifa->ifa_scope, localnet_scope) > scope) ifa 1323 net/ipv4/devinet.c if (!dst || inet_ifa_match(dst, ifa)) { ifa 1324 net/ipv4/devinet.c addr = ifa->ifa_local; ifa 1328 net/ipv4/devinet.c addr = ifa->ifa_local; ifa 1375 net/ipv4/devinet.c const struct in_ifaddr *ifa; ifa 1382 net/ipv4/devinet.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 1383 net/ipv4/devinet.c unsigned char min_scope = min(ifa->ifa_scope, localnet_scope); ifa 1386 net/ipv4/devinet.c (local == ifa->ifa_local || !local) && ifa 1388 net/ipv4/devinet.c addr = ifa->ifa_local; ifa 1393 net/ipv4/devinet.c same = (!local || inet_ifa_match(local, ifa)) && ifa 1394 net/ipv4/devinet.c (!dst || inet_ifa_match(dst, ifa)); ifa 1399 net/ipv4/devinet.c if (inet_ifa_match(addr, ifa)) ifa 1403 net/ipv4/devinet.c addr = ifa->ifa_local; ifa 1481 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 1484 net/ipv4/devinet.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 1487 net/ipv4/devinet.c memcpy(old, ifa->ifa_label, IFNAMSIZ); ifa 1488 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); ifa 1497 net/ipv4/devinet.c strcat(ifa->ifa_label, dot); ifa 1499 net/ipv4/devinet.c strcpy(ifa->ifa_label + (IFNAMSIZ - strlen(dot) - 1), dot); ifa 1501 net/ipv4/devinet.c rtmsg_ifa(RTM_NEWADDR, ifa, NULL, 0); ifa 1509 net/ipv4/devinet.c const struct in_ifaddr *ifa; ifa 1511 net/ipv4/devinet.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 1513 net/ipv4/devinet.c ifa->ifa_local, dev, ifa 1514 net/ipv4/devinet.c ifa->ifa_local, NULL, ifa 1555 net/ipv4/devinet.c struct in_ifaddr *ifa = inet_alloc_ifa(); ifa 1557 net/ipv4/devinet.c if (ifa) { ifa 1558 net/ipv4/devinet.c INIT_HLIST_NODE(&ifa->hash); ifa 1559 net/ipv4/devinet.c ifa->ifa_local = ifa 1560 net/ipv4/devinet.c ifa->ifa_address = htonl(INADDR_LOOPBACK); ifa 1561 net/ipv4/devinet.c ifa->ifa_prefixlen = 8; ifa 1562 net/ipv4/devinet.c ifa->ifa_mask = inet_make_mask(8); ifa 1564 net/ipv4/devinet.c ifa->ifa_dev = in_dev; ifa 1565 net/ipv4/devinet.c ifa->ifa_scope = RT_SCOPE_HOST; ifa 1566 net/ipv4/devinet.c memcpy(ifa->ifa_label, dev->name, IFNAMSIZ); ifa 1567 net/ipv4/devinet.c set_ifa_lifetime(ifa, INFINITY_LIFE_TIME, ifa 1571 net/ipv4/devinet.c inet_insert_ifa(ifa); ifa 1649 net/ipv4/devinet.c static int inet_fill_ifaddr(struct sk_buff *skb, struct in_ifaddr *ifa, ifa 1663 net/ipv4/devinet.c ifm->ifa_prefixlen = ifa->ifa_prefixlen; ifa 1664 net/ipv4/devinet.c ifm->ifa_flags = ifa->ifa_flags; ifa 1665 net/ipv4/devinet.c ifm->ifa_scope = ifa->ifa_scope; ifa 1666 net/ipv4/devinet.c ifm->ifa_index = ifa->ifa_dev->dev->ifindex; ifa 1673 net/ipv4/devinet.c preferred = ifa->ifa_preferred_lft; ifa 1674 net/ipv4/devinet.c valid = ifa->ifa_valid_lft; ifa 1676 net/ipv4/devinet.c long tval = (jiffies - ifa->ifa_tstamp) / HZ; ifa 1693 net/ipv4/devinet.c if ((ifa->ifa_address && ifa 1694 net/ipv4/devinet.c nla_put_in_addr(skb, IFA_ADDRESS, ifa->ifa_address)) || ifa 1695 net/ipv4/devinet.c (ifa->ifa_local && ifa 1696 net/ipv4/devinet.c nla_put_in_addr(skb, IFA_LOCAL, ifa->ifa_local)) || ifa 1697 net/ipv4/devinet.c (ifa->ifa_broadcast && ifa 1698 net/ipv4/devinet.c nla_put_in_addr(skb, IFA_BROADCAST, ifa->ifa_broadcast)) || ifa 1699 net/ipv4/devinet.c (ifa->ifa_label[0] && ifa 1700 net/ipv4/devinet.c nla_put_string(skb, IFA_LABEL, ifa->ifa_label)) || ifa 1701 net/ipv4/devinet.c nla_put_u32(skb, IFA_FLAGS, ifa->ifa_flags) || ifa 1702 net/ipv4/devinet.c (ifa->ifa_rt_priority && ifa 1703 net/ipv4/devinet.c nla_put_u32(skb, IFA_RT_PRIORITY, ifa->ifa_rt_priority)) || ifa 1704 net/ipv4/devinet.c put_cacheinfo(skb, ifa->ifa_cstamp, ifa->ifa_tstamp, ifa 1777 net/ipv4/devinet.c struct in_ifaddr *ifa; ifa 1781 net/ipv4/devinet.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 1786 net/ipv4/devinet.c err = inet_fill_ifaddr(skb, ifa, fillargs); ifa 1885 net/ipv4/devinet.c static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, ifa 1899 net/ipv4/devinet.c net = dev_net(ifa->ifa_dev->dev); ifa 1904 net/ipv4/devinet.c err = inet_fill_ifaddr(skb, ifa, &fillargs); ifa 549 net/ipv4/fib_frontend.c const struct in_ifaddr *ifa; ifa 559 net/ipv4/fib_frontend.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 560 net/ipv4/fib_frontend.c if (strcmp(ifa->ifa_label, devname) == 0) ifa 565 net/ipv4/fib_frontend.c if (!ifa) ifa 567 net/ipv4/fib_frontend.c cfg->fc_prefsrc = ifa->ifa_local; ifa 1060 net/ipv4/fib_frontend.c struct in_ifaddr *ifa, u32 rt_priority) ifa 1062 net/ipv4/fib_frontend.c struct net *net = dev_net(ifa->ifa_dev->dev); ifa 1063 net/ipv4/fib_frontend.c u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); ifa 1071 net/ipv4/fib_frontend.c .fc_prefsrc = ifa->ifa_local, ifa 1072 net/ipv4/fib_frontend.c .fc_oif = ifa->ifa_dev->dev->ifindex, ifa 1099 net/ipv4/fib_frontend.c void fib_add_ifaddr(struct in_ifaddr *ifa) ifa 1101 net/ipv4/fib_frontend.c struct in_device *in_dev = ifa->ifa_dev; ifa 1103 net/ipv4/fib_frontend.c struct in_ifaddr *prim = ifa; ifa 1104 net/ipv4/fib_frontend.c __be32 mask = ifa->ifa_mask; ifa 1105 net/ipv4/fib_frontend.c __be32 addr = ifa->ifa_local; ifa 1106 net/ipv4/fib_frontend.c __be32 prefix = ifa->ifa_address & mask; ifa 1108 net/ipv4/fib_frontend.c if (ifa->ifa_flags & IFA_F_SECONDARY) { ifa 1122 net/ipv4/fib_frontend.c if (ifa->ifa_broadcast && ifa->ifa_broadcast != htonl(0xFFFFFFFF)) ifa 1123 net/ipv4/fib_frontend.c fib_magic(RTM_NEWROUTE, RTN_BROADCAST, ifa->ifa_broadcast, 32, ifa 1126 net/ipv4/fib_frontend.c if (!ipv4_is_zeronet(prefix) && !(ifa->ifa_flags & IFA_F_SECONDARY) && ifa 1127 net/ipv4/fib_frontend.c (prefix != addr || ifa->ifa_prefixlen < 32)) { ifa 1128 net/ipv4/fib_frontend.c if (!(ifa->ifa_flags & IFA_F_NOPREFIXROUTE)) ifa 1131 net/ipv4/fib_frontend.c prefix, ifa->ifa_prefixlen, prim, ifa 1132 net/ipv4/fib_frontend.c ifa->ifa_rt_priority); ifa 1135 net/ipv4/fib_frontend.c if (ifa->ifa_prefixlen < 31) { ifa 1144 net/ipv4/fib_frontend.c void fib_modify_prefix_metric(struct in_ifaddr *ifa, u32 new_metric) ifa 1146 net/ipv4/fib_frontend.c __be32 prefix = ifa->ifa_address & ifa->ifa_mask; ifa 1147 net/ipv4/fib_frontend.c struct in_device *in_dev = ifa->ifa_dev; ifa 1151 net/ipv4/fib_frontend.c ifa->ifa_flags & (IFA_F_SECONDARY | IFA_F_NOPREFIXROUTE) || ifa 1153 net/ipv4/fib_frontend.c (prefix == ifa->ifa_local && ifa->ifa_prefixlen == 32)) ifa 1159 net/ipv4/fib_frontend.c prefix, ifa->ifa_prefixlen, ifa, new_metric); ifa 1164 net/ipv4/fib_frontend.c prefix, ifa->ifa_prefixlen, ifa, ifa->ifa_rt_priority); ifa 1172 net/ipv4/fib_frontend.c void fib_del_ifaddr(struct in_ifaddr *ifa, struct in_ifaddr *iprim) ifa 1174 net/ipv4/fib_frontend.c struct in_device *in_dev = ifa->ifa_dev; ifa 1177 net/ipv4/fib_frontend.c struct in_ifaddr *prim = ifa, *prim1 = NULL; ifa 1178 net/ipv4/fib_frontend.c __be32 brd = ifa->ifa_address | ~ifa->ifa_mask; ifa 1179 net/ipv4/fib_frontend.c __be32 any = ifa->ifa_address & ifa->ifa_mask; ifa 1189 net/ipv4/fib_frontend.c if (ifa->ifa_flags & IFA_F_SECONDARY) { ifa 1190 net/ipv4/fib_frontend.c prim = inet_ifa_byprefix(in_dev, any, ifa->ifa_mask); ifa 1204 net/ipv4/fib_frontend.c (any != ifa->ifa_local || ifa->ifa_prefixlen < 32)) { ifa 1205 net/ipv4/fib_frontend.c if (!(ifa->ifa_flags & IFA_F_NOPREFIXROUTE)) ifa 1208 net/ipv4/fib_frontend.c any, ifa->ifa_prefixlen, prim, 0); ifa 1222 net/ipv4/fib_frontend.c if (ifa1 == ifa) { ifa 1265 net/ipv4/fib_frontend.c if (ifa->ifa_local == ifa1->ifa_local) ifa 1267 net/ipv4/fib_frontend.c if (ifa->ifa_broadcast == ifa1->ifa_broadcast) ifa 1279 net/ipv4/fib_frontend.c if (ifa->ifa_broadcast == brd1 || ifa 1280 net/ipv4/fib_frontend.c ifa->ifa_broadcast == any1) ifa 1293 net/ipv4/fib_frontend.c fib_magic(RTM_DELROUTE, RTN_BROADCAST, ifa->ifa_broadcast, 32, ifa 1295 net/ipv4/fib_frontend.c if (subnet && ifa->ifa_prefixlen < 31) { ifa 1306 net/ipv4/fib_frontend.c fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 32, prim, 0); ifa 1310 net/ipv4/fib_frontend.c ifa->ifa_local); ifa 1318 net/ipv4/fib_frontend.c if (fib_sync_down_addr(dev, ifa->ifa_local)) ifa 1423 net/ipv4/fib_frontend.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 1424 net/ipv4/fib_frontend.c struct net_device *dev = ifa->ifa_dev->dev; ifa 1429 net/ipv4/fib_frontend.c fib_add_ifaddr(ifa); ifa 1437 net/ipv4/fib_frontend.c fib_del_ifaddr(ifa, NULL); ifa 1439 net/ipv4/fib_frontend.c if (!ifa->ifa_dev->ifa_list) { ifa 1459 net/ipv4/fib_frontend.c struct in_ifaddr *ifa; ifa 1474 net/ipv4/fib_frontend.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 1475 net/ipv4/fib_frontend.c fib_add_ifaddr(ifa); ifa 335 net/ipv4/igmp.c const struct in_ifaddr *ifa; ifa 340 net/ipv4/igmp.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 341 net/ipv4/igmp.c if (fl4->saddr == ifa->ifa_local) ifa 52 net/ipv4/netfilter/nf_tproxy_ipv4.c const struct in_ifaddr *ifa; ifa 62 net/ipv4/netfilter/nf_tproxy_ipv4.c in_dev_for_each_ifa_rcu(ifa, indev) { ifa 63 net/ipv4/netfilter/nf_tproxy_ipv4.c if (ifa->ifa_flags & IFA_F_SECONDARY) ifa 66 net/ipv4/netfilter/nf_tproxy_ipv4.c laddr = ifa->ifa_local; ifa 181 net/ipv6/addrconf.c static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); ifa 182 net/ipv6/addrconf.c static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); ifa 791 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 810 net/ipv6/addrconf.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 811 net/ipv6/addrconf.c if (ifa->flags&IFA_F_TENTATIVE) ifa 814 net/ipv6/addrconf.c addrconf_join_anycast(ifa); ifa 816 net/ipv6/addrconf.c addrconf_leave_anycast(ifa); ifa 982 net/ipv6/addrconf.c struct inet6_ifaddr *ifa ifa 984 net/ipv6/addrconf.c if (ifp_scope >= ipv6_addr_src_scope(&ifa->addr)) ifa 1014 net/ipv6/addrconf.c static int ipv6_add_addr_hash(struct net_device *dev, struct inet6_ifaddr *ifa) ifa 1016 net/ipv6/addrconf.c unsigned int hash = inet6_addr_hash(dev_net(dev), &ifa->addr); ifa 1022 net/ipv6/addrconf.c if (ipv6_chk_same_addr(dev_net(dev), &ifa->addr, dev, hash)) { ifa 1026 net/ipv6/addrconf.c hlist_add_head_rcu(&ifa->addr_lst, &inet6_addr_lst[hash]); ifa 1043 net/ipv6/addrconf.c struct inet6_ifaddr *ifa = NULL; ifa 1081 net/ipv6/addrconf.c ifa = kzalloc(sizeof(*ifa), gfp_flags); ifa 1082 net/ipv6/addrconf.c if (!ifa) { ifa 1100 net/ipv6/addrconf.c ifa->addr = *cfg->pfx; ifa 1102 net/ipv6/addrconf.c ifa->peer_addr = *cfg->peer_pfx; ifa 1104 net/ipv6/addrconf.c spin_lock_init(&ifa->lock); ifa 1105 net/ipv6/addrconf.c INIT_DELAYED_WORK(&ifa->dad_work, addrconf_dad_work); ifa 1106 net/ipv6/addrconf.c INIT_HLIST_NODE(&ifa->addr_lst); ifa 1107 net/ipv6/addrconf.c ifa->scope = cfg->scope; ifa 1108 net/ipv6/addrconf.c ifa->prefix_len = cfg->plen; ifa 1109 net/ipv6/addrconf.c ifa->rt_priority = cfg->rt_priority; ifa 1110 net/ipv6/addrconf.c ifa->flags = cfg->ifa_flags; ifa 1113 net/ipv6/addrconf.c ifa->flags |= IFA_F_TENTATIVE; ifa 1114 net/ipv6/addrconf.c ifa->valid_lft = cfg->valid_lft; ifa 1115 net/ipv6/addrconf.c ifa->prefered_lft = cfg->preferred_lft; ifa 1116 net/ipv6/addrconf.c ifa->cstamp = ifa->tstamp = jiffies; ifa 1117 net/ipv6/addrconf.c ifa->tokenized = false; ifa 1119 net/ipv6/addrconf.c ifa->rt = f6i; ifa 1121 net/ipv6/addrconf.c ifa->idev = idev; ifa 1125 net/ipv6/addrconf.c refcount_set(&ifa->refcnt, 1); ifa 1129 net/ipv6/addrconf.c err = ipv6_add_addr_hash(idev->dev, ifa); ifa 1138 net/ipv6/addrconf.c ipv6_link_dev_addr(idev, ifa); ifa 1140 net/ipv6/addrconf.c if (ifa->flags&IFA_F_TEMPORARY) { ifa 1141 net/ipv6/addrconf.c list_add(&ifa->tmp_list, &idev->tempaddr_list); ifa 1142 net/ipv6/addrconf.c in6_ifa_hold(ifa); ifa 1145 net/ipv6/addrconf.c in6_ifa_hold(ifa); ifa 1150 net/ipv6/addrconf.c inet6addr_notifier_call_chain(NETDEV_UP, ifa); ifa 1155 net/ipv6/addrconf.c if (ifa) { ifa 1156 net/ipv6/addrconf.c if (ifa->idev) ifa 1157 net/ipv6/addrconf.c in6_dev_put(ifa->idev); ifa 1158 net/ipv6/addrconf.c kfree(ifa); ifa 1160 net/ipv6/addrconf.c ifa = ERR_PTR(err); ifa 1163 net/ipv6/addrconf.c return ifa; ifa 1193 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 1200 net/ipv6/addrconf.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 1201 net/ipv6/addrconf.c if (ifa == ifp) ifa 1203 net/ipv6/addrconf.c if (ifa->prefix_len != ifp->prefix_len || ifa 1204 net/ipv6/addrconf.c !ipv6_prefix_equal(&ifa->addr, &ifp->addr, ifa 1207 net/ipv6/addrconf.c if (ifa->flags & (IFA_F_PERMANENT | IFA_F_NOPREFIXROUTE)) ifa 1212 net/ipv6/addrconf.c spin_lock(&ifa->lock); ifa 1214 net/ipv6/addrconf.c lifetime = addrconf_timeout_fixup(ifa->valid_lft, HZ); ifa 1220 net/ipv6/addrconf.c if (time_before(*expires, ifa->tstamp + lifetime * HZ)) ifa 1221 net/ipv6/addrconf.c *expires = ifa->tstamp + lifetime * HZ; ifa 1222 net/ipv6/addrconf.c spin_unlock(&ifa->lock); ifa 1461 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 1538 net/ipv6/addrconf.c ret = !!score->ifa; ifa 1542 net/ipv6/addrconf.c ret = ipv6_addr_equal(&score->ifa->addr, dst->addr); ifa 1578 net/ipv6/addrconf.c if (!ipv6_use_optimistic_addr(net, score->ifa->idev)) ifa 1581 net/ipv6/addrconf.c !(score->ifa->flags & avoid); ifa 1589 net/ipv6/addrconf.c ret = !(score->ifa->flags & IFA_F_HOMEADDRESS) ^ prefhome; ifa 1596 net/ipv6/addrconf.c dst->ifindex == score->ifa->idev->dev->ifindex); ifa 1601 net/ipv6/addrconf.c &score->ifa->addr, score->addr_type, ifa 1602 net/ipv6/addrconf.c score->ifa->idev->dev->ifindex) == dst->label; ifa 1611 net/ipv6/addrconf.c score->ifa->idev->cnf.use_tempaddr >= 2; ifa 1612 net/ipv6/addrconf.c ret = (!(score->ifa->flags & IFA_F_TEMPORARY)) ^ preftmp; ifa 1619 net/ipv6/addrconf.c ret = !(ipv6_addr_orchid(&score->ifa->addr) ^ ifa 1624 net/ipv6/addrconf.c ret = ipv6_addr_diff(&score->ifa->addr, dst->addr); ifa 1625 net/ipv6/addrconf.c if (ret > score->ifa->prefix_len) ifa 1626 net/ipv6/addrconf.c ret = score->ifa->prefix_len; ifa 1634 net/ipv6/addrconf.c ret = !(score->ifa->flags & IFA_F_OPTIMISTIC); ifa 1656 net/ipv6/addrconf.c list_for_each_entry_rcu(score->ifa, &idev->addr_list, if_list) { ifa 1669 net/ipv6/addrconf.c if ((score->ifa->flags & IFA_F_TENTATIVE) && ifa 1670 net/ipv6/addrconf.c (!(score->ifa->flags & IFA_F_OPTIMISTIC))) ifa 1673 net/ipv6/addrconf.c score->addr_type = __ipv6_addr_type(&score->ifa->addr); ifa 1710 net/ipv6/addrconf.c score->ifa = hiscore->ifa; ifa 1763 net/ipv6/addrconf.c scores[hiscore_idx].ifa = NULL; ifa 1811 net/ipv6/addrconf.c if (scores[hiscore_idx].ifa) ifa 1830 net/ipv6/addrconf.c if (!hiscore->ifa) ifa 1833 net/ipv6/addrconf.c *saddr = hiscore->ifa->addr; ifa 1954 net/ipv6/addrconf.c const struct inet6_ifaddr *ifa; ifa 1961 net/ipv6/addrconf.c list_for_each_entry_rcu(ifa, &idev->addr_list, if_list) { ifa 1962 net/ipv6/addrconf.c ret = ipv6_prefix_equal(addr, &ifa->addr, prefix_len); ifa 1975 net/ipv6/addrconf.c const struct inet6_ifaddr *ifa; ifa 1983 net/ipv6/addrconf.c list_for_each_entry_rcu(ifa, &idev->addr_list, if_list) { ifa 1984 net/ipv6/addrconf.c onlink = ipv6_prefix_equal(addr, &ifa->addr, ifa 1985 net/ipv6/addrconf.c ifa->prefix_len); ifa 3132 net/ipv6/addrconf.c struct in_ifaddr *ifa; ifa 3135 net/ipv6/addrconf.c in_dev_for_each_ifa_rtnl(ifa, in_dev) { ifa 3136 net/ipv6/addrconf.c addr.s6_addr32[3] = ifa->ifa_local; ifa 3138 net/ipv6/addrconf.c if (ifa->ifa_scope == RT_SCOPE_LINK) ifa 3140 net/ipv6/addrconf.c if (ifa->ifa_scope >= RT_SCOPE_HOST) { ifa 3712 net/ipv6/addrconf.c struct inet6_ifaddr *ifa, *tmp; ifa 3758 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifa, h, addr_lst) { ifa 3759 net/ipv6/addrconf.c if (ifa->idev == idev) { ifa 3760 net/ipv6/addrconf.c addrconf_del_dad_work(ifa); ifa 3765 net/ipv6/addrconf.c !(ifa->flags & IFA_F_PERMANENT) || ifa 3766 net/ipv6/addrconf.c addr_is_local(&ifa->addr)) { ifa 3767 net/ipv6/addrconf.c hlist_del_init_rcu(&ifa->addr_lst); ifa 3785 net/ipv6/addrconf.c ifa = list_first_entry(&idev->tempaddr_list, ifa 3787 net/ipv6/addrconf.c list_del(&ifa->tmp_list); ifa 3789 net/ipv6/addrconf.c spin_lock_bh(&ifa->lock); ifa 3791 net/ipv6/addrconf.c if (ifa->ifpub) { ifa 3792 net/ipv6/addrconf.c in6_ifa_put(ifa->ifpub); ifa 3793 net/ipv6/addrconf.c ifa->ifpub = NULL; ifa 3795 net/ipv6/addrconf.c spin_unlock_bh(&ifa->lock); ifa 3796 net/ipv6/addrconf.c in6_ifa_put(ifa); ifa 3800 net/ipv6/addrconf.c list_for_each_entry_safe(ifa, tmp, &idev->addr_list, if_list) { ifa 3804 net/ipv6/addrconf.c addrconf_del_dad_work(ifa); ifa 3806 net/ipv6/addrconf.c keep = keep_addr && (ifa->flags & IFA_F_PERMANENT) && ifa 3807 net/ipv6/addrconf.c !addr_is_local(&ifa->addr); ifa 3810 net/ipv6/addrconf.c spin_lock_bh(&ifa->lock); ifa 3815 net/ipv6/addrconf.c ifa->state = INET6_IFADDR_STATE_PREDAD; ifa 3816 net/ipv6/addrconf.c if (!(ifa->flags & IFA_F_NODAD)) ifa 3817 net/ipv6/addrconf.c ifa->flags |= IFA_F_TENTATIVE; ifa 3819 net/ipv6/addrconf.c rt = ifa->rt; ifa 3820 net/ipv6/addrconf.c ifa->rt = NULL; ifa 3822 net/ipv6/addrconf.c state = ifa->state; ifa 3823 net/ipv6/addrconf.c ifa->state = INET6_IFADDR_STATE_DEAD; ifa 3826 net/ipv6/addrconf.c spin_unlock_bh(&ifa->lock); ifa 3832 net/ipv6/addrconf.c __ipv6_ifa_notify(RTM_DELADDR, ifa); ifa 3833 net/ipv6/addrconf.c inet6addr_notifier_call_chain(NETDEV_DOWN, ifa); ifa 3836 net/ipv6/addrconf.c addrconf_leave_anycast(ifa); ifa 3837 net/ipv6/addrconf.c addrconf_leave_solict(ifa->idev, &ifa->addr); ifa 3842 net/ipv6/addrconf.c list_del_rcu(&ifa->if_list); ifa 3843 net/ipv6/addrconf.c in6_ifa_put(ifa); ifa 4258 net/ipv6/addrconf.c struct inet6_ifaddr *ifa = NULL; ifa 4268 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifa, &inet6_addr_lst[state->bucket], ifa 4270 net/ipv6/addrconf.c if (!net_eq(dev_net(ifa->idev->dev), net)) ifa 4277 net/ipv6/addrconf.c return ifa; ifa 4288 net/ipv6/addrconf.c struct inet6_ifaddr *ifa) ifa 4293 net/ipv6/addrconf.c hlist_for_each_entry_continue_rcu(ifa, addr_lst) { ifa 4294 net/ipv6/addrconf.c if (!net_eq(dev_net(ifa->idev->dev), net)) ifa 4297 net/ipv6/addrconf.c return ifa; ifa 4302 net/ipv6/addrconf.c hlist_for_each_entry_rcu(ifa, ifa 4304 net/ipv6/addrconf.c if (!net_eq(dev_net(ifa->idev->dev), net)) ifa 4306 net/ipv6/addrconf.c return ifa; ifa 4322 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 4324 net/ipv6/addrconf.c ifa = if6_get_next(seq, v); ifa 4326 net/ipv6/addrconf.c return ifa; ifa 4760 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 4821 net/ipv6/addrconf.c ifa = ipv6_get_ifaddr(net, cfg.pfx, dev, 1); ifa 4822 net/ipv6/addrconf.c if (!ifa) { ifa 4834 net/ipv6/addrconf.c err = inet6_addr_modify(ifa, &cfg); ifa 4836 net/ipv6/addrconf.c in6_ifa_put(ifa); ifa 4905 net/ipv6/addrconf.c static int inet6_fill_ifaddr(struct sk_buff *skb, struct inet6_ifaddr *ifa, ifa 4916 net/ipv6/addrconf.c put_ifaddrmsg(nlh, ifa->prefix_len, ifa->flags, rt_scope(ifa->scope), ifa 4917 net/ipv6/addrconf.c ifa->idev->dev->ifindex); ifa 4923 net/ipv6/addrconf.c if (!((ifa->flags&IFA_F_PERMANENT) && ifa 4924 net/ipv6/addrconf.c (ifa->prefered_lft == INFINITY_LIFE_TIME))) { ifa 4925 net/ipv6/addrconf.c preferred = ifa->prefered_lft; ifa 4926 net/ipv6/addrconf.c valid = ifa->valid_lft; ifa 4928 net/ipv6/addrconf.c long tval = (jiffies - ifa->tstamp)/HZ; ifa 4945 net/ipv6/addrconf.c if (!ipv6_addr_any(&ifa->peer_addr)) { ifa 4946 net/ipv6/addrconf.c if (nla_put_in6_addr(skb, IFA_LOCAL, &ifa->addr) < 0 || ifa 4947 net/ipv6/addrconf.c nla_put_in6_addr(skb, IFA_ADDRESS, &ifa->peer_addr) < 0) ifa 4950 net/ipv6/addrconf.c if (nla_put_in6_addr(skb, IFA_ADDRESS, &ifa->addr) < 0) ifa 4953 net/ipv6/addrconf.c if (ifa->rt_priority && ifa 4954 net/ipv6/addrconf.c nla_put_u32(skb, IFA_RT_PRIORITY, ifa->rt_priority)) ifa 4957 net/ipv6/addrconf.c if (put_cacheinfo(skb, ifa->cstamp, ifa->tstamp, preferred, valid) < 0) ifa 4960 net/ipv6/addrconf.c if (nla_put_u32(skb, IFA_FLAGS, ifa->flags) < 0) ifa 5047 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 5051 net/ipv6/addrconf.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 5054 net/ipv6/addrconf.c err = inet6_fill_ifaddr(skb, ifa, fillargs); ifa 5316 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 5341 net/ipv6/addrconf.c ifa = ipv6_get_ifaddr(tgt_net, addr, dev, 1); ifa 5342 net/ipv6/addrconf.c if (!ifa) { ifa 5353 net/ipv6/addrconf.c err = inet6_fill_ifaddr(skb, ifa, &fillargs); ifa 5362 net/ipv6/addrconf.c in6_ifa_put(ifa); ifa 5372 net/ipv6/addrconf.c static void inet6_ifa_notify(int event, struct inet6_ifaddr *ifa) ifa 5375 net/ipv6/addrconf.c struct net *net = dev_net(ifa->idev->dev); ifa 5389 net/ipv6/addrconf.c err = inet6_fill_ifaddr(skb, ifa, &fillargs); ifa 6393 net/ipv6/addrconf.c struct inet6_ifaddr *ifa; ifa 6396 net/ipv6/addrconf.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 6397 net/ipv6/addrconf.c spin_lock(&ifa->lock); ifa 6398 net/ipv6/addrconf.c if (ifa->rt) { ifa 6400 net/ipv6/addrconf.c struct fib6_nh *nh = ifa->rt->fib6_nh; ifa 6404 net/ipv6/addrconf.c ifa->rt->dst_nopolicy = val ? true : false; ifa 6415 net/ipv6/addrconf.c spin_unlock(&ifa->lock); ifa 575 net/ipv6/ndisc.c struct inet6_ifaddr *ifa; ifa 582 net/ipv6/ndisc.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 584 net/ipv6/ndisc.c if (ifa->flags & IFA_F_TENTATIVE && ifa 585 net/ipv6/ndisc.c !(ifa->flags & IFA_F_OPTIMISTIC)) ifa 588 net/ipv6/ndisc.c ndisc_send_na(dev, &in6addr_linklocal_allnodes, &ifa->addr, ifa 14 net/ipv6/netfilter/nf_tproxy_ipv6.c struct inet6_ifaddr *ifa; ifa 24 net/ipv6/netfilter/nf_tproxy_ipv6.c list_for_each_entry(ifa, &indev->addr_list, if_list) { ifa 25 net/ipv6/netfilter/nf_tproxy_ipv6.c if (ifa->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED)) ifa 28 net/ipv6/netfilter/nf_tproxy_ipv6.c laddr = &ifa->addr; ifa 321 net/mac80211/main.c struct in_ifaddr *ifa = arg; ifa 325 net/mac80211/main.c struct net_device *ndev = ifa->ifa_dev->dev; ifa 355 net/mac80211/main.c ifa = rtnl_dereference(idev->ifa_list); ifa 356 net/mac80211/main.c while (ifa) { ifa 358 net/mac80211/main.c bss_conf->arp_addr_list[c] = ifa->ifa_address; ifa 359 net/mac80211/main.c ifa = rtnl_dereference(ifa->ifa_next); ifa 380 net/mac80211/main.c struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)arg; ifa 381 net/mac80211/main.c struct inet6_dev *idev = ifa->idev; ifa 382 net/mac80211/main.c struct net_device *ndev = ifa->idev->dev; ifa 40 net/netfilter/nf_conntrack_broadcast.c const struct in_ifaddr *ifa; ifa 42 net/netfilter/nf_conntrack_broadcast.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 43 net/netfilter/nf_conntrack_broadcast.c if (ifa->ifa_flags & IFA_F_SECONDARY) ifa 46 net/netfilter/nf_conntrack_broadcast.c if (ifa->ifa_broadcast == iph->daddr) { ifa 47 net/netfilter/nf_conntrack_broadcast.c mask = ifa->ifa_mask; ifa 97 net/netfilter/nf_nat_masquerade.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 98 net/netfilter/nf_nat_masquerade.c struct net_device *dev = ifa->ifa_dev->dev; ifa 106 net/netfilter/nf_nat_masquerade.c return ifa->ifa_address == tuple->dst.u3.ip; ifa 234 net/netfilter/nf_nat_masquerade.c struct inet6_ifaddr *ifa = ptr; ifa 242 net/netfilter/nf_nat_masquerade.c dev = ifa->idev->dev; ifa 257 net/netfilter/nf_nat_masquerade.c w->addr = ifa->addr; ifa 53 net/netfilter/nf_nat_redirect.c const struct in_ifaddr *ifa; ifa 55 net/netfilter/nf_nat_redirect.c ifa = rcu_dereference(indev->ifa_list); ifa 56 net/netfilter/nf_nat_redirect.c if (ifa) ifa 57 net/netfilter/nf_nat_redirect.c newdst = ifa->ifa_local; ifa 94 net/netfilter/nf_nat_redirect.c struct inet6_ifaddr *ifa; ifa 100 net/netfilter/nf_nat_redirect.c list_for_each_entry(ifa, &idev->addr_list, if_list) { ifa 101 net/netfilter/nf_nat_redirect.c newdst = ifa->addr; ifa 36 net/netfilter/nfnetlink_osf.c const struct in_ifaddr *ifa; ifa 46 net/netfilter/nfnetlink_osf.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 47 net/netfilter/nfnetlink_osf.c if (inet_ifa_match(ip->saddr, ifa)) { ifa 77 net/sctp/ipv6.c struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; ifa 80 net/sctp/ipv6.c struct net *net = dev_net(ifa->idev->dev); ifa 88 net/sctp/ipv6.c addr->a.v6.sin6_addr = ifa->addr; ifa 89 net/sctp/ipv6.c addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; ifa 103 net/sctp/ipv6.c &ifa->addr)) { ifa 75 net/sctp/protocol.c struct in_ifaddr *ifa; ifa 84 net/sctp/protocol.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 89 net/sctp/protocol.c addr->a.v4.sin_addr.s_addr = ifa->ifa_local; ifa 772 net/sctp/protocol.c struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; ifa 775 net/sctp/protocol.c struct net *net = dev_net(ifa->ifa_dev->dev); ifa 783 net/sctp/protocol.c addr->a.v4.sin_addr.s_addr = ifa->ifa_local; ifa 797 net/sctp/protocol.c ifa->ifa_local) { ifa 100 net/smc/smc_clc.c const struct in_ifaddr *ifa; ifa 105 net/smc/smc_clc.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 106 net/smc/smc_clc.c if (!inet_ifa_match(ipv4, ifa)) ifa 108 net/smc/smc_clc.c prop->prefix_len = inet_mask_len(ifa->ifa_mask); ifa 109 net/smc/smc_clc.c prop->outgoing_subnet = ifa->ifa_address & ifa->ifa_mask; ifa 123 net/smc/smc_clc.c struct inet6_ifaddr *ifa; ifa 129 net/smc/smc_clc.c list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { ifa 130 net/smc/smc_clc.c if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) ifa 133 net/smc/smc_clc.c &ifa->addr, ifa->prefix_len); ifa 134 net/smc/smc_clc.c ipv6_prfx[cnt].prefix_len = ifa->prefix_len; ifa 195 net/smc/smc_clc.c const struct in_ifaddr *ifa; ifa 199 net/smc/smc_clc.c in_dev_for_each_ifa_rcu(ifa, in_dev) { ifa 200 net/smc/smc_clc.c if (prop->prefix_len == inet_mask_len(ifa->ifa_mask) && ifa 201 net/smc/smc_clc.c inet_ifa_match(prop->outgoing_subnet, ifa)) ifa 215 net/smc/smc_clc.c struct inet6_ifaddr *ifa; ifa 223 net/smc/smc_clc.c list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { ifa 224 net/smc/smc_clc.c if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) ifa 227 net/smc/smc_clc.c if (ifa->prefix_len == ipv6_prfx[i].prefix_len && ifa 228 net/smc/smc_clc.c ipv6_prefix_equal(&ifa->addr, &ipv6_prfx[i].prefix, ifa 229 net/smc/smc_clc.c ifa->prefix_len))