4 #include <sys/socket.h>
10 #include <libubox/uloop.h>
16 extern unsigned int debug_mask;
25 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
26 #define D(level, format, ...) if (debug_mask & (1 << (DEBUG_ ## level))) DPRINTF(format, ##__VA_ARGS__)
28 #define DPRINTF(format, ...) no_debug(0, format, ## __VA_ARGS__)
29 #define D(level, format, ...) no_debug(DEBUG_ ## level, format, ## __VA_ARGS__)
32 static inline void no_debug(int level, const char *fmt, ...)
39 extern const char *main_path;
40 void netifd_restart(void);
41 void netifd_reload(void);