Home
last modified time | relevance | path

Searched refs:ifa (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.1.9/net/ipv4/
Ddevinet.c131 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 …]
Dfib_frontend.c545 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()
1067 struct in_ifaddr *ifa, u32 rt_priority) in fib_magic() argument
1069 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic()
1070 u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); in fib_magic()
1078 .fc_prefsrc = ifa->ifa_local, in fib_magic()
1079 .fc_oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
[all …]
/linux-6.1.9/arch/ia64/kernel/
Dunaligned.c673 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 …]
Dtraps.c416 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()
Dmca_asm.S173 mov cr.ifa=r17
200 mov cr.ifa=r16
220 mov cr.ifa=r18
491 mov r6=cr.ifa
836 mov cr.ifa=temp4
885 mov cr.ifa=r13
1057 mov cr.ifa=r13
/linux-6.1.9/net/netfilter/
Dnf_nat_redirect.c53 const struct in_ifaddr *ifa; in nf_nat_redirect_ipv4() local
55 ifa = rcu_dereference(indev->ifa_list); in nf_nat_redirect_ipv4()
56 if (ifa) in nf_nat_redirect_ipv4()
57 newdst = ifa->ifa_local; in nf_nat_redirect_ipv4()
94 struct inet6_ifaddr *ifa; in nf_nat_redirect_ipv6() local
100 list_for_each_entry(ifa, &idev->addr_list, if_list) { in nf_nat_redirect_ipv6()
101 newdst = ifa->addr; in nf_nat_redirect_ipv6()
Dnf_conntrack_broadcast.c41 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()
Dnf_nat_masquerade.c186 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()
Dnfnetlink_osf.c36 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.1.9/include/linux/
Dinetdevice.h203 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.1.9/net/ipv6/
Daddrconf.c174 static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa);
175 static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa);
799 struct inet6_ifaddr *ifa; in dev_forward_change() local
820 list_for_each_entry(ifa, &idev->addr_list, if_list) { in dev_forward_change()
821 if (ifa->flags&IFA_F_TENTATIVE) in dev_forward_change()
823 list_add_tail(&ifa->if_list_aux, &tmp_addr_list); in dev_forward_change()
828 ifa = list_first_entry(&tmp_addr_list, in dev_forward_change()
830 list_del(&ifa->if_list_aux); in dev_forward_change()
832 addrconf_join_anycast(ifa); in dev_forward_change()
834 addrconf_leave_anycast(ifa); in dev_forward_change()
[all …]
/linux-6.1.9/net/smc/
Dsmc_clc.c483 const struct in_ifaddr *ifa; in smc_clc_prfx_set4_rcu() local
488 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu()
489 if (!inet_ifa_match(ipv4, ifa)) in smc_clc_prfx_set4_rcu()
491 prop->prefix_len = inet_mask_len(ifa->ifa_mask); in smc_clc_prfx_set4_rcu()
492 prop->outgoing_subnet = ifa->ifa_address & ifa->ifa_mask; in smc_clc_prfx_set4_rcu()
506 struct inet6_ifaddr *ifa; in smc_clc_prfx_set6_rcu() local
512 list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { in smc_clc_prfx_set6_rcu()
513 if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) in smc_clc_prfx_set6_rcu()
516 &ifa->addr, ifa->prefix_len); in smc_clc_prfx_set6_rcu()
517 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu()
[all …]
/linux-6.1.9/net/ipv4/netfilter/
Dnf_tproxy_ipv4.c52 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.1.9/net/ipv6/netfilter/
Dnf_tproxy_ipv6.c14 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.1.9/arch/ia64/mm/
Dtlb.c432 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.1.9/drivers/infiniband/hw/usnic/
Dusnic_ib_main.c248 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.1.9/fs/lockd/
Dsvc.c302 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in lockd_inetaddr_event() local
310 &ifa->ifa_local); in lockd_inetaddr_event()
312 sin.sin_addr.s_addr = ifa->ifa_local; in lockd_inetaddr_event()
328 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in lockd_inet6addr_event() local
335 dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr); in lockd_inet6addr_event()
337 sin6.sin6_addr = ifa->addr; in lockd_inet6addr_event()
339 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in lockd_inet6addr_event()
/linux-6.1.9/drivers/net/wan/
Dhdlc_cisco.c185 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.1.9/fs/nfsd/
Dnfssvc.c464 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in nfsd_inetaddr_event() local
465 struct net_device *dev = ifa->ifa_dev->dev; in nfsd_inetaddr_event()
475 dprintk("nfsd_inetaddr_event: removed %pI4\n", &ifa->ifa_local); in nfsd_inetaddr_event()
477 sin.sin_addr.s_addr = ifa->ifa_local; in nfsd_inetaddr_event()
494 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in nfsd_inet6addr_event() local
495 struct net_device *dev = ifa->idev->dev; in nfsd_inet6addr_event()
505 dprintk("nfsd_inet6addr_event: removed %pI6\n", &ifa->addr); in nfsd_inet6addr_event()
507 sin6.sin6_addr = ifa->addr; in nfsd_inet6addr_event()
509 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in nfsd_inet6addr_event()
/linux-6.1.9/net/appletalk/
Daarp.c721 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.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcore.c990 struct in_ifaddr *ifa = data; in brcmf_inetaddr_changed() local
991 struct net_device *ndev = ifa->ifa_dev->dev; in brcmf_inetaddr_changed()
1027 if (ifa->ifa_address == addr_table[i]) in brcmf_inetaddr_changed()
1034 &ifa->ifa_address); in brcmf_inetaddr_changed()
1037 &ifa->ifa_address, sizeof(ifa->ifa_address)); in brcmf_inetaddr_changed()
1046 &ifa->ifa_address); in brcmf_inetaddr_changed()
1081 struct inet6_ifaddr *ifa = data; in brcmf_inet6addr_changed() local
1090 if (ifp->ndev != ifa->idev->dev) in brcmf_inet6addr_changed()
1095 if (ipv6_addr_equal(&ifa->addr, &table[i])) in brcmf_inet6addr_changed()
1102 table[ifp->ipv6addr_idx++] = ifa->addr; in brcmf_inet6addr_changed()
[all …]
/linux-6.1.9/arch/ia64/include/asm/native/
Dinst.h12 mov reg = cr.ifa
42 mov cr.ifa = reg
/linux-6.1.9/drivers/infiniband/core/
Droce_gid_mgmt.c334 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.1.9/net/mac80211/
Dmain.c424 struct in_ifaddr *ifa = arg; in ieee80211_ifa_changed() local
428 struct net_device *ndev = ifa->ifa_dev->dev; in ieee80211_ifa_changed()
458 ifa = rtnl_dereference(idev->ifa_list); in ieee80211_ifa_changed()
459 while (ifa) { in ieee80211_ifa_changed()
461 vif_cfg->arp_addr_list[c] = ifa->ifa_address; in ieee80211_ifa_changed()
462 ifa = rtnl_dereference(ifa->ifa_next); in ieee80211_ifa_changed()
482 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)arg; in ieee80211_ifa6_changed() local
483 struct inet6_dev *idev = ifa->idev; in ieee80211_ifa6_changed()
484 struct net_device *ndev = ifa->idev->dev; in ieee80211_ifa6_changed()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dclip_tbl.c200 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()

123