diff options
Diffstat (limited to 'net/batman-adv/translation-table.h')
-rw-r--r-- | net/batman-adv/translation-table.h | 63 |
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 | ||
25 | int tt_len(int changes_num); | 25 | int batadv_tt_len(int changes_num); |
26 | int tt_init(struct bat_priv *bat_priv); | 26 | int batadv_tt_init(struct bat_priv *bat_priv); |
27 | void tt_local_add(struct net_device *soft_iface, const uint8_t *addr, | 27 | void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr, |
28 | int ifindex); | 28 | int ifindex); |
29 | void tt_local_remove(struct bat_priv *bat_priv, | 29 | void 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, |
31 | int tt_local_seq_print_text(struct seq_file *seq, void *offset); | 31 | bool roaming); |
32 | void tt_global_add_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, | 32 | int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset); |
33 | const unsigned char *tt_buff, int tt_buff_len); | 33 | void batadv_tt_global_add_orig(struct bat_priv *bat_priv, |
34 | int 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); | 36 | int batadv_tt_global_add(struct bat_priv *bat_priv, struct orig_node *orig_node, |
37 | int tt_global_seq_print_text(struct seq_file *seq, void *offset); | 37 | const unsigned char *addr, uint8_t ttvn, bool roaming, |
38 | void tt_global_del_orig(struct bat_priv *bat_priv, | 38 | bool wifi); |
39 | struct orig_node *orig_node, const char *message); | 39 | int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset); |
40 | struct orig_node *transtable_search(struct bat_priv *bat_priv, | 40 | void 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, |
42 | void tt_free(struct bat_priv *bat_priv); | 42 | const char *message); |
43 | bool send_tt_response(struct bat_priv *bat_priv, | 43 | struct orig_node *batadv_transtable_search(struct bat_priv *bat_priv, |
44 | struct tt_query_packet *tt_request); | 44 | const uint8_t *src, |
45 | bool is_my_client(struct bat_priv *bat_priv, const uint8_t *addr); | 45 | const uint8_t *addr); |
46 | void handle_tt_response(struct bat_priv *bat_priv, | 46 | void batadv_tt_free(struct bat_priv *bat_priv); |
47 | struct tt_query_packet *tt_response); | 47 | bool batadv_send_tt_response(struct bat_priv *bat_priv, |
48 | bool is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, uint8_t *dst); | 48 | struct tt_query_packet *tt_request); |
49 | void tt_update_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, | 49 | bool batadv_is_my_client(struct bat_priv *bat_priv, const uint8_t *addr); |
50 | const unsigned char *tt_buff, uint8_t tt_num_changes, | 50 | void batadv_handle_tt_response(struct bat_priv *bat_priv, |
51 | uint8_t ttvn, uint16_t tt_crc); | 51 | struct tt_query_packet *tt_response); |
52 | bool batadv_is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src, | ||
53 | uint8_t *dst); | ||
54 | void 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); | ||
52 | int batadv_tt_append_diff(struct bat_priv *bat_priv, | 58 | int 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); |
55 | bool tt_global_client_is_roaming(struct bat_priv *bat_priv, uint8_t *addr); | 61 | bool 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_ */ |