diff options
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 610eaf0759ae..27ad734511a9 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -72,9 +72,11 @@ | |||
72 | #define RESET_PROTECTION_MS 30000 | 72 | #define RESET_PROTECTION_MS 30000 |
73 | #define EXPECTED_SEQNO_RANGE 65536 | 73 | #define EXPECTED_SEQNO_RANGE 65536 |
74 | 74 | ||
75 | #define MESH_INACTIVE 0 | 75 | enum mesh_state { |
76 | #define MESH_ACTIVE 1 | 76 | MESH_INACTIVE, |
77 | #define MESH_DEACTIVATING 2 | 77 | MESH_ACTIVE, |
78 | MESH_DEACTIVATING | ||
79 | }; | ||
78 | 80 | ||
79 | #define BCAST_QUEUE_LEN 256 | 81 | #define BCAST_QUEUE_LEN 256 |
80 | #define BATMAN_QUEUE_LEN 256 | 82 | #define BATMAN_QUEUE_LEN 256 |
@@ -89,10 +91,11 @@ | |||
89 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 91 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
90 | 92 | ||
91 | /* all messages related to routing / flooding / broadcasting / etc */ | 93 | /* all messages related to routing / flooding / broadcasting / etc */ |
92 | #define DBG_BATMAN 1 | 94 | enum dbg_level { |
93 | /* route or tt entry added / changed / deleted */ | 95 | DBG_BATMAN = 1 << 0, |
94 | #define DBG_ROUTES 2 | 96 | DBG_ROUTES = 1 << 1, /* route added / changed / deleted */ |
95 | #define DBG_ALL 3 | 97 | DBG_ALL = 3 |
98 | }; | ||
96 | 99 | ||
97 | 100 | ||
98 | /* | 101 | /* |