/linux-6.6.21/Documentation/netlink/specs/ |
D | rt_addr.yaml | 16 name: ifa-family 19 name: ifa-prefixlen 22 name: ifa-flags 24 enum: ifa-flags 27 name: ifa-scope 30 name: ifa-index 33 name: ifa-cacheinfo 37 name: ifa-prefered 40 name: ifa-valid 50 name: ifa-flags [all …]
|
/linux-6.6.21/net/ipv4/ |
D | devinet.c | 131 static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) in inet_hash_insert() argument 133 u32 hash = inet_addr_hash(net, ifa->ifa_local); in inet_hash_insert() 136 hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]); in inet_hash_insert() 139 static void inet_hash_remove(struct in_ifaddr *ifa) in inet_hash_remove() argument 142 hlist_del_init_rcu(&ifa->hash); in inet_hash_remove() 156 struct in_ifaddr *ifa; in __ip_dev_find() local 159 ifa = inet_lookup_ifaddr_rcu(net, addr); in __ip_dev_find() 160 if (!ifa) { in __ip_dev_find() 174 result = ifa->ifa_dev->dev; in __ip_dev_find() 187 struct in_ifaddr *ifa; in inet_lookup_ifaddr_rcu() local [all …]
|
D | fib_frontend.c | 545 const struct in_ifaddr *ifa; in rtentry_to_fib_config() local 555 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config() 556 if (strcmp(ifa->ifa_label, devname) == 0) in rtentry_to_fib_config() 561 if (!ifa) in rtentry_to_fib_config() 563 cfg->fc_prefsrc = ifa->ifa_local; in rtentry_to_fib_config() 1070 struct in_ifaddr *ifa, u32 rt_priority) in fib_magic() argument 1072 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic() 1073 u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); in fib_magic() 1081 .fc_prefsrc = ifa->ifa_local, in fib_magic() 1082 .fc_oif = ifa->ifa_dev->dev->ifindex, in fib_magic() [all …]
|
/linux-6.6.21/net/netfilter/ |
D | nf_nat_redirect.c | 66 const struct in_ifaddr *ifa; in nf_nat_redirect_ipv4() local 68 ifa = rcu_dereference(indev->ifa_list); in nf_nat_redirect_ipv4() 69 if (ifa) in nf_nat_redirect_ipv4() 70 newdst.ip = ifa->ifa_local; in nf_nat_redirect_ipv4() 83 static bool nf_nat_redirect_ipv6_usable(const struct inet6_ifaddr *ifa, unsigned int scope) in nf_nat_redirect_ipv6_usable() argument 85 unsigned int ifa_addr_type = ipv6_addr_type(&ifa->addr); in nf_nat_redirect_ipv6_usable() 90 if ((ifa->flags & IFA_F_TENTATIVE) && (!(ifa->flags & IFA_F_OPTIMISTIC))) in nf_nat_redirect_ipv6_usable() 118 const struct inet6_ifaddr *ifa; in nf_nat_redirect_ipv6() local 121 list_for_each_entry(ifa, &idev->addr_list, if_list) { in nf_nat_redirect_ipv6() 122 if (!nf_nat_redirect_ipv6_usable(ifa, scope)) in nf_nat_redirect_ipv6() [all …]
|
D | nf_conntrack_broadcast.c | 41 const struct in_ifaddr *ifa; in nf_conntrack_broadcast_help() local 43 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help() 44 if (ifa->ifa_flags & IFA_F_SECONDARY) in nf_conntrack_broadcast_help() 47 if (ifa->ifa_broadcast == iph->daddr) { in nf_conntrack_broadcast_help() 48 mask = ifa->ifa_mask; in nf_conntrack_broadcast_help()
|
D | nf_nat_masquerade.c | 186 const struct in_ifaddr *ifa = ptr; in masq_inet_event() local 199 idev = ifa->ifa_dev; in masq_inet_event() 205 addr.ip = ifa->ifa_address; in masq_inet_event() 282 struct inet6_ifaddr *ifa = ptr; in masq_inet6_event() local 289 dev = ifa->idev->dev; in masq_inet6_event() 293 addr.in6 = ifa->addr; in masq_inet6_event()
|
D | nfnetlink_osf.c | 36 const struct in_ifaddr *ifa; in nf_osf_ttl() local 46 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_osf_ttl() 47 if (inet_ifa_match(ip->saddr, ifa)) { in nf_osf_ttl()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | unaligned.c | 673 emulate_load_updates (update_t type, load_store_t ld, struct pt_regs *regs, unsigned long ifa) in emulate_load_updates() argument 713 ifa += imm; in emulate_load_updates() 715 setreg(ld.r3, ifa, 0, regs); in emulate_load_updates() 717 DPRINT("ld.x=%d ld.m=%d imm=%ld r3=0x%lx\n", ld.x, ld.m, imm, ifa); in emulate_load_updates() 741 ifa += r2; in emulate_load_updates() 746 setreg(ld.r3, ifa, nat_r2, regs); in emulate_load_updates() 748 DPRINT("imm=%d r2=%ld r3=0x%lx nat_r2=%d\n",ld.imm, r2, ifa, nat_r2); in emulate_load_updates() 752 static int emulate_store(unsigned long ifa, void *val, int len, bool kernel_mode) in emulate_store() argument 755 return copy_to_kernel_nofault((void *)ifa, val, len); in emulate_store() 757 return copy_to_user((void __user *)ifa, val, len); in emulate_store() [all …]
|
D | traps.c | 416 ia64_fault (unsigned long vector, unsigned long isr, unsigned long ifa, in ia64_fault() argument 477 addr = (void __user *) ifa; in ia64_fault() 535 ifa = regs.cr_iip; in ia64_fault() 538 case 35: si_code = TRAP_BRANCH; ifa = 0; break; in ia64_fault() 539 case 36: si_code = TRAP_TRACE; ifa = 0; break; in ia64_fault() 544 force_sig_fault(SIGTRAP, si_code, (void __user *) ifa, in ia64_fault() 591 iip, ifa, isr); in ia64_fault() 598 iip, ifa, isr, iim); in ia64_fault()
|
/linux-6.6.21/include/linux/ |
D | inetdevice.h | 203 static inline bool inet_ifa_match(__be32 addr, const struct in_ifaddr *ifa) in inet_ifa_match() argument 205 return !((addr^ifa->ifa_address)&ifa->ifa_mask); in inet_ifa_match() 223 #define in_dev_for_each_ifa_rtnl(ifa, in_dev) \ argument 224 for (ifa = rtnl_dereference((in_dev)->ifa_list); ifa; \ 225 ifa = rtnl_dereference(ifa->ifa_next)) 227 #define in_dev_for_each_ifa_rcu(ifa, in_dev) \ argument 228 for (ifa = rcu_dereference((in_dev)->ifa_list); ifa; \ 229 ifa = rcu_dereference(ifa->ifa_next))
|
/linux-6.6.21/net/ipv6/ |
D | addrconf.c | 174 static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); 175 static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); 815 struct inet6_ifaddr *ifa; in dev_forward_change() local 836 list_for_each_entry(ifa, &idev->addr_list, if_list) { in dev_forward_change() 837 if (ifa->flags&IFA_F_TENTATIVE) in dev_forward_change() 839 list_add_tail(&ifa->if_list_aux, &tmp_addr_list); in dev_forward_change() 844 ifa = list_first_entry(&tmp_addr_list, in dev_forward_change() 846 list_del(&ifa->if_list_aux); in dev_forward_change() 848 addrconf_join_anycast(ifa); in dev_forward_change() 850 addrconf_leave_anycast(ifa); in dev_forward_change() [all …]
|
/linux-6.6.21/net/ipv4/netfilter/ |
D | nf_tproxy_ipv4.c | 52 const struct in_ifaddr *ifa; in nf_tproxy_laddr4() local 62 in_dev_for_each_ifa_rcu(ifa, indev) { in nf_tproxy_laddr4() 63 if (ifa->ifa_flags & IFA_F_SECONDARY) in nf_tproxy_laddr4() 66 laddr = ifa->ifa_local; in nf_tproxy_laddr4()
|
/linux-6.6.21/net/smc/ |
D | smc_clc.c | 507 const struct in_ifaddr *ifa; in smc_clc_prfx_set4_rcu() local 512 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu() 513 if (!inet_ifa_match(ipv4, ifa)) in smc_clc_prfx_set4_rcu() 515 prop->prefix_len = inet_mask_len(ifa->ifa_mask); in smc_clc_prfx_set4_rcu() 516 prop->outgoing_subnet = ifa->ifa_address & ifa->ifa_mask; in smc_clc_prfx_set4_rcu() 530 struct inet6_ifaddr *ifa; in smc_clc_prfx_set6_rcu() local 536 list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { in smc_clc_prfx_set6_rcu() 537 if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) in smc_clc_prfx_set6_rcu() 540 &ifa->addr, ifa->prefix_len); in smc_clc_prfx_set6_rcu() 541 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu() [all …]
|
/linux-6.6.21/net/ipv6/netfilter/ |
D | nf_tproxy_ipv6.c | 14 struct inet6_ifaddr *ifa; in nf_tproxy_laddr6() local 24 list_for_each_entry(ifa, &indev->addr_list, if_list) { in nf_tproxy_laddr6() 25 if (ifa->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED)) in nf_tproxy_laddr6() 28 laddr = &ifa->addr; in nf_tproxy_laddr6()
|
/linux-6.6.21/arch/ia64/mm/ |
D | tlb.c | 432 tr_end = p->ifa + (1<<tr_log_size) - 1; in is_tr_overlap() 434 if (va > tr_end || p->ifa > va_end) in is_tr_overlap() 528 p->ifa = va; in ia64_itr_entry() 537 p->ifa = va; in ia64_itr_entry() 568 if ((p->pte&0x1) && is_tr_overlap(p, p->ifa, p->itir>>2)) { in ia64_ptr_entry() 570 ia64_ptr(0x1, p->ifa, p->itir>>2); in ia64_ptr_entry() 577 if ((p->pte & 0x1) && is_tr_overlap(p, p->ifa, p->itir>>2)) { in ia64_ptr_entry() 579 ia64_ptr(0x2, p->ifa, p->itir>>2); in ia64_ptr_entry()
|
/linux-6.6.21/fs/lockd/ |
D | svc.c | 269 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in lockd_inetaddr_event() local 277 &ifa->ifa_local); in lockd_inetaddr_event() 279 sin.sin_addr.s_addr = ifa->ifa_local; in lockd_inetaddr_event() 295 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in lockd_inet6addr_event() local 302 dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr); in lockd_inet6addr_event() 304 sin6.sin6_addr = ifa->addr; in lockd_inet6addr_event() 306 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in lockd_inet6addr_event()
|
/linux-6.6.21/drivers/infiniband/hw/usnic/ |
D | usnic_ib_main.c | 248 struct in_ifaddr *ifa = ptr; in usnic_ib_handle_inet_event() local 265 usnic_fwd_add_ipaddr(us_ibdev->ufdev, ifa->ifa_address); in usnic_ib_handle_inet_event() 288 struct in_ifaddr *ifa = ptr; in usnic_ib_inetaddr_event() local 289 struct net_device *netdev = ifa->ifa_dev->dev; in usnic_ib_inetaddr_event() 421 const struct in_ifaddr *ifa; in usnic_ib_device_add() local 423 ifa = rcu_dereference(ind->ifa_list); in usnic_ib_device_add() 424 if (ifa) in usnic_ib_device_add() 425 usnic_fwd_add_ipaddr(us_ibdev->ufdev, ifa->ifa_address); in usnic_ib_device_add()
|
/linux-6.6.21/drivers/net/wan/ |
D | hdlc_cisco.c | 185 const struct in_ifaddr *ifa; in cisco_rx() local 187 in_dev_for_each_ifa_rcu(ifa, in_dev) { in cisco_rx() 189 ifa->ifa_label) == 0) { in cisco_rx() 190 addr = ifa->ifa_local; in cisco_rx() 191 mask = ifa->ifa_mask; in cisco_rx()
|
/linux-6.6.21/fs/nfsd/ |
D | nfssvc.c | 483 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in nfsd_inetaddr_event() local 484 struct net_device *dev = ifa->ifa_dev->dev; in nfsd_inetaddr_event() 494 dprintk("nfsd_inetaddr_event: removed %pI4\n", &ifa->ifa_local); in nfsd_inetaddr_event() 496 sin.sin_addr.s_addr = ifa->ifa_local; in nfsd_inetaddr_event() 513 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in nfsd_inet6addr_event() local 514 struct net_device *dev = ifa->idev->dev; in nfsd_inet6addr_event() 524 dprintk("nfsd_inet6addr_event: removed %pI6\n", &ifa->addr); in nfsd_inet6addr_event() 526 sin6.sin6_addr = ifa->addr; in nfsd_inet6addr_event() 528 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in nfsd_inet6addr_event()
|
/linux-6.6.21/net/appletalk/ |
D | aarp.c | 721 struct atalk_iface *ifa; in aarp_rcv() local 750 ifa = atalk_find_dev(dev); in aarp_rcv() 751 if (!ifa) in aarp_rcv() 754 if (ifa->status & ATIF_PROBE && in aarp_rcv() 755 ifa->address.s_node == ea->pa_dst_node && in aarp_rcv() 756 ifa->address.s_net == ea->pa_dst_net) { in aarp_rcv() 757 ifa->status |= ATIF_PROBE_FAIL; /* Fail the probe (in use) */ in aarp_rcv() 816 ma = &ifa->address; in aarp_rcv()
|
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | core.c | 992 struct in_ifaddr *ifa = data; in brcmf_inetaddr_changed() local 993 struct net_device *ndev = ifa->ifa_dev->dev; in brcmf_inetaddr_changed() 1029 if (ifa->ifa_address == addr_table[i]) in brcmf_inetaddr_changed() 1036 &ifa->ifa_address); in brcmf_inetaddr_changed() 1039 &ifa->ifa_address, sizeof(ifa->ifa_address)); in brcmf_inetaddr_changed() 1048 &ifa->ifa_address); in brcmf_inetaddr_changed() 1083 struct inet6_ifaddr *ifa = data; in brcmf_inet6addr_changed() local 1092 if (ifp->ndev != ifa->idev->dev) in brcmf_inet6addr_changed() 1097 if (ipv6_addr_equal(&ifa->addr, &table[i])) in brcmf_inet6addr_changed() 1104 table[ifp->ipv6addr_idx++] = ifa->addr; in brcmf_inet6addr_changed() [all …]
|
/linux-6.6.21/arch/ia64/include/asm/native/ |
D | inst.h | 12 mov reg = cr.ifa 42 mov cr.ifa = reg
|
/linux-6.6.21/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 334 const struct in_ifaddr *ifa; in enum_netdev_ipv4_ips() local 354 in_dev_for_each_ifa_rcu(ifa, in_dev) { in enum_netdev_ipv4_ips() 361 entry->ip.sin_addr.s_addr = ifa->ifa_address; in enum_netdev_ipv4_ips() 863 struct in_ifaddr *ifa = ptr; in inetaddr_event() local 866 in.sin_addr.s_addr = ifa->ifa_address; in inetaddr_event() 867 ndev = ifa->ifa_dev->dev; in inetaddr_event()
|
/linux-6.6.21/net/mac80211/ |
D | main.c | 423 struct in_ifaddr *ifa = arg; in ieee80211_ifa_changed() local 427 struct net_device *ndev = ifa->ifa_dev->dev; in ieee80211_ifa_changed() 457 ifa = rtnl_dereference(idev->ifa_list); in ieee80211_ifa_changed() 458 while (ifa) { in ieee80211_ifa_changed() 460 vif_cfg->arp_addr_list[c] = ifa->ifa_address; in ieee80211_ifa_changed() 461 ifa = rtnl_dereference(ifa->ifa_next); in ieee80211_ifa_changed() 481 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)arg; in ieee80211_ifa6_changed() local 482 struct inet6_dev *idev = ifa->idev; in ieee80211_ifa6_changed() 483 struct net_device *ndev = ifa->idev->dev; in ieee80211_ifa6_changed()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/ |
D | clip_tbl.c | 200 struct inet6_ifaddr *ifa; in cxgb4_update_dev_clip() local 208 list_for_each_entry(ifa, &idev->addr_list, if_list) { in cxgb4_update_dev_clip() 209 ret = cxgb4_clip_get(dev, (const u32 *)ifa->addr.s6_addr, 1); in cxgb4_update_dev_clip()
|