Lines Matching refs:prefixlen
190 if (a->prefixlen > 30) in address_needs_to_set_broadcast()
212 a->broadcast.s_addr = a->in_addr.in.s_addr | htobe32(UINT32_C(0xffffffff) >> a->prefixlen); in address_set_broadcast()
255 if (a->prefixlen == 0) in address_prefix()
259 return be32toh(a->in_addr_peer.in.s_addr) >> (32 - a->prefixlen); in address_prefix()
261 return be32toh(a->in_addr.in.s_addr) >> (32 - a->prefixlen); in address_prefix()
271 siphash24_compress(&a->prefixlen, sizeof(a->prefixlen), state); in address_kernel_hash_func()
296 r = CMP(a1->prefixlen, a2->prefixlen); in address_kernel_compare_func()
329 siphash24_compress(&a->prefixlen, sizeof(a->prefixlen), state); in address_hash_func()
353 r = CMP(a1->prefixlen, a2->prefixlen); in address_compare_func()
438 r = in_addr_mask(address->family, &masked, address->prefixlen); in address_set_masquerade()
442 …add_masquerade(&address->link->manager->fw_ctx, add, address->family, &masked, address->prefixlen); in address_set_masquerade()
547 …nk *link, int family, const union in_addr_union *address, unsigned char prefixlen, Address **ret) { in link_get_address() argument
559 if (prefixlen != 0) { in link_get_address()
570 tmp->prefixlen = prefixlen; in link_get_address()
606 …*manager, int family, const union in_addr_union *address, unsigned char prefixlen, Address **ret) { in manager_get_address() argument
617 if (link_get_address(link, family, address, prefixlen, ret) >= 0) in manager_get_address()
670 strnull(addr), peer ? " peer " : "", strempty(peer), address->prefixlen, in log_address_debug()
684 r = sd_rtnl_message_addr_set_prefixlen(m, address->prefixlen); in address_set_netlink_message()
828 unsigned char flags, prefixlen; in link_drop_ipv6ll_addresses() local
848 r = sd_rtnl_message_addr_get_prefixlen(addr, &prefixlen); in link_drop_ipv6ll_addresses()
873 a->prefixlen = prefixlen; in link_drop_ipv6ll_addresses()
997 r = address_pool_acquire(link->manager, original->family, original->prefixlen, &in_addr); in address_acquire()
1358 r = sd_rtnl_message_addr_get_prefixlen(message, &tmp->prefixlen); 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()
1594 unsigned char prefixlen; in config_parse_address() local
1617 … r = in_addr_prefix_from_string_auto_internal(rvalue, PREFIXLEN_REFUSE, &f, &buffer, &prefixlen); in config_parse_address()
1624 … r = in_addr_prefix_from_string_auto_internal(rvalue, PREFIXLEN_LEGACY, &f, &buffer, &prefixlen); in config_parse_address()
1640 if ((f == AF_INET && prefixlen < 8) || in config_parse_address()
1641 (f == AF_INET6 && prefixlen < 64)) { in config_parse_address()
1644 prefixlen, rvalue); in config_parse_address()
1650 n->prefixlen = prefixlen; in config_parse_address()
1958 (address->family == AF_INET6 || address->prefixlen > 30 || in address_section_verify()
2026 … (void) in_addr_prefix_to_string(address->family, &address->in_addr, address->prefixlen, &buf); in network_drop_invalid_addresses()