Home
last modified time | relevance | path

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

/net/ipv4/
Ddevinet.c117 static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) in inet_hash_insert() argument
119 u32 hash = inet_addr_hash(net, ifa->ifa_local); in inet_hash_insert()
122 hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]); in inet_hash_insert()
125 static void inet_hash_remove(struct in_ifaddr *ifa) in inet_hash_remove() argument
128 hlist_del_init_rcu(&ifa->hash); in inet_hash_remove()
143 struct in_ifaddr *ifa; in __ip_dev_find() local
146 hlist_for_each_entry_rcu(ifa, &inet_addr_lst[hash], hash) { in __ip_dev_find()
147 if (ifa->ifa_local == addr) { in __ip_dev_find()
148 struct net_device *dev = ifa->ifa_dev->dev; in __ip_dev_find()
204 struct in_ifaddr *ifa = container_of(head, struct in_ifaddr, rcu_head); in inet_rcu_free_ifa() local
[all …]
Dfib_frontend.c423 struct in_ifaddr *ifa; in rtentry_to_fib_config() local
428 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) in rtentry_to_fib_config()
429 if (strcmp(ifa->ifa_label, devname) == 0) in rtentry_to_fib_config()
431 if (ifa == NULL) in rtentry_to_fib_config()
433 cfg->fc_prefsrc = ifa->ifa_local; in rtentry_to_fib_config()
699 static void fib_magic(int cmd, int type, __be32 dst, int dst_len, struct in_ifaddr *ifa) in fib_magic() argument
701 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic()
708 .fc_prefsrc = ifa->ifa_local, in fib_magic()
709 .fc_oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
737 void fib_add_ifaddr(struct in_ifaddr *ifa) in fib_add_ifaddr() argument
[all …]
Digmp.c332 if (fl4->saddr == ifa->ifa_local) in igmpv3_get_srcaddr()
/net/decnet/
Ddn_dev.c78 static void dn_ifaddr_notify(int event, struct dn_ifaddr *ifa);
82 static void dn_send_brd_hello(struct net_device *dev, struct dn_ifaddr *ifa);
83 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.c550 static void fib_magic(int cmd, int type, __le16 dst, int dst_len, struct dn_ifaddr *ifa) in fib_magic() argument
567 .prefsrc = ifa->ifa_local, in fib_magic()
573 .oif = ifa->ifa_dev->dev->ifindex, in fib_magic()
609 static void dn_fib_add_ifaddr(struct dn_ifaddr *ifa) in dn_fib_add_ifaddr() argument
612 fib_magic(RTM_NEWROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_add_ifaddr()
622 static void dn_fib_del_ifaddr(struct dn_ifaddr *ifa) in dn_fib_del_ifaddr() argument
640 if (ifa2->ifa_local == ifa->ifa_local) { in dn_fib_del_ifaddr()
649 fib_magic(RTM_DELROUTE, RTN_LOCAL, ifa->ifa_local, 16, ifa); in dn_fib_del_ifaddr()
651 if (dnet_addr_type(ifa->ifa_local) != RTN_LOCAL) { in dn_fib_del_ifaddr()
652 if (dn_fib_sync_down(ifa->ifa_local, NULL, 0)) in dn_fib_del_ifaddr()
[all …]
Ddn_route.c926 struct dn_ifaddr *ifa; in dnet_select_source() local
932 for (ifa = rcu_dereference(dn_db->ifa_list); in dnet_select_source()
933 ifa != NULL; in dnet_select_source()
934 ifa = rcu_dereference(ifa->ifa_next)) { in dnet_select_source()
935 if (ifa->ifa_scope > scope) in dnet_select_source()
938 saddr = ifa->ifa_local; in dnet_select_source()
941 ret = dn_match_addr(daddr, ifa->ifa_local); in dnet_select_source()
943 saddr = ifa->ifa_local; in dnet_select_source()
945 saddr = ifa->ifa_local; in dnet_select_source()
/net/ipv6/
Daddrconf.c182 static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa);
183 static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa);
695 struct inet6_ifaddr *ifa; in dev_forward_change() local
714 list_for_each_entry(ifa, &idev->addr_list, if_list) { in dev_forward_change()
715 if (ifa->flags&IFA_F_TENTATIVE) in dev_forward_change()
718 addrconf_join_anycast(ifa); in dev_forward_change()
720 addrconf_leave_anycast(ifa); in dev_forward_change()
816 struct inet6_ifaddr *ifa in ipv6_link_dev_addr() local
818 if (ifp_scope >= ipv6_addr_src_scope(&ifa->addr)) in ipv6_link_dev_addr()
837 struct inet6_ifaddr *ifa = NULL; in ipv6_add_addr() local
[all …]
Dndisc.c526 struct inet6_ifaddr *ifa; in ndisc_send_unsol_na() local
533 list_for_each_entry(ifa, &idev->addr_list, if_list) { in ndisc_send_unsol_na()
534 ndisc_send_na(dev, NULL, &in6addr_linklocal_allnodes, &ifa->addr, in ndisc_send_unsol_na()
/net/netfilter/
Dxt_REDIRECT.c46 struct inet6_ifaddr *ifa; in redirect_tg6() local
52 list_for_each_entry(ifa, &idev->addr_list, if_list) { in redirect_tg6()
53 newdst = ifa->addr; in redirect_tg6()
118 struct in_ifaddr *ifa; in redirect_tg4() local
124 if (indev && (ifa = indev->ifa_list)) in redirect_tg4()
125 newdst = ifa->ifa_local; in redirect_tg4()
Dxt_qtaguid.c940 struct in_ifaddr *ifa) in iface_stat_create() argument
950 ifa, net_dev); in iface_stat_create()
957 if (!ifa) { in iface_stat_create()
966 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { in iface_stat_create()
969 ifname, ifa, in iface_stat_create()
970 ifa->ifa_label ? ifa->ifa_label : "(null)"); in iface_stat_create()
971 if (ifa->ifa_label && !strcmp(ifname, ifa->ifa_label)) in iface_stat_create()
976 if (!ifa) { in iface_stat_create()
981 ipaddr = ifa->ifa_local; in iface_stat_create()
1007 struct inet6_ifaddr *ifa) in iface_stat_create_ipv6() argument
[all …]
Dnf_conntrack_broadcast.c47 if (ifa->ifa_broadcast == iph->daddr) { in nf_conntrack_broadcast_help()
48 mask = ifa->ifa_mask; in nf_conntrack_broadcast_help()
Dxt_TPROXY.c70 laddr = ifa->ifa_local; in tproxy_laddr4()
367 struct inet6_ifaddr *ifa; in tproxy_laddr6() local
377 list_for_each_entry(ifa, &indev->addr_list, if_list) { in tproxy_laddr6()
378 if (ifa->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED)) in tproxy_laddr6()
381 laddr = &ifa->addr; in tproxy_laddr6()
Dxt_osf.c181 if (inet_ifa_match(ip->saddr, ifa)) { in xt_osf_ttl()
/net/mac80211/
Dmain.c297 struct in_ifaddr *ifa = arg; in ieee80211_ifa_changed() local
301 struct net_device *ndev = ifa->ifa_dev->dev; in ieee80211_ifa_changed()
331 ifa = idev->ifa_list; in ieee80211_ifa_changed()
332 while (ifa) { in ieee80211_ifa_changed()
334 bss_conf->arp_addr_list[c] = ifa->ifa_address; in ieee80211_ifa_changed()
335 ifa = ifa->ifa_next; in ieee80211_ifa_changed()
356 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)arg; in ieee80211_ifa6_changed() local
357 struct inet6_dev *idev = ifa->idev; in ieee80211_ifa6_changed()
358 struct net_device *ndev = ifa->idev->dev; in ieee80211_ifa6_changed()
/net/appletalk/
Daarp.c727 struct atalk_iface *ifa; in aarp_rcv() local
756 ifa = atalk_find_dev(dev); in aarp_rcv()
757 if (!ifa) in aarp_rcv()
760 if (ifa->status & ATIF_PROBE && in aarp_rcv()
761 ifa->address.s_node == ea->pa_dst_node && in aarp_rcv()
762 ifa->address.s_net == ea->pa_dst_net) { in aarp_rcv()
763 ifa->status |= ATIF_PROBE_FAIL; /* Fail the probe (in use) */ in aarp_rcv()
822 ma = &ifa->address; in aarp_rcv()
/net/ipv6/netfilter/
Dnf_nat_masquerade_ipv6.c84 struct inet6_ifaddr *ifa = ptr; in masq_inet_event() local
87 netdev_notifier_info_init(&info, ifa->idev->dev); in masq_inet_event()
/net/sctp/
Dprotocol.c138 struct in_ifaddr *ifa; in sctp_v4_copy_addrlist() local
147 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { in sctp_v4_copy_addrlist()
153 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist()
750 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in sctp_inetaddr_event() local
753 struct net *net = dev_net(ifa->ifa_dev->dev); in sctp_inetaddr_event()
762 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_inetaddr_event()
776 ifa->ifa_local) { in sctp_inetaddr_event()
Dipv6.c92 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in sctp_inet6addr_event() local
95 struct net *net = dev_net(ifa->idev->dev); in sctp_inet6addr_event()
104 addr->a.v6.sin6_addr = ifa->addr; in sctp_inet6addr_event()
105 addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; in sctp_inet6addr_event()
119 &ifa->addr)) { in sctp_inet6addr_event()
/net/atm/
Dclip.c576 void *ifa) in clip_inet_event() argument
581 in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; in clip_inet_event()