Home
last modified time | relevance | path

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

123

/linux/net/ipv4/
A Ddevinet.c159 if (!ifa) { in __ip_dev_find()
191 return ifa; in inet_lookup_ifaddr_rcu()
228 kfree(ifa); in inet_rcu_free_ifa()
407 for (ifa = promote; ifa; ifa = rtnl_dereference(ifa->ifa_next)) { in __inet_del_ifa()
450 for (ifa = next_sec; ifa; in __inet_del_ifa()
451 ifa = rtnl_dereference(ifa->ifa_next)) { in __inet_del_ifa()
821 ifa->ifa_cstamp = ifa->ifa_tstamp; in set_ifa_lifetime()
856 if (!ifa) in rtm_to_ifaddr()
1178 ifa->ifa_broadcast = ifa->ifa_address | in devinet_ioctl()
1223 ifa->ifa_prefixlen = inet_mask_len(ifa->ifa_mask); in devinet_ioctl()
[all …]
A Dfib_frontend.c558 if (!ifa) in rtentry_to_fib_config()
1115 if (ifa->ifa_broadcast && ifa->ifa_broadcast != htonl(0xFFFFFFFF)) in fib_add_ifaddr()
1137 __be32 prefix = ifa->ifa_address & ifa->ifa_mask; in fib_modify_prefix_metric()
1144 (prefix == ifa->ifa_local && ifa->ifa_prefixlen == 32)) in fib_modify_prefix_metric()
1150 prefix, ifa->ifa_prefixlen, ifa, new_metric); in fib_modify_prefix_metric()
1155 prefix, ifa->ifa_prefixlen, ifa, ifa->ifa_rt_priority); in fib_modify_prefix_metric()
1169 __be32 brd = ifa->ifa_address | ~ifa->ifa_mask; in fib_del_ifaddr()
1170 __be32 any = ifa->ifa_address & ifa->ifa_mask; in fib_del_ifaddr()
1195 (any != ifa->ifa_local || ifa->ifa_prefixlen < 32)) { in fib_del_ifaddr()
1213 if (ifa1 == ifa) { in fib_del_ifaddr()
[all …]
/linux/net/decnet/
A Ddn_dev.c319 ifa = kzalloc(sizeof(*ifa), GFP_KERNEL); in dn_dev_alloc_ifa()
321 return ifa; in dn_dev_alloc_ifa()
326 kfree_rcu(ifa, rcu); in dn_dev_free_ifa()
470 if (!ifa) { in dn_dev_ioctl()
482 ifa->ifa_local = ifa->ifa_address = dn_saddr2dn(sdn); in dn_dev_ioctl()
764 for (ifa = rcu_dereference(dn_db->ifa_list), dn_idx = 0; ifa; in dn_nl_dump_ifaddr()
765 ifa = rcu_dereference(ifa->ifa_next), dn_idx++) { in dn_nl_dump_ifaddr()
797 if (ifa != NULL) { in dn_dev_get_first()
1048 ifa; in dn_dev_timer_func()
1049 ifa = rcu_dereference(ifa->ifa_next)) { in dn_dev_timer_func()
[all …]
A Ddn_fib.c575 .prefsrc = ifa->ifa_local, in fib_magic()
581 .oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
620 fib_magic(RTM_NEWROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_add_ifaddr()
648 if (ifa2->ifa_local == ifa->ifa_local) { in dn_fib_del_ifaddr()
657 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_del_ifaddr()
660 if (dn_fib_sync_down(ifa->ifa_local, NULL, 0)) in dn_fib_del_ifaddr()
680 dn_fib_add_ifaddr(ifa); in dn_fib_dnaddr_event()
681 dn_fib_sync_up(ifa->ifa_dev->dev); in dn_fib_dnaddr_event()
685 dn_fib_del_ifaddr(ifa); in dn_fib_dnaddr_event()
686 if (ifa->ifa_dev && ifa->ifa_dev->ifa_list == NULL) { in dn_fib_dnaddr_event()
[all …]
/linux/arch/ia64/kernel/
A Dunaligned.c713 ifa += imm; in emulate_load_updates()
715 setreg(ld.r3, ifa, 0, regs); in emulate_load_updates()
741 ifa += r2; in emulate_load_updates()
746 setreg(ld.r3, ifa, nat_r2, regs); in emulate_load_updates()
928 ifa += imm; in emulate_store_int()
930 DPRINT("imm=%lx r3=%lx\n", imm, ifa); in emulate_store_int()
932 setreg(ld.r3, ifa, 0, regs); in emulate_store_int()
1102 ifa += len<<1; in emulate_load_floatpair()
1114 setreg(ld.r3, ifa, 0, regs); in emulate_load_floatpair()
1272 ifa += imm; in emulate_store_float()
[all …]
A 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()
/linux/net/ipv6/
A Daddrconf.c1092 ifa = kzalloc(sizeof(*ifa), gfp_flags | __GFP_ACCOUNT); in ipv6_add_addr()
1093 if (!ifa) { in ipv6_add_addr()
1127 ifa->cstamp = ifa->tstamp = jiffies; in ipv6_add_addr()
1166 if (ifa) { in ipv6_add_addr()
1174 return ifa; in ipv6_add_addr()
1712 score->ifa = hiscore->ifa; in __ipv6_dev_get_saddr()
3845 addrconf_leave_solict(ifa->idev, &ifa->addr); in addrconf_ifdown()
4336 return ifa; in if6_seq_next()
4887 if (!ifa) { in inet6_rtm_newaddr()
4981 put_ifaddrmsg(nlh, ifa->prefix_len, ifa->flags, rt_scope(ifa->scope), in inet6_fill_ifaddr()
[all …]
/linux/include/linux/
A Dinetdevice.h200 static inline bool inet_ifa_match(__be32 addr, const struct in_ifaddr *ifa) in inet_ifa_match() argument
202 return !((addr^ifa->ifa_address)&ifa->ifa_mask); in inet_ifa_match()
220 #define in_dev_for_each_ifa_rtnl(ifa, in_dev) \ argument
221 for (ifa = rtnl_dereference((in_dev)->ifa_list); ifa; \
222 ifa = rtnl_dereference(ifa->ifa_next))
224 #define in_dev_for_each_ifa_rcu(ifa, in_dev) \ argument
225 for (ifa = rcu_dereference((in_dev)->ifa_list); ifa; \
226 ifa = rcu_dereference(ifa->ifa_next))
/linux/net/netfilter/
A 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()
A 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()
A 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()
/linux/include/net/
A 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()
/linux/net/smc/
A Dsmc_clc.c481 const struct in_ifaddr *ifa; in smc_clc_prfx_set4_rcu() local
486 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu()
487 if (!inet_ifa_match(ipv4, ifa)) in smc_clc_prfx_set4_rcu()
490 prop->outgoing_subnet = ifa->ifa_address & ifa->ifa_mask; in smc_clc_prfx_set4_rcu()
504 struct inet6_ifaddr *ifa; in smc_clc_prfx_set6_rcu() local
514 &ifa->addr, ifa->prefix_len); in smc_clc_prfx_set6_rcu()
515 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu()
576 const struct in_ifaddr *ifa; in smc_clc_prfx_match4_rcu() local
580 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
596 struct inet6_ifaddr *ifa; in smc_clc_prfx_match6_rcu() local
[all …]
/linux/net/ipv4/netfilter/
A 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/arch/ia64/mm/
A 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/net/ipv6/netfilter/
A 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/drivers/infiniband/hw/usnic/
A 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/drivers/net/wan/
A 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/fs/lockd/
A 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()
/linux/fs/nfsd/
A Dnfssvc.c441 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in nfsd_inetaddr_event() local
442 struct net_device *dev = ifa->ifa_dev->dev; in nfsd_inetaddr_event()
452 dprintk("nfsd_inetaddr_event: removed %pI4\n", &ifa->ifa_local); in nfsd_inetaddr_event()
454 sin.sin_addr.s_addr = ifa->ifa_local; in nfsd_inetaddr_event()
472 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in nfsd_inet6addr_event() local
473 struct net_device *dev = ifa->idev->dev; in nfsd_inet6addr_event()
483 dprintk("nfsd_inet6addr_event: removed %pI6\n", &ifa->addr); in nfsd_inet6addr_event()
485 sin6.sin6_addr = ifa->addr; in nfsd_inet6addr_event()
487 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in nfsd_inet6addr_event()
/linux/net/appletalk/
A 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/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dcore.c1000 struct in_ifaddr *ifa = data; in brcmf_inetaddr_changed() local
1001 struct net_device *ndev = ifa->ifa_dev->dev; in brcmf_inetaddr_changed()
1037 if (ifa->ifa_address == addr_table[i]) in brcmf_inetaddr_changed()
1044 &ifa->ifa_address); in brcmf_inetaddr_changed()
1047 &ifa->ifa_address, sizeof(ifa->ifa_address)); in brcmf_inetaddr_changed()
1056 &ifa->ifa_address); in brcmf_inetaddr_changed()
1091 struct inet6_ifaddr *ifa = data; in brcmf_inet6addr_changed() local
1100 if (ifp->ndev != ifa->idev->dev) in brcmf_inet6addr_changed()
1105 if (ipv6_addr_equal(&ifa->addr, &table[i])) in brcmf_inet6addr_changed()
1112 table[ifp->ipv6addr_idx++] = ifa->addr; in brcmf_inet6addr_changed()
[all …]
/linux/net/mac80211/
A Dmain.c344 struct in_ifaddr *ifa = arg; in ieee80211_ifa_changed() local
348 struct net_device *ndev = ifa->ifa_dev->dev; in ieee80211_ifa_changed()
378 ifa = rtnl_dereference(idev->ifa_list); in ieee80211_ifa_changed()
379 while (ifa) { in ieee80211_ifa_changed()
381 bss_conf->arp_addr_list[c] = ifa->ifa_address; in ieee80211_ifa_changed()
382 ifa = rtnl_dereference(ifa->ifa_next); in ieee80211_ifa_changed()
403 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)arg; in ieee80211_ifa6_changed() local
404 struct inet6_dev *idev = ifa->idev; in ieee80211_ifa6_changed()
405 struct net_device *ndev = ifa->idev->dev; in ieee80211_ifa6_changed()
/linux/drivers/infiniband/core/
A 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/arch/ia64/include/asm/native/
A Dinst.h12 mov reg = cr.ifa
42 mov cr.ifa = reg

Completed in 64 milliseconds

123