/net/ipv4/ |
D | devinet.c | 114 static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) in inet_hash_insert() argument 116 u32 hash = inet_addr_hash(net, ifa->ifa_local); in inet_hash_insert() 119 hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]); in inet_hash_insert() 123 static void inet_hash_remove(struct in_ifaddr *ifa) in inet_hash_remove() argument 126 hlist_del_init_rcu(&ifa->hash); in inet_hash_remove() 142 struct in_ifaddr *ifa; in __ip_dev_find() local 145 hlist_for_each_entry_rcu(ifa, &inet_addr_lst[hash], hash) { in __ip_dev_find() 146 if (ifa->ifa_local == addr) { in __ip_dev_find() 147 struct net_device *dev = ifa->ifa_dev->dev; in __ip_dev_find() 202 struct in_ifaddr *ifa = container_of(head, struct in_ifaddr, rcu_head); in inet_rcu_free_ifa() local [all …]
|
D | fib_frontend.c | 421 struct in_ifaddr *ifa; in rtentry_to_fib_config() local 426 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) in rtentry_to_fib_config() 427 if (strcmp(ifa->ifa_label, devname) == 0) in rtentry_to_fib_config() 429 if (ifa == NULL) in rtentry_to_fib_config() 431 cfg->fc_prefsrc = ifa->ifa_local; in rtentry_to_fib_config() 697 static void fib_magic(int cmd, int type, __be32 dst, int dst_len, struct in_ifaddr *ifa) in fib_magic() argument 699 struct net *net = dev_net(ifa->ifa_dev->dev); in fib_magic() 706 .fc_prefsrc = ifa->ifa_local, in fib_magic() 707 .fc_oif = ifa->ifa_dev->dev->ifindex, in fib_magic() 735 void fib_add_ifaddr(struct in_ifaddr *ifa) in fib_add_ifaddr() argument [all …]
|
/net/decnet/ |
D | dn_dev.c | 77 static void dn_ifaddr_notify(int event, struct dn_ifaddr *ifa); 81 static void dn_send_brd_hello(struct net_device *dev, struct dn_ifaddr *ifa); 82 static void dn_send_ptp_hello(struct net_device *dev, struct dn_ifaddr *ifa); 316 struct dn_ifaddr *ifa; in dn_dev_alloc_ifa() local 318 ifa = kzalloc(sizeof(*ifa), GFP_KERNEL); in dn_dev_alloc_ifa() 320 return ifa; in dn_dev_alloc_ifa() 323 static void dn_dev_free_ifa(struct dn_ifaddr *ifa) in dn_dev_free_ifa() argument 325 kfree_rcu(ifa, rcu); in dn_dev_free_ifa() 355 static int dn_dev_insert_ifa(struct dn_dev *dn_db, struct dn_ifaddr *ifa) in dn_dev_insert_ifa() argument 367 if (ifa1->ifa_local == ifa->ifa_local) in dn_dev_insert_ifa() [all …]
|
D | dn_fib.c | 550 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 …]
|
D | dn_route.c | 920 struct dn_ifaddr *ifa; in dnet_select_source() local 926 for (ifa = rcu_dereference(dn_db->ifa_list); in dnet_select_source() 927 ifa != NULL; in dnet_select_source() 928 ifa = rcu_dereference(ifa->ifa_next)) { in dnet_select_source() 929 if (ifa->ifa_scope > scope) in dnet_select_source() 932 saddr = ifa->ifa_local; in dnet_select_source() 935 ret = dn_match_addr(daddr, ifa->ifa_local); in dnet_select_source() 937 saddr = ifa->ifa_local; in dnet_select_source() 939 saddr = ifa->ifa_local; in dnet_select_source()
|
/net/ipv6/ |
D | addrconf.c | 185 static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); 186 static void ipv6_ifa_notify(int event, struct inet6_ifaddr *ifa); 711 struct inet6_ifaddr *ifa; in dev_forward_change() local 730 list_for_each_entry(ifa, &idev->addr_list, if_list) { in dev_forward_change() 731 if (ifa->flags&IFA_F_TENTATIVE) in dev_forward_change() 734 addrconf_join_anycast(ifa); in dev_forward_change() 736 addrconf_leave_anycast(ifa); in dev_forward_change() 831 struct inet6_ifaddr *ifa in ipv6_link_dev_addr() local 833 if (ifp_scope >= ipv6_addr_src_scope(&ifa->addr)) in ipv6_link_dev_addr() 851 struct inet6_ifaddr *ifa = NULL; in ipv6_add_addr() local [all …]
|
D | ndisc.c | 524 struct inet6_ifaddr *ifa; in ndisc_send_unsol_na() local 531 list_for_each_entry(ifa, &idev->addr_list, if_list) { in ndisc_send_unsol_na() 532 ndisc_send_na(dev, NULL, &in6addr_linklocal_allnodes, &ifa->addr, in ndisc_send_unsol_na()
|
/net/netfilter/ |
D | xt_REDIRECT.c | 46 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()
|
D | xt_qtaguid.c | 942 struct in_ifaddr *ifa) in iface_stat_create() argument 952 ifa, net_dev); in iface_stat_create() 959 if (!ifa) { in iface_stat_create() 968 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { in iface_stat_create() 971 ifname, ifa, in iface_stat_create() 972 ifa->ifa_label ? ifa->ifa_label : "(null)"); in iface_stat_create() 973 if (ifa->ifa_label && !strcmp(ifname, ifa->ifa_label)) in iface_stat_create() 978 if (!ifa) { in iface_stat_create() 983 ipaddr = ifa->ifa_local; in iface_stat_create() 1009 struct inet6_ifaddr *ifa) in iface_stat_create_ipv6() argument [all …]
|
D | xt_TPROXY.c | 63 laddr = ifa->ifa_local; in tproxy_laddr4() 200 struct inet6_ifaddr *ifa; in tproxy_laddr6() local 210 list_for_each_entry(ifa, &indev->addr_list, if_list) { in tproxy_laddr6() 211 if (ifa->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED)) in tproxy_laddr6() 214 laddr = &ifa->addr; in tproxy_laddr6()
|
D | nf_conntrack_broadcast.c | 47 if (ifa->ifa_broadcast == iph->daddr) { in nf_conntrack_broadcast_help() 48 mask = ifa->ifa_mask; in nf_conntrack_broadcast_help()
|
D | xt_osf.c | 175 if (inet_ifa_match(ip->saddr, ifa)) { in xt_osf_ttl()
|
/net/mac80211/ |
D | main.c | 303 struct in_ifaddr *ifa = arg; in ieee80211_ifa_changed() local 307 struct net_device *ndev = ifa->ifa_dev->dev; in ieee80211_ifa_changed() 337 ifa = idev->ifa_list; in ieee80211_ifa_changed() 338 while (ifa) { in ieee80211_ifa_changed() 340 bss_conf->arp_addr_list[c] = ifa->ifa_address; in ieee80211_ifa_changed() 341 ifa = ifa->ifa_next; in ieee80211_ifa_changed() 362 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)arg; in ieee80211_ifa6_changed() local 363 struct inet6_dev *idev = ifa->idev; in ieee80211_ifa6_changed() 364 struct net_device *ndev = ifa->idev->dev; in ieee80211_ifa6_changed()
|
/net/appletalk/ |
D | aarp.c | 726 struct atalk_iface *ifa; in aarp_rcv() local 755 ifa = atalk_find_dev(dev); in aarp_rcv() 756 if (!ifa) in aarp_rcv() 759 if (ifa->status & ATIF_PROBE && in aarp_rcv() 760 ifa->address.s_node == ea->pa_dst_node && in aarp_rcv() 761 ifa->address.s_net == ea->pa_dst_net) { in aarp_rcv() 762 ifa->status |= ATIF_PROBE_FAIL; /* Fail the probe (in use) */ in aarp_rcv() 821 ma = &ifa->address; in aarp_rcv()
|
/net/ipv6/netfilter/ |
D | ip6t_MASQUERADE.c | 91 struct inet6_ifaddr *ifa = ptr; in masq_inet_event() local 93 return masq_device_event(this, event, ifa->idev->dev); in masq_inet_event()
|
/net/sctp/ |
D | protocol.c | 145 struct in_ifaddr *ifa; in sctp_v4_copy_addrlist() local 154 for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { in sctp_v4_copy_addrlist() 160 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist() 748 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in sctp_inetaddr_event() local 751 struct net *net = dev_net(ifa->ifa_dev->dev); in sctp_inetaddr_event() 760 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_inetaddr_event() 774 ifa->ifa_local) { in sctp_inetaddr_event()
|
D | ipv6.c | 99 struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; in sctp_inet6addr_event() local 102 struct net *net = dev_net(ifa->idev->dev); in sctp_inet6addr_event() 111 addr->a.v6.sin6_addr = ifa->addr; in sctp_inet6addr_event() 112 addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; in sctp_inet6addr_event() 126 &ifa->addr)) { in sctp_inet6addr_event()
|
/net/atm/ |
D | clip.c | 575 void *ifa) in clip_inet_event() argument 579 in_dev = ((struct in_ifaddr *)ifa)->ifa_dev; in clip_inet_event()
|