xref: /openbmc/linux/net/batman-adv/translation-table.h (revision c6c8fea29769d998d94fcec9b9f14d4b52b349d3)
1*c6c8fea2SSven Eckelmann /*
2*c6c8fea2SSven Eckelmann  * Copyright (C) 2007-2010 B.A.T.M.A.N. contributors:
3*c6c8fea2SSven Eckelmann  *
4*c6c8fea2SSven Eckelmann  * Marek Lindner, Simon Wunderlich
5*c6c8fea2SSven Eckelmann  *
6*c6c8fea2SSven Eckelmann  * This program is free software; you can redistribute it and/or
7*c6c8fea2SSven Eckelmann  * modify it under the terms of version 2 of the GNU General Public
8*c6c8fea2SSven Eckelmann  * License as published by the Free Software Foundation.
9*c6c8fea2SSven Eckelmann  *
10*c6c8fea2SSven Eckelmann  * This program is distributed in the hope that it will be useful, but
11*c6c8fea2SSven Eckelmann  * WITHOUT ANY WARRANTY; without even the implied warranty of
12*c6c8fea2SSven Eckelmann  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13*c6c8fea2SSven Eckelmann  * General Public License for more details.
14*c6c8fea2SSven Eckelmann  *
15*c6c8fea2SSven Eckelmann  * You should have received a copy of the GNU General Public License
16*c6c8fea2SSven Eckelmann  * along with this program; if not, write to the Free Software
17*c6c8fea2SSven Eckelmann  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18*c6c8fea2SSven Eckelmann  * 02110-1301, USA
19*c6c8fea2SSven Eckelmann  *
20*c6c8fea2SSven Eckelmann  */
21*c6c8fea2SSven Eckelmann 
22*c6c8fea2SSven Eckelmann #ifndef _NET_BATMAN_ADV_TRANSLATION_TABLE_H_
23*c6c8fea2SSven Eckelmann #define _NET_BATMAN_ADV_TRANSLATION_TABLE_H_
24*c6c8fea2SSven Eckelmann 
25*c6c8fea2SSven Eckelmann #include "types.h"
26*c6c8fea2SSven Eckelmann 
27*c6c8fea2SSven Eckelmann int hna_local_init(struct bat_priv *bat_priv);
28*c6c8fea2SSven Eckelmann void hna_local_add(struct net_device *soft_iface, uint8_t *addr);
29*c6c8fea2SSven Eckelmann void hna_local_remove(struct bat_priv *bat_priv,
30*c6c8fea2SSven Eckelmann 		      uint8_t *addr, char *message);
31*c6c8fea2SSven Eckelmann int hna_local_fill_buffer(struct bat_priv *bat_priv,
32*c6c8fea2SSven Eckelmann 			  unsigned char *buff, int buff_len);
33*c6c8fea2SSven Eckelmann int hna_local_seq_print_text(struct seq_file *seq, void *offset);
34*c6c8fea2SSven Eckelmann void hna_local_free(struct bat_priv *bat_priv);
35*c6c8fea2SSven Eckelmann int hna_global_init(struct bat_priv *bat_priv);
36*c6c8fea2SSven Eckelmann void hna_global_add_orig(struct bat_priv *bat_priv,
37*c6c8fea2SSven Eckelmann 			 struct orig_node *orig_node,
38*c6c8fea2SSven Eckelmann 			 unsigned char *hna_buff, int hna_buff_len);
39*c6c8fea2SSven Eckelmann int hna_global_seq_print_text(struct seq_file *seq, void *offset);
40*c6c8fea2SSven Eckelmann void hna_global_del_orig(struct bat_priv *bat_priv,
41*c6c8fea2SSven Eckelmann 			 struct orig_node *orig_node, char *message);
42*c6c8fea2SSven Eckelmann void hna_global_free(struct bat_priv *bat_priv);
43*c6c8fea2SSven Eckelmann struct orig_node *transtable_search(struct bat_priv *bat_priv, uint8_t *addr);
44*c6c8fea2SSven Eckelmann 
45*c6c8fea2SSven Eckelmann #endif /* _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ */
46