1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#ifndef _NET_BATMAN_ADV_BLA_H_
23#define _NET_BATMAN_ADV_BLA_H_
24
25#ifdef CONFIG_BATMAN_ADV_BLA
26int bla_rx(struct bat_priv *bat_priv, struct sk_buff *skb, short vid,
27 bool is_bcast);
28int bla_tx(struct bat_priv *bat_priv, struct sk_buff *skb, short vid);
29int bla_is_backbone_gw(struct sk_buff *skb,
30 struct orig_node *orig_node, int hdr_size);
31int bla_claim_table_seq_print_text(struct seq_file *seq, void *offset);
32int bla_is_backbone_gw_orig(struct bat_priv *bat_priv, uint8_t *orig);
33int bla_check_bcast_duplist(struct bat_priv *bat_priv,
34 struct bcast_packet *bcast_packet, int hdr_size);
35void bla_update_orig_address(struct bat_priv *bat_priv,
36 struct hard_iface *primary_if,
37 struct hard_iface *oldif);
38int bla_init(struct bat_priv *bat_priv);
39void bla_free(struct bat_priv *bat_priv);
40
41#define BLA_CRC_INIT 0
42#else
43
44static inline int bla_rx(struct bat_priv *bat_priv, struct sk_buff *skb,
45 short vid, bool is_bcast)
46{
47 return 0;
48}
49
50static inline int bla_tx(struct bat_priv *bat_priv, struct sk_buff *skb,
51 short vid)
52{
53 return 0;
54}
55
56static inline int bla_is_backbone_gw(struct sk_buff *skb,
57 struct orig_node *orig_node,
58 int hdr_size)
59{
60 return 0;
61}
62
63static inline int bla_claim_table_seq_print_text(struct seq_file *seq,
64 void *offset)
65{
66 return 0;
67}
68
69static inline int bla_is_backbone_gw_orig(struct bat_priv *bat_priv,
70 uint8_t *orig)
71{
72 return 0;
73}
74
75static inline int bla_check_bcast_duplist(struct bat_priv *bat_priv,
76 struct bcast_packet *bcast_packet,
77 int hdr_size)
78{
79 return 0;
80}
81
82static inline void bla_update_orig_address(struct bat_priv *bat_priv,
83 struct hard_iface *primary_if,
84 struct hard_iface *oldif)
85{
86}
87
88static inline int bla_init(struct bat_priv *bat_priv)
89{
90 return 1;
91}
92
93static inline void bla_free(struct bat_priv *bat_priv)
94{
95}
96
97#endif
98
99#endif
100