main.c (3193e8fdfa355289892661d206d1954114a7be95) main.c (9cfc7bd608b97463993b4f3e4775d99022253f8d)
1/*
2 * Copyright (C) 2007-2012 B.A.T.M.A.N. contributors:
1/* Copyright (C) 2007-2012 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
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 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301, USA
19 *
20 */
21
22#include "main.h"
23#include "bat_sysfs.h"
24#include "bat_debugfs.h"
25#include "routing.h"
26#include "send.h"
27#include "originator.h"

--- 4 unchanged lines hidden (view full) ---

32#include "gateway_client.h"
33#include "bridge_loop_avoidance.h"
34#include "vis.h"
35#include "hash.h"
36#include "bat_algo.h"
37
38
39/* List manipulations on hardif_list have to be rtnl_lock()'ed,
18 */
19
20#include "main.h"
21#include "bat_sysfs.h"
22#include "bat_debugfs.h"
23#include "routing.h"
24#include "send.h"
25#include "originator.h"

--- 4 unchanged lines hidden (view full) ---

30#include "gateway_client.h"
31#include "bridge_loop_avoidance.h"
32#include "vis.h"
33#include "hash.h"
34#include "bat_algo.h"
35
36
37/* List manipulations on hardif_list have to be rtnl_lock()'ed,
40 * list traversals just rcu-locked */
38 * list traversals just rcu-locked
39 */
41struct list_head batadv_hardif_list;
42static int (*recv_packet_handler[256])(struct sk_buff *, struct hard_iface *);
43char batadv_routing_algo[20] = "BATMAN_IV";
44static struct hlist_head bat_algo_list;
45
46unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
47
48struct workqueue_struct *batadv_event_workqueue;

--- 5 unchanged lines hidden (view full) ---

54 INIT_LIST_HEAD(&batadv_hardif_list);
55 INIT_HLIST_HEAD(&bat_algo_list);
56
57 recv_handler_init();
58
59 batadv_iv_init();
60
61 /* the name should not be longer than 10 chars - see
40struct list_head batadv_hardif_list;
41static int (*recv_packet_handler[256])(struct sk_buff *, struct hard_iface *);
42char batadv_routing_algo[20] = "BATMAN_IV";
43static struct hlist_head bat_algo_list;
44
45unsigned char batadv_broadcast_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
46
47struct workqueue_struct *batadv_event_workqueue;

--- 5 unchanged lines hidden (view full) ---

53 INIT_LIST_HEAD(&batadv_hardif_list);
54 INIT_HLIST_HEAD(&bat_algo_list);
55
56 recv_handler_init();
57
58 batadv_iv_init();
59
60 /* the name should not be longer than 10 chars - see
62 * http://lwn.net/Articles/23634/ */
61 * http://lwn.net/Articles/23634/
62 */
63 batadv_event_workqueue = create_singlethread_workqueue("bat_events");
64
65 if (!batadv_event_workqueue)
66 return -ENOMEM;
67
68 batadv_socket_init();
69 batadv_debugfs_init();
70

--- 354 unchanged lines hidden ---
63 batadv_event_workqueue = create_singlethread_workqueue("bat_events");
64
65 if (!batadv_event_workqueue)
66 return -ENOMEM;
67
68 batadv_socket_init();
69 batadv_debugfs_init();
70

--- 354 unchanged lines hidden ---