77c8719d17cf7d7b8fc1a2403f3bebabed4e0b5a
4 #include <sys/socket.h>
10 #include <libubox/list.h>
11 #include <libubox/uloop.h>
17 #define DPRINTF(format, ...) fprintf(stderr, "%s(%d): " format, __func__, __LINE__, ## __VA_ARGS__)
19 #define DPRINTF(...) do {} while(0)
22 #define __init __attribute__((constructor))
27 extern struct uci_context
*uci_ctx
;
28 extern bool config_init
;
30 int avl_strcmp(const void *k1
, const void *k2
, void *ptr
);
31 void config_init_interfaces(const char *name
);
34 static inline int fls(int x
)
40 if (!(x
& 0xffff0000u
)) {
44 if (!(x
& 0xff000000u
)) {
48 if (!(x
& 0xf0000000u
)) {
52 if (!(x
& 0xc0000000u
)) {
56 if (!(x
& 0x80000000u
)) {