aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/batman-adv/translation-table.h')
-rw-r--r--net/batman-adv/translation-table.h63
1 files changed, 35 insertions, 28 deletions
diff --git a/net/batman-adv/translation-table.h b/net/batman-adv/translation-table.h
index d6ea30f9b026..fe1281a71685 100644
--- a/net/batman-adv/translation-table.h
+++ b/net/batman-adv/translation-table.h
@@ -22,37 +22,44 @@
22#ifndef _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ 22#ifndef _NET_BATMAN_ADV_TRANSLATION_TABLE_H_
23#define _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ 23#define _NET_BATMAN_ADV_TRANSLATION_TABLE_H_
24 24
25int tt_len(int changes_num); 25int batadv_tt_len(int changes_num);
26int tt_init(struct bat_priv *bat_priv); 26int batadv_tt_init(struct bat_priv *bat_priv);
27void tt_local_add(struct net_device *soft_iface, const uint8_t *addr, 27void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr,
28 int ifindex); 28 int ifindex);
29void tt_local_remove(struct bat_priv *bat_priv, 29void batadv_tt_local_remove(struct bat_priv *bat_priv,
30 const uint8_t *addr, const char *message, bool roaming); 30 const uint8_t *addr, const char *message,
31int tt_local_seq_print_text(struct seq_file *seq, void *offset); 31 bool roaming);
32void tt_global_add_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, 32int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset);
33 const unsigned char *tt_buff, int tt_buff_len); 33void batadv_tt_global_add_orig(struct bat_priv *bat_priv,
34int tt_global_add(struct bat_priv *bat_priv, struct orig_node *orig_node, 34 struct orig_node *orig_node,
35 const unsigned char *addr, uint8_t ttvn, bool roaming, 35 const unsigned char *tt_buff, int tt_buff_len);
36 bool wifi); 36int batadv_tt_global_add(struct bat_priv *bat_priv, struct orig_node *orig_node,
37int tt_global_seq_print_text(struct seq_file *seq, void *offset); 37 const unsigned char *addr, uint8_t ttvn, bool roaming,
38void tt_global_del_orig(struct bat_priv *bat_priv, 38 bool wifi);
39 struct orig_node *orig_node, const char *message); 39int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset);
40struct orig_node *transtable_search(struct bat_priv *bat_priv, 40void batadv_tt_global_del_orig(struct bat_priv *bat_priv,
41 const uint8_t *src, const uint8_t *addr); 41 struct orig_node *orig_node,
42void tt_free(struct bat_priv *bat_priv); 42 const char *message);
43bool send_tt_response(struct bat_priv *bat_priv, 43struct orig_node *batadv_transtable_search(struct bat_priv *bat_priv,
44 struct tt_query_packet *tt_request); 44 const uint8_t *src,
45bool is_my_client(struct bat_priv *bat_priv, const uint8_t *addr); 45 const uint8_t *addr);
46void handle_tt_response(struct bat_priv *bat_priv, 46void batadv_tt_free(struct bat_priv *bat_priv);
47 struct tt_query_packet *tt_response); 47bool batadv_send_tt_response(struct bat_priv *bat_priv,
48bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst); 48 struct tt_query_packet *tt_request);
49void tt_update_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, 49bool batadv_is_my_client(struct bat_priv *bat_priv, const uint8_t *addr);
50 const unsigned char *tt_buff, uint8_t tt_num_changes, 50void batadv_handle_tt_response(struct bat_priv *bat_priv,
51 uint8_t ttvn, uint16_t tt_crc); 51 struct tt_query_packet *tt_response);
52bool batadv_is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src,
53 uint8_t *dst);
54void batadv_tt_update_orig(struct bat_priv *bat_priv,
55 struct orig_node *orig_node,
56 const unsigned char *tt_buff, uint8_t tt_num_changes,
57 uint8_t ttvn, uint16_t tt_crc);
52int batadv_tt_append_diff(struct bat_priv *bat_priv, 58int batadv_tt_append_diff(struct bat_priv *bat_priv,
53 unsigned char **packet_buff, int *packet_buff_len, 59 unsigned char **packet_buff, int *packet_buff_len,
54 int packet_min_len); 60 int packet_min_len);
55bool tt_global_client_is_roaming(struct bat_priv *bat_priv, uint8_t *addr); 61bool batadv_tt_global_client_is_roaming(struct bat_priv *bat_priv,
62 uint8_t *addr);
56 63
57 64
58#endif /* _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ */ 65#endif /* _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ */