4 #include <sys/socket.h>
10 #include <libubox/uloop.h>
17 #define DEFAULT_MAIN_PATH "./dummy"
18 #define DEFAULT_HOTPLUG_PATH "./scripts/hotplug-cmd"
20 #define DEFAULT_MAIN_PATH "/lib/netifd"
21 #define DEFAULT_HOTPLUG_PATH "/sbin/hotplug-cmd"
24 extern char *hotplug_cmd_path;
25 extern unsigned int debug_mask;
34 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
35 #define D(level, format, ...) do { \
36 if (debug_mask & (1 << (DEBUG_ ## level))) \
37 DPRINTF(format, ##__VA_ARGS__); \
40 #define DPRINTF(format, ...) no_debug(0, format, ## __VA_ARGS__)
41 #define D(level, format, ...) no_debug(DEBUG_ ## level, format, ## __VA_ARGS__)
44 static inline void no_debug(int level, const char *fmt, ...)
51 extern const char *main_path;
52 void netifd_restart(void);
53 void netifd_reload(void);