Path: blob/master/net/batman-adv/translation-table.h
15109 views
/*1* Copyright (C) 2007-2011 B.A.T.M.A.N. contributors:2*3* Marek Lindner, Simon Wunderlich4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of version 2 of the GNU General Public7* License as published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful, but10* WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA17* 02110-1301, USA18*19*/2021#ifndef _NET_BATMAN_ADV_TRANSLATION_TABLE_H_22#define _NET_BATMAN_ADV_TRANSLATION_TABLE_H_2324int tt_local_init(struct bat_priv *bat_priv);25void tt_local_add(struct net_device *soft_iface, uint8_t *addr);26void tt_local_remove(struct bat_priv *bat_priv,27uint8_t *addr, char *message);28int tt_local_fill_buffer(struct bat_priv *bat_priv,29unsigned char *buff, int buff_len);30int tt_local_seq_print_text(struct seq_file *seq, void *offset);31void tt_local_free(struct bat_priv *bat_priv);32int tt_global_init(struct bat_priv *bat_priv);33void tt_global_add_orig(struct bat_priv *bat_priv,34struct orig_node *orig_node,35unsigned char *tt_buff, int tt_buff_len);36int tt_global_seq_print_text(struct seq_file *seq, void *offset);37void tt_global_del_orig(struct bat_priv *bat_priv,38struct orig_node *orig_node, char *message);39void tt_global_free(struct bat_priv *bat_priv);40struct orig_node *transtable_search(struct bat_priv *bat_priv, uint8_t *addr);4142#endif /* _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ */434445