Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[sfrench/cifs-2.6.git] / drivers / staging / batman-adv / proc.h
1 /*
2  * Copyright (C) 2007-2009 B.A.T.M.A.N. contributors:
3  *
4  * Marek Lindner, Simon Wunderlich
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2 of the GNU General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  * 02110-1301, USA
19  *
20  */
21
22 #include <linux/proc_fs.h>
23 #include <linux/seq_file.h>
24
25 #define PROC_ROOT_DIR "batman-adv"
26 #define PROC_FILE_INTERFACES "interfaces"
27 #define PROC_FILE_ORIG_INTERVAL "orig_interval"
28 #define PROC_FILE_ORIGINATORS "originators"
29 #define PROC_FILE_GATEWAYS "gateways"
30 #define PROC_FILE_LOG "log"
31 #define PROC_FILE_LOG_LEVEL "log_level"
32 #define PROC_FILE_TRANST_LOCAL "transtable_local"
33 #define PROC_FILE_TRANST_GLOBAL "transtable_global"
34 #define PROC_FILE_VIS "vis"
35 #define PROC_FILE_VIS_FORMAT "vis_format"
36 #define PROC_FILE_AGGR "aggregate_ogm"
37
38 void cleanup_procfs(void);
39 int setup_procfs(void);
40
41 /* While scanning for vis-entries of a particular vis-originator
42  * this list collects its interfaces to create a subgraph/cluster
43  * out of them later
44  */
45 struct vis_if_list {
46         uint8_t addr[ETH_ALEN];
47         bool primary;
48         struct vis_if_list *next;
49 };