Lines Matching refs:in_addr
132 in6_addr_equal(&address->in_addr.in6, &address->link->ipv6ll_address)) in address_free()
212 a->broadcast.s_addr = a->in_addr.in.s_addr | htobe32(UINT32_C(0xffffffff) >> a->prefixlen); in address_set_broadcast()
261 return be32toh(a->in_addr.in.s_addr) >> (32 - a->prefixlen); in address_prefix()
278 siphash24_compress(&a->in_addr, FAMILY_ADDRESS_SIZE(a->family), state); in address_kernel_hash_func()
307 return memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); in address_kernel_compare_func()
330 siphash24_compress(&a->in_addr, FAMILY_ADDRESS_SIZE(a->family), state); in address_hash_func()
357 r = memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); in address_compare_func()
437 masked = address->in_addr; in address_set_masquerade()
478 in6_addr_is_link_local(&address->in_addr.in6) && in address_update()
481 link->ipv6ll_address = address->in_addr.in6; in address_update()
569 tmp->in_addr = *address; in link_get_address()
591 if (!in_addr_equal(family, &a->in_addr, address)) in link_get_address()
661 (void) in_addr_to_string(address->family, &address->in_addr, &addr); in log_address_debug()
703 r = netlink_message_append_in_addr_union(m, IFA_LOCAL, address->family, &address->in_addr); in address_set_netlink_message()
793 if (in_addr_equal(address->family, &address->in_addr, &route->prefsrc)) in link_address_is_dynamic()
872 a->in_addr.in6 = address; in link_drop_ipv6ll_addresses()
902 if (address->family == AF_INET6 && in6_addr_is_link_local(&address->in_addr.in6)) in link_drop_foreign_addresses()
906 …if (link->flags & IFF_LOOPBACK && in_addr_is_localhost_one(address->family, &address->in_addr) > 0) in link_drop_foreign_addresses()
982 union in_addr_union in_addr; in address_acquire() local
990 if (in_addr_is_set(original->family, &original->in_addr)) { in address_acquire()
997 r = address_pool_acquire(link->manager, original->family, original->prefixlen, &in_addr); in address_acquire()
1005 in_addr.in.s_addr = in_addr.in.s_addr | htobe32(1); in address_acquire()
1007 in_addr.in6.s6_addr[15] |= 1; in address_acquire()
1013 na->in_addr = in_addr; in address_acquire()
1386 r = sd_netlink_message_read_in_addr(message, IFA_LOCAL, &tmp->in_addr.in); in manager_rtnl_process_address()
1397 if (in4_addr_equal(&tmp->in_addr.in, &tmp->in_addr_peer.in)) in manager_rtnl_process_address()
1417 r = sd_netlink_message_read_in6_addr(message, IFA_LOCAL, &tmp->in_addr.in6); in manager_rtnl_process_address()
1427 … r = sd_netlink_message_read_in6_addr(message, IFA_ADDRESS, &tmp->in_addr.in6); in manager_rtnl_process_address()
1469 … (void) in_addr_prefix_to_string(tmp->family, &tmp->in_addr, tmp->prefixlen, &buf); in manager_rtnl_process_address()
1537 n->broadcast = (struct in_addr) {}; in config_parse_broadcast()
1547 n->broadcast = (struct in_addr) {}; in config_parse_broadcast()
1653 n->in_addr = buffer; in config_parse_address()
1977 if (in_addr_is_localhost(address->family, &address->in_addr) > 0) in address_section_verify()
1979 else if (in_addr_is_link_local(address->family, &address->in_addr) > 0) in address_section_verify()
1986 else if (in4_addr_is_link_local(&address->in_addr.in)) in address_section_verify()
2026 … (void) in_addr_prefix_to_string(address->family, &address->in_addr, address->prefixlen, &buf); in network_drop_invalid_addresses()