- uint8_t *a1 = (uint8_t *) &route->addr.in;
- uint8_t *a2 = (uint8_t *) &route->nexthop.in;
- char addr[40], gw[40] = "", devstr[64] = "";
+ return system_address_msg(dev, addr, "add");
+}
+
+int system_del_address(struct device *dev, struct device_addr *addr)
+{
+ return system_address_msg(dev, addr, "del");
+}
+
+static int system_route_msg(struct device *dev, struct device_route *route, const char *type)
+{
+ char addr[64], gw[64] = " gw ", devstr[64] = "";
+ int af = system_get_addr_family(route->flags);
+ int alen = system_get_addr_len(route->flags);
+ static uint32_t zero_addr[4];