Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/net/ipv4/
Ddevinet.c129 static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) in inet_hash_insert() argument
131 u32 hash = inet_addr_hash(net, ifa->ifa_local); in inet_hash_insert()
134 hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]); in inet_hash_insert()
137 static void inet_hash_remove(struct in_ifaddr *ifa) in inet_hash_remove() argument
140 hlist_del_init_rcu(&ifa->hash); in inet_hash_remove()
154 struct in_ifaddr *ifa; in __ip_dev_find() local
157 ifa = inet_lookup_ifaddr_rcu(net, addr); in __ip_dev_find()
158 if (!ifa) { in __ip_dev_find()
172 result = ifa->ifa_dev->dev; in __ip_dev_find()
185 struct in_ifaddr *ifa; in inet_lookup_ifaddr_rcu() local
[all …]
Dfib_frontend.c542 const struct in_ifaddr *ifa; in rtentry_to_fib_config() local
552 in_dev_for_each_ifa_rcu(ifa, in_dev) { in rtentry_to_fib_config()
553 if (strcmp(ifa->ifa_label, devname) == 0) in rtentry_to_fib_config()
558 if (!ifa) in rtentry_to_fib_config()
560 cfg->fc_prefsrc = ifa->ifa_local; in rtentry_to_fib_config()
1056 struct in_ifaddr *ifa, u32 rt_priority) in fib_magic() argument
1058 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic()
1059 u32 tb_id = l3mdev_fib_table(ifa->ifa_dev->dev); in fib_magic()
1067 .fc_prefsrc = ifa->ifa_local, in fib_magic()
1068 .fc_oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
[all …]
/kernel/linux/linux-5.10/net/decnet/
Ddn_dev.c79 static void dn_ifaddr_notify(int event, struct dn_ifaddr *ifa);
83 static void dn_send_brd_hello(struct net_device *dev, struct dn_ifaddr *ifa);
84 static void dn_send_ptp_hello(struct net_device *dev, struct dn_ifaddr *ifa);
317 struct dn_ifaddr *ifa; in dn_dev_alloc_ifa() local
319 ifa = kzalloc(sizeof(*ifa), GFP_KERNEL); in dn_dev_alloc_ifa()
321 return ifa; in dn_dev_alloc_ifa()
324 static void dn_dev_free_ifa(struct dn_ifaddr *ifa) in dn_dev_free_ifa() argument
326 kfree_rcu(ifa, rcu); in dn_dev_free_ifa()
356 static int dn_dev_insert_ifa(struct dn_dev *dn_db, struct dn_ifaddr *ifa) in dn_dev_insert_ifa() argument
368 if (ifa1->ifa_local == ifa->ifa_local) in dn_dev_insert_ifa()
[all …]
Ddn_fib.c559 static void fib_magic(int cmd, int type, __le16 dst, int dst_len, struct dn_ifaddr *ifa) in fib_magic() argument
576 .prefsrc = ifa->ifa_local, in fib_magic()
582 .oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
618 static void dn_fib_add_ifaddr(struct dn_ifaddr *ifa) in dn_fib_add_ifaddr() argument
621 fib_magic(RTM_NEWROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_add_ifaddr()
631 static void dn_fib_del_ifaddr(struct dn_ifaddr *ifa) in dn_fib_del_ifaddr() argument
649 if (ifa2->ifa_local == ifa->ifa_local) { in dn_fib_del_ifaddr()
658 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_del_ifaddr()
660 if (dnet_addr_type(ifa->ifa_local) != RTN_LOCAL) { in dn_fib_del_ifaddr()
661 if (dn_fib_sync_down(ifa->ifa_local, NULL, 0)) in dn_fib_del_ifaddr()
[all …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dnip_addrconf.c110 struct ninet_ifaddr *ifa = NULL; in nip_add_addr() local
144 ifa = kzalloc(sizeof(*ifa), GFP_ATOMIC); in nip_add_addr()
145 if (!ifa) { in nip_add_addr()
161 ifa->addr = *addr; in nip_add_addr()
163 spin_lock_init(&ifa->lock); in nip_add_addr()
164 INIT_HLIST_NODE(&ifa->addr_lst); in nip_add_addr()
165 ifa->flags = flags; in nip_add_addr()
166 ifa->valid_lft = valid_lft; in nip_add_addr()
167 ifa->preferred_lft = preferred_lft; in nip_add_addr()
168 ifa->tstamp = jiffies; in nip_add_addr()
[all …]
Ddevninet.c37 const struct ninet_ifaddr *ifa; in ninet_gifconf() local
46 list_for_each_entry(ifa, &nin_dev->addr_list, if_list) { in ninet_gifconf()
47 ifa = rcu_dereference_protected(ifa, lockdep_is_held(&ifa->lock)); in ninet_gifconf()
48 if (!ifa) { in ninet_gifconf()
59 strcpy(ifr.ifr_name, ifa->rt->dst.dev->name); in ninet_gifconf()
62 memcpy(&((struct sockaddr_nin *)&ifr.ifr_addr)->sin_addr, &ifa->addr, in ninet_gifconf()
/kernel/liteos_m/components/net/lwip-2.1/enhancement/src/
Dlwip_ifaddrs.c47 struct ifaddrs ifa; member
65 void lwip_freeifaddrs(struct ifaddrs *ifa);
91 ifaddr = &if_storage->ifa; in new_ifaddrs_storage()
233 ifaddr = &if_storage->ifa; in getifaddrs_internal()
252 ifaddr = &if_storage->ifa; in getifaddrs_internal()
305 static void freeifaddrs_iteration(struct ifaddrs *ifa) in freeifaddrs_iteration() argument
307 if (ifa == NULL) { in freeifaddrs_iteration()
311 if (ifa->ifa_next != NULL) { in freeifaddrs_iteration()
312 freeifaddrs_iteration(ifa->ifa_next); in freeifaddrs_iteration()
315 mem_free(ifa); in freeifaddrs_iteration()
[all …]
/kernel/uniproton/src/net/lwip-2.1/enhancement/src/
Dlwip_ifaddrs.c32 struct ifaddrs ifa; member
50 static void OsLwipFreeifaddrs(struct ifaddrs *ifa);
79 ifaddr = &ifStorage->ifa; in OsNewIfaddrsStorage()
222 ifaddr = &ifStorage->ifa; in OsGetIfaddrsInternal()
244 ifaddr = &ifStorage->ifa; in OsGetIfaddrsInternal()
296 static void OsFreeifaddrsIteration(struct ifaddrs *ifa) in OsFreeifaddrsIteration() argument
298 if (ifa == NULL) { in OsFreeifaddrsIteration()
302 if (ifa->ifa_next != NULL) { in OsFreeifaddrsIteration()
303 OsFreeifaddrsIteration(ifa->ifa_next); in OsFreeifaddrsIteration()
306 mem_free(ifa); in OsFreeifaddrsIteration()
[all …]
/kernel/linux/linux-5.10/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()
754 emulate_load_int (unsigned long ifa, load_store_t ld, struct pt_regs *regs) in emulate_load_int() argument
777 if (copy_from_user(&val, (void __user *) ifa, len)) in emulate_load_int()
785 emulate_load_updates(ld.op == 0x5 ? UPD_IMMEDIATE: UPD_REG, ld, regs, ifa); in emulate_load_int()
[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()
/kernel/linux/linux-5.10/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.c40 const struct in_ifaddr *ifa; in nf_conntrack_broadcast_help() local
42 in_dev_for_each_ifa_rcu(ifa, in_dev) { in nf_conntrack_broadcast_help()
43 if (ifa->ifa_flags & IFA_F_SECONDARY) in nf_conntrack_broadcast_help()
46 if (ifa->ifa_broadcast == iph->daddr) { in nf_conntrack_broadcast_help()
47 mask = ifa->ifa_mask; in nf_conntrack_broadcast_help()
Dnf_nat_masquerade.c181 const struct in_ifaddr *ifa = ptr; in masq_inet_event() local
194 idev = ifa->ifa_dev; in masq_inet_event()
200 addr.ip = ifa->ifa_address; in masq_inet_event()
277 struct inet6_ifaddr *ifa = ptr; in masq_inet6_event() local
284 dev = ifa->idev->dev; in masq_inet6_event()
288 addr.in6 = ifa->addr; in masq_inet6_event()
/kernel/linux/linux-5.10/include/linux/
Dinetdevice.h198 static inline bool inet_ifa_match(__be32 addr, const struct in_ifaddr *ifa) in inet_ifa_match() argument
200 return !((addr^ifa->ifa_address)&ifa->ifa_mask); in inet_ifa_match()
218 #define in_dev_for_each_ifa_rtnl(ifa, in_dev) \ argument
219 for (ifa = rtnl_dereference((in_dev)->ifa_list); ifa; \
220 ifa = rtnl_dereference(ifa->ifa_next))
222 #define in_dev_for_each_ifa_rcu(ifa, in_dev) \ argument
223 for (ifa = rcu_dereference((in_dev)->ifa_list); ifa; \
224 ifa = rcu_dereference(ifa->ifa_next))
/kernel/linux/linux-5.10/net/ipv6/
Daddrconf.c180 static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa);
181 static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa);
791 struct inet6_ifaddr *ifa; in dev_forward_change() local
812 list_for_each_entry(ifa, &idev->addr_list, if_list) { in dev_forward_change()
813 if (ifa->flags&IFA_F_TENTATIVE) in dev_forward_change()
815 list_add_tail(&ifa->if_list_aux, &tmp_addr_list); in dev_forward_change()
820 ifa = list_first_entry(&tmp_addr_list, in dev_forward_change()
822 list_del(&ifa->if_list_aux); in dev_forward_change()
824 addrconf_join_anycast(ifa); in dev_forward_change()
826 addrconf_leave_anycast(ifa); in dev_forward_change()
[all …]
/kernel/linux/linux-5.10/include/net/
Ddn_dev.h82 void (*timer3)(struct net_device *, struct dn_ifaddr *ifa);
177 struct dn_ifaddr *ifa; in dn_dev_islocal() local
187 for (ifa = rcu_dereference(dn_db->ifa_list); in dn_dev_islocal()
188 ifa != NULL; in dn_dev_islocal()
189 ifa = rcu_dereference(ifa->ifa_next)) in dn_dev_islocal()
190 if ((addr ^ ifa->ifa_local) == 0) { in dn_dev_islocal()
/kernel/linux/linux-5.10/net/smc/
Dsmc_clc.c167 const struct in_ifaddr *ifa; in smc_clc_prfx_set4_rcu() local
172 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu()
173 if (!inet_ifa_match(ipv4, ifa)) in smc_clc_prfx_set4_rcu()
175 prop->prefix_len = inet_mask_len(ifa->ifa_mask); in smc_clc_prfx_set4_rcu()
176 prop->outgoing_subnet = ifa->ifa_address & ifa->ifa_mask; in smc_clc_prfx_set4_rcu()
190 struct inet6_ifaddr *ifa; in smc_clc_prfx_set6_rcu() local
196 list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { in smc_clc_prfx_set6_rcu()
197 if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) in smc_clc_prfx_set6_rcu()
200 &ifa->addr, ifa->prefix_len); in smc_clc_prfx_set6_rcu()
201 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
440 const struct in_ifaddr *ifa; in usnic_ib_device_add() local
442 ifa = rcu_dereference(ind->ifa_list); in usnic_ib_device_add()
443 if (ifa) in usnic_ib_device_add()
444 usnic_fwd_add_ipaddr(us_ibdev->ufdev, ifa->ifa_address); in usnic_ib_device_add()
/kernel/linux/linux-5.10/fs/lockd/
Dsvc.c302 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in lockd_inetaddr_event() local
311 &ifa->ifa_local); in lockd_inetaddr_event()
313 sin.sin_addr.s_addr = ifa->ifa_local; in lockd_inetaddr_event()
332 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in lockd_inet6addr_event() local
340 dprintk("lockd_inet6addr_event: removed %pI6\n", &ifa->addr); in lockd_inet6addr_event()
342 sin6.sin6_addr = ifa->addr; in lockd_inet6addr_event()
344 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in lockd_inet6addr_event()
/kernel/linux/linux-5.10/drivers/net/wan/
Dhdlc_cisco.c197 const struct in_ifaddr *ifa; in cisco_rx() local
199 in_dev_for_each_ifa_rcu(ifa, in_dev) { in cisco_rx()
201 ifa->ifa_label) == 0) { in cisco_rx()
202 addr = ifa->ifa_local; in cisco_rx()
203 mask = ifa->ifa_mask; in cisco_rx()
/kernel/linux/linux-5.10/fs/nfsd/
Dnfssvc.c442 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in nfsd_inetaddr_event() local
443 struct net_device *dev = ifa->ifa_dev->dev; in nfsd_inetaddr_event()
453 dprintk("nfsd_inetaddr_event: removed %pI4\n", &ifa->ifa_local); in nfsd_inetaddr_event()
455 sin.sin_addr.s_addr = ifa->ifa_local; in nfsd_inetaddr_event()
473 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in nfsd_inet6addr_event() local
474 struct net_device *dev = ifa->idev->dev; in nfsd_inet6addr_event()
484 dprintk("nfsd_inet6addr_event: removed %pI6\n", &ifa->addr); in nfsd_inet6addr_event()
486 sin6.sin6_addr = ifa->addr; in nfsd_inet6addr_event()
488 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in nfsd_inet6addr_event()
/kernel/linux/linux-5.10/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()

123