Home | History | Annotate | Download | only in libnetutils

Lines Matching full:address

252  * Adds or deletes an IP address on an interface.
255 * - RTM_NEWADDR (to add a new address)
256 * - RTM_DELADDR (to delete an existing address)
260 int ifc_act_on_address(int action, const char *name, const char *address,
270 // Allow for IPv6 address, headers, IPv4 broadcast addr and padding.
291 ret = string_to_ip(address, &ss);
296 // Determine address type and length.
318 // Interface address message header.
323 // Routing attribute. Contains the actual IP address.
369 int ifc_add_address(const char *name, const char *address, int prefixlen) {
370 return ifc_act_on_address(RTM_NEWADDR, name, address, prefixlen);
373 int ifc_del_address(const char *name, const char * address, int prefixlen) {
374 return ifc_act_on_address(RTM_DELADDR, name, address, prefixlen);
399 // Put the colons back into the address.
408 // Don't delete the link-local address as well, or it will disable IPv6
416 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname,
634 /* IPv4. Clear connections on the IP address. */
652 * empty IPv6 address.
655 // This implicitly specifies an address of ::, i.e., kill all IPv6 sockets.
692 in_addr_t address,
707 if (ifc_set_addr(ifname, address)) {
708 printerr("failed to set ipaddr %s: %s\n", ipaddr_to_string(address), strerror(errno));