- if ((addr->flags & DEVADDR_FAMILY) == DEVADDR_INET4) {
- DPRINTF("ifconfig %s del %d.%d.%d.%d\n",
- dev->ifname, a[0], a[1], a[2], a[3]);
- } else {
- return -1;
- }
+void
+system_if_apply_settings(struct device *dev, struct device_settings *s)
+{
+}
+
+static int system_address_msg(struct device *dev, struct device_addr *addr, const char *type)
+{
+ char ipaddr[64];
+ int af = system_get_addr_family(addr->flags);
+
+ D(SYSTEM, "ifconfig %s %s %s/%d\n",
+ dev->ifname, type, inet_ntop(af, &addr->addr.in, ipaddr, sizeof(ipaddr)),
+ addr->mask);