#include <sys/time.h>
#include <sys/socket.h>
+#include <arpa/inet.h>
#include "device.h"
#include "interface-ip.h"
int max_age;
};
+static inline int system_get_addr_family(unsigned int flags)
+{
+ if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6)
+ return AF_INET6;
+ else
+ return AF_INET;
+}
+
+static inline int system_get_addr_len(unsigned int flags)
+{
+ if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6)
+ return sizeof(struct in_addr);
+ else
+ return sizeof(struct in6_addr);
+}
+
int system_init(void);
int system_bridge_addbr(struct device *bridge, struct bridge_config *cfg);
int system_if_dump_stats(struct device *dev, struct blob_buf *b);
struct device *system_if_get_parent(struct device *dev);
bool system_if_force_external(const char *ifname);
+void system_if_apply_settings(struct device *dev, struct device_settings *s);
+
int system_add_address(struct device *dev, struct device_addr *addr);
int system_del_address(struct device *dev, struct device_addr *addr);