Lines Matching refs:ifa1
357 struct in_ifaddr *ifa, *ifa1; in __inet_del_ifa() local
364 ifa1 = rtnl_dereference(*ifap); in __inet_del_ifa()
373 if (!(ifa1->ifa_flags & IFA_F_SECONDARY)) { in __inet_del_ifa()
374 struct in_ifaddr __rcu **ifap1 = &ifa1->ifa_next; in __inet_del_ifa()
378 ifa1->ifa_scope <= ifa->ifa_scope) in __inet_del_ifa()
382 ifa1->ifa_mask != ifa->ifa_mask || in __inet_del_ifa()
383 !inet_ifa_match(ifa1->ifa_address, ifa)) { in __inet_del_ifa()
410 if (ifa1->ifa_mask == ifa->ifa_mask && in __inet_del_ifa()
411 inet_ifa_match(ifa1->ifa_address, ifa)) in __inet_del_ifa()
412 fib_del_ifaddr(ifa, ifa1); in __inet_del_ifa()
418 *ifap = ifa1->ifa_next; in __inet_del_ifa()
419 inet_hash_remove(ifa1); in __inet_del_ifa()
431 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa()
432 blocking_notifier_call_chain(&inetaddr_chain, NETDEV_DOWN, ifa1); in __inet_del_ifa()
454 if (ifa1->ifa_mask != ifa->ifa_mask || in __inet_del_ifa()
455 !inet_ifa_match(ifa1->ifa_address, ifa)) in __inet_del_ifa()
462 inet_free_ifa(ifa1); in __inet_del_ifa()
482 struct in_ifaddr *ifa1; in __inet_insert_ifa() local
499 ifa1 = rtnl_dereference(*ifap); in __inet_insert_ifa()
501 while (ifa1) { in __inet_insert_ifa()
502 if (!(ifa1->ifa_flags & IFA_F_SECONDARY) && in __inet_insert_ifa()
503 ifa->ifa_scope <= ifa1->ifa_scope) in __inet_insert_ifa()
504 last_primary = &ifa1->ifa_next; in __inet_insert_ifa()
505 if (ifa1->ifa_mask == ifa->ifa_mask && in __inet_insert_ifa()
506 inet_ifa_match(ifa1->ifa_address, ifa)) { in __inet_insert_ifa()
507 if (ifa1->ifa_local == ifa->ifa_local) { in __inet_insert_ifa()
511 if (ifa1->ifa_scope != ifa->ifa_scope) { in __inet_insert_ifa()
519 ifap = &ifa1->ifa_next; in __inet_insert_ifa()
520 ifa1 = rtnl_dereference(*ifap); in __inet_insert_ifa()
932 struct in_ifaddr *ifa1; in find_matching_ifa() local
937 in_dev_for_each_ifa_rtnl(ifa1, in_dev) { in find_matching_ifa()
938 if (ifa1->ifa_mask == ifa->ifa_mask && in find_matching_ifa()
939 inet_ifa_match(ifa1->ifa_address, ifa) && in find_matching_ifa()
940 ifa1->ifa_local == ifa->ifa_local) in find_matching_ifa()
941 return ifa1; in find_matching_ifa()