main.h (bd5b80d51a6c4a68f7d4b9b92c495329f47e53d4) | main.h (0aca86cd92282359d2f7202804bd92e7d092c04e) |
---|---|
1/* Copyright (C) 2007-2012 B.A.T.M.A.N. contributors: 2 * 3 * Marek Lindner, Simon Wunderlich 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of version 2 of the GNU General Public 7 * License as published by the Free Software Foundation. 8 * --- 151 unchanged lines hidden (view full) --- 160batadv_recv_handler_register(uint8_t packet_type, 161 int (*recv_handler)(struct sk_buff *, 162 struct batadv_hard_iface *)); 163void batadv_recv_handler_unregister(uint8_t packet_type); 164int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops); 165int batadv_algo_select(struct batadv_priv *bat_priv, char *name); 166int batadv_algo_seq_print_text(struct seq_file *seq, void *offset); 167 | 1/* Copyright (C) 2007-2012 B.A.T.M.A.N. contributors: 2 * 3 * Marek Lindner, Simon Wunderlich 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of version 2 of the GNU General Public 7 * License as published by the Free Software Foundation. 8 * --- 151 unchanged lines hidden (view full) --- 160batadv_recv_handler_register(uint8_t packet_type, 161 int (*recv_handler)(struct sk_buff *, 162 struct batadv_hard_iface *)); 163void batadv_recv_handler_unregister(uint8_t packet_type); 164int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops); 165int batadv_algo_select(struct batadv_priv *bat_priv, char *name); 166int batadv_algo_seq_print_text(struct seq_file *seq, void *offset); 167 |
168/* all messages related to routing / flooding / broadcasting / etc */ | 168/** 169 * enum batadv_dbg_level - available log levels 170 * @BATADV_DBG_BATMAN: OGM and TQ computations related messages 171 * @BATADV_DBG_ROUTES: route added / changed / deleted 172 * @BATADV_DBG_TT: translation table messages 173 * @BATADV_DBG_BLA: bridge loop avoidance messages 174 * @BATADV_DBG_ALL: the union of all the above log levels 175 */ |
169enum batadv_dbg_level { 170 BATADV_DBG_BATMAN = BIT(0), | 176enum batadv_dbg_level { 177 BATADV_DBG_BATMAN = BIT(0), |
171 BATADV_DBG_ROUTES = BIT(1), /* route added / changed / deleted */ 172 BATADV_DBG_TT = BIT(2), /* translation table operations */ 173 BATADV_DBG_BLA = BIT(3), /* bridge loop avoidance */ | 178 BATADV_DBG_ROUTES = BIT(1), 179 BATADV_DBG_TT = BIT(2), 180 BATADV_DBG_BLA = BIT(3), |
174 BATADV_DBG_ALL = 15, 175}; 176 177#ifdef CONFIG_BATMAN_ADV_DEBUG 178int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...) 179__printf(2, 3); 180 181#define batadv_dbg(type, bat_priv, fmt, arg...) \ --- 100 unchanged lines hidden --- | 181 BATADV_DBG_ALL = 15, 182}; 183 184#ifdef CONFIG_BATMAN_ADV_DEBUG 185int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...) 186__printf(2, 3); 187 188#define batadv_dbg(type, bat_priv, fmt, arg...) \ --- 100 unchanged lines hidden --- |