Lines Matching defs:address

66                 struct in_addr address;
70 r = sd_dhcp_lease_get_address(link->dhcp_lease, &address);
72 return log_link_warning_errno(link, r, "DHCP error: could not get address: %m");
90 route_gw->prefsrc.in = address;
103 route->prefsrc.in = address;
147 _cleanup_address_free_ Address *address = NULL;
182 r = address_new(&address);
216 address->family = AF_INET;
217 address->in_addr.in = addr;
218 address->prefixlen = prefixlen;
220 address_remove(address, link, &link_address_remove_handler);
271 log_link_error_errno(link, r, "Could not set DHCPv4 address: %m");
282 struct in_addr *address,
289 assert(address);
300 addr->in_addr.in.s_addr = address->s_addr;
304 addr->broadcast.s_addr = address->s_addr | ~netmask->s_addr;
306 /* allow reusing an existing address and simply update its lifetime
317 struct in_addr address;
335 r = sd_dhcp_lease_get_address(lease, &address);
337 return log_link_warning_errno(link, r, "DHCP error: no address: %m");
349 r = dhcp4_update_address(link, &address, &netmask, lifetime);
351 log_link_warning_errno(link, r, "Could not update IP address: %m");
361 struct in_addr address;
375 r = sd_dhcp_lease_get_address(lease, &address);
377 return log_link_error_errno(link, r, "DHCP error: No address: %m");
392 LOG_LINK_MESSAGE(link, "DHCPv4 address %u.%u.%u.%u/%u via %u.%u.%u.%u",
393 ADDRESS_FMT_VAL(address),
396 "ADDRESS=%u.%u.%u.%u", ADDRESS_FMT_VAL(address),
403 LOG_LINK_MESSAGE(link, "DHCPv4 address %u.%u.%u.%u/%u",
404 ADDRESS_FMT_VAL(address),
406 "ADDRESS=%u.%u.%u.%u", ADDRESS_FMT_VAL(address),
459 r = dhcp4_update_address(link, &address, &netmask, lifetime);
461 log_link_warning_errno(link, r, "Could not update IP address: %m");