- uint8_t *a = (uint8_t *) &addr->addr.in;
- char ipaddr[64];
-
- if ((addr->flags & DEVADDR_FAMILY) == DEVADDR_INET4) {
- D(SYSTEM, "ifconfig %s del %d.%d.%d.%d\n",
- dev->ifname, a[0], a[1], a[2], a[3]);
- } else {
- inet_ntop(AF_INET6, &addr->addr.in6, ipaddr, sizeof(struct in6_addr));
- D(SYSTEM, "ifconfig %s del %s/%d\n",
- dev->ifname, ipaddr, addr->mask);
- return -1;
- }