Home
last modified time | relevance | path

Searched refs:bat_priv (Results 1 – 25 of 51) sorted by relevance

123

/net/batman-adv/
Dmulticast.c69 static void batadv_mcast_start_timer(struct batadv_priv *bat_priv) in batadv_mcast_start_timer() argument
71 queue_delayed_work(batadv_event_workqueue, &bat_priv->mcast.work, in batadv_mcast_start_timer()
166 static u8 batadv_mcast_mla_rtr_flags_softif_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_softif_get() argument
169 struct net_device *dev = bridge ? bridge : bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_softif_get()
197 static u8 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_bridge_get() argument
201 struct net_device *dev = bat_priv->soft_iface; in batadv_mcast_mla_rtr_flags_bridge_get()
234 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_bridge_get() argument
259 static u8 batadv_mcast_mla_rtr_flags_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_get() argument
264 flags &= batadv_mcast_mla_rtr_flags_softif_get(bat_priv, bridge); in batadv_mcast_mla_rtr_flags_get()
265 flags &= batadv_mcast_mla_rtr_flags_bridge_get(bat_priv, bridge); in batadv_mcast_mla_rtr_flags_get()
[all …]
Dsoft-interface.c102 static u64 batadv_sum_counter(struct batadv_priv *bat_priv, size_t idx) in batadv_sum_counter() argument
108 counters = per_cpu_ptr(bat_priv->bat_counters, cpu); in batadv_sum_counter()
117 struct batadv_priv *bat_priv = netdev_priv(dev); in batadv_interface_stats() local
120 stats->tx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_TX); in batadv_interface_stats()
121 stats->tx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_TX_BYTES); in batadv_interface_stats()
122 stats->tx_dropped = batadv_sum_counter(bat_priv, BATADV_CNT_TX_DROPPED); in batadv_interface_stats()
123 stats->rx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_RX); in batadv_interface_stats()
124 stats->rx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_RX_BYTES); in batadv_interface_stats()
130 struct batadv_priv *bat_priv = netdev_priv(dev); in batadv_interface_set_mac_addr() local
142 if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE) in batadv_interface_set_mac_addr()
[all …]
Dgateway_client.c90 batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv) in batadv_gw_get_selected_gw_node() argument
95 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node()
114 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv) in batadv_gw_get_selected_orig() argument
119 gw_node = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_get_selected_orig()
139 static void batadv_gw_select(struct batadv_priv *bat_priv, in batadv_gw_select() argument
144 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select()
149 curr_gw_node = rcu_dereference_protected(bat_priv->gw.curr_gw, 1); in batadv_gw_select()
150 rcu_assign_pointer(bat_priv->gw.curr_gw, new_gw_node); in batadv_gw_select()
155 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select()
169 void batadv_gw_reselect(struct batadv_priv *bat_priv) in batadv_gw_reselect() argument
[all …]
Dbridge_loop_avoidance.c56 batadv_bla_send_announce(struct batadv_priv *bat_priv,
211 batadv_claim_hash_find(struct batadv_priv *bat_priv, in batadv_claim_hash_find() argument
214 struct batadv_hashtable *hash = bat_priv->bla.claim_hash; in batadv_claim_hash_find()
251 batadv_backbone_hash_find(struct batadv_priv *bat_priv, u8 *addr, in batadv_backbone_hash_find() argument
254 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; in batadv_backbone_hash_find()
300 hash = backbone_gw->bat_priv->bla.claim_hash; in batadv_bla_del_backbone_claims()
333 static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac, in batadv_bla_send_claim() argument
344 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_send_claim()
348 memcpy(&local_claim_dest, &bat_priv->bla.claim_dest, in batadv_bla_send_claim()
383 batadv_dbg(BATADV_DBG_BLA, bat_priv, in batadv_bla_send_claim()
[all …]
Dmain.c159 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init() local
162 spin_lock_init(&bat_priv->forw_bat_list_lock); in batadv_mesh_init()
163 spin_lock_init(&bat_priv->forw_bcast_list_lock); in batadv_mesh_init()
164 spin_lock_init(&bat_priv->tt.changes_list_lock); in batadv_mesh_init()
165 spin_lock_init(&bat_priv->tt.req_list_lock); in batadv_mesh_init()
166 spin_lock_init(&bat_priv->tt.roam_list_lock); in batadv_mesh_init()
167 spin_lock_init(&bat_priv->tt.last_changeset_lock); in batadv_mesh_init()
168 spin_lock_init(&bat_priv->tt.commit_lock); in batadv_mesh_init()
169 spin_lock_init(&bat_priv->gw.list_lock); in batadv_mesh_init()
171 spin_lock_init(&bat_priv->mcast.mla_lock); in batadv_mesh_init()
[all …]
Ddistributed-arp-table.c103 static void batadv_dat_start_timer(struct batadv_priv *bat_priv) in batadv_dat_start_timer() argument
105 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge); in batadv_dat_start_timer()
106 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer()
157 static void __batadv_dat_purge(struct batadv_priv *bat_priv, in __batadv_dat_purge() argument
166 if (!bat_priv->dat.hash) in __batadv_dat_purge()
169 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge()
170 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge()
171 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge()
198 struct batadv_priv *bat_priv; in batadv_dat_purge() local
202 bat_priv = container_of(priv_dat, struct batadv_priv, dat); in batadv_dat_purge()
[all …]
Dtranslation-table.c66 static void batadv_send_roam_adv(struct batadv_priv *bat_priv, u8 *client,
72 static void batadv_tt_global_del(struct batadv_priv *bat_priv,
172 batadv_tt_local_hash_find(struct batadv_priv *bat_priv, const u8 *addr, in batadv_tt_local_hash_find() argument
178 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.local_hash, addr, in batadv_tt_local_hash_find()
197 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *addr, in batadv_tt_global_hash_find() argument
203 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.global_hash, addr, in batadv_tt_global_hash_find()
306 int batadv_tt_global_hash_count(struct batadv_priv *bat_priv, in batadv_tt_global_hash_count() argument
312 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_hash_count()
329 static void batadv_tt_local_size_mod(struct batadv_priv *bat_priv, in batadv_tt_local_size_mod() argument
334 vlan = batadv_softif_vlan_get(bat_priv, vid); in batadv_tt_local_size_mod()
[all …]
Dnetwork-coding.c77 static void batadv_nc_start_timer(struct batadv_priv *bat_priv) in batadv_nc_start_timer() argument
79 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, in batadv_nc_start_timer()
88 static void batadv_nc_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_nc_tvlv_container_update() argument
92 nc_mode = atomic_read(&bat_priv->network_coding); in batadv_nc_tvlv_container_update()
96 batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_NC, 1); in batadv_nc_tvlv_container_update()
99 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_NC, 1, in batadv_nc_tvlv_container_update()
112 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_status_update() local
114 batadv_nc_tvlv_container_update(bat_priv); in batadv_nc_status_update()
125 static void batadv_nc_tvlv_ogm_handler_v1(struct batadv_priv *bat_priv, in batadv_nc_tvlv_ogm_handler_v1() argument
142 int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init() argument
[all …]
Dbat_v_ogm.c54 struct batadv_orig_node *batadv_v_ogm_orig_get(struct batadv_priv *bat_priv, in batadv_v_ogm_orig_get() argument
60 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_v_ogm_orig_get()
64 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_v_ogm_orig_get()
69 hash_added = batadv_hash_add(bat_priv->orig_hash, batadv_compare_orig, in batadv_v_ogm_orig_get()
100 static void batadv_v_ogm_start_timer(struct batadv_priv *bat_priv) in batadv_v_ogm_start_timer() argument
106 if (delayed_work_pending(&bat_priv->bat_v.ogm_wq)) in batadv_v_ogm_start_timer()
109 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_v_ogm_start_timer()
111 queue_delayed_work(batadv_event_workqueue, &bat_priv->bat_v.ogm_wq, in batadv_v_ogm_start_timer()
123 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if() local
128 batadv_inc_counter(bat_priv, BATADV_CNT_MGMT_TX); in batadv_v_ogm_send_to_if()
[all …]
Ddistributed-arp-table.h28 bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv,
30 bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv,
32 void batadv_dat_snoop_outgoing_arp_reply(struct batadv_priv *bat_priv,
34 bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv,
36 void batadv_dat_snoop_outgoing_dhcp_ack(struct batadv_priv *bat_priv,
40 void batadv_dat_snoop_incoming_dhcp_ack(struct batadv_priv *bat_priv,
42 bool batadv_dat_drop_broadcast_packet(struct batadv_priv *bat_priv,
64 batadv_dat_init_own_addr(struct batadv_priv *bat_priv, in batadv_dat_init_own_addr() argument
72 bat_priv->dat.addr = (batadv_dat_addr_t)addr; in batadv_dat_init_own_addr()
75 int batadv_dat_init(struct batadv_priv *bat_priv);
[all …]
Dtvlv.c66 batadv_tvlv_handler_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_handler_get() argument
72 &bat_priv->tvlv.handler_list, list) { in batadv_tvlv_handler_get()
125 batadv_tvlv_container_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_container_get() argument
129 lockdep_assert_held(&bat_priv->tvlv.container_list_lock); in batadv_tvlv_container_get()
131 hlist_for_each_entry(tvlv_tmp, &bat_priv->tvlv.container_list, list) { in batadv_tvlv_container_get()
156 static u16 batadv_tvlv_container_list_size(struct batadv_priv *bat_priv) in batadv_tvlv_container_list_size() argument
161 lockdep_assert_held(&bat_priv->tvlv.container_list_lock); in batadv_tvlv_container_list_size()
163 hlist_for_each_entry(tvlv, &bat_priv->tvlv.container_list, list) { in batadv_tvlv_container_list_size()
180 static void batadv_tvlv_container_remove(struct batadv_priv *bat_priv, in batadv_tvlv_container_remove() argument
183 lockdep_assert_held(&bat_priv->tvlv.container_list_lock); in batadv_tvlv_container_remove()
[all …]
Dnetlink.c178 struct batadv_priv *bat_priv) in batadv_netlink_mesh_fill_ap_isolation() argument
183 vlan = batadv_softif_vlan_get(bat_priv, BATADV_NO_FLAGS); in batadv_netlink_mesh_fill_ap_isolation()
202 struct batadv_priv *bat_priv) in batadv_netlink_set_mesh_ap_isolation() argument
206 vlan = batadv_softif_vlan_get(bat_priv, BATADV_NO_FLAGS); in batadv_netlink_set_mesh_ap_isolation()
228 struct batadv_priv *bat_priv, in batadv_netlink_mesh_fill() argument
232 struct net_device *soft_iface = bat_priv->soft_iface; in batadv_netlink_mesh_fill()
243 bat_priv->algo_ops->name) || in batadv_netlink_mesh_fill()
249 (u8)atomic_read(&bat_priv->tt.vn))) in batadv_netlink_mesh_fill()
254 ntohs(bat_priv->bla.claim_dest.group))) in batadv_netlink_mesh_fill()
258 if (batadv_mcast_mesh_info_put(msg, bat_priv)) in batadv_netlink_mesh_fill()
[all …]
Dsysfs.c98 batadv_kobj_to_vlan(struct batadv_priv *bat_priv, struct kobject *obj) in batadv_kobj_to_vlan() argument
103 hlist_for_each_entry_rcu(vlan_tmp, &bat_priv->softif_vlan_list, list) { in batadv_kobj_to_vlan()
142 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
147 &bat_priv->_name, net_dev); \
149 batadv_netlink_notify_mesh(bat_priv); \
158 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \
162 atomic_read(&bat_priv->_name) == 0 ? \
181 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
187 &bat_priv->_var, net_dev, \
190 batadv_netlink_notify_mesh(bat_priv); \
[all …]
Drouting.c54 static void _batadv_update_route(struct batadv_priv *bat_priv, in _batadv_update_route() argument
86 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route()
88 batadv_tt_global_del_orig(bat_priv, orig_node, -1, in _batadv_update_route()
93 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route()
98 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route()
116 void batadv_update_route(struct batadv_priv *bat_priv, in batadv_update_route() argument
129 _batadv_update_route(bat_priv, orig_node, recv_if, neigh_node); in batadv_update_route()
152 bool batadv_window_protected(struct batadv_priv *bat_priv, s32 seq_num_diff, in batadv_window_protected() argument
165 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_window_protected()
219 static int batadv_recv_my_icmp_packet(struct batadv_priv *bat_priv, in batadv_recv_my_icmp_packet() argument
[all …]
Dgateway_common.c134 void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_gw_tvlv_container_update() argument
140 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_gw_tvlv_container_update()
145 batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_GW, 1); in batadv_gw_tvlv_container_update()
148 down = atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_tvlv_container_update()
149 up = atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_tvlv_container_update()
152 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_GW, 1, in batadv_gw_tvlv_container_update()
170 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set() local
177 down_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_bandwidth_set()
178 up_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_bandwidth_set()
196 batadv_gw_reselect(bat_priv); in batadv_gw_bandwidth_set()
[all …]
Dtp_meter.c214 const u8 *dst, struct batadv_priv *bat_priv, in batadv_tp_batctl_notify() argument
232 batadv_netlink_tpmeter_notify(bat_priv, dst, result, test_time, in batadv_tp_batctl_notify()
245 struct batadv_priv *bat_priv, in batadv_tp_batctl_error_notify() argument
248 batadv_tp_batctl_notify(reason, dst, bat_priv, 0, 0, cookie); in batadv_tp_batctl_error_notify()
261 static struct batadv_tp_vars *batadv_tp_list_find(struct batadv_priv *bat_priv, in batadv_tp_list_find() argument
267 hlist_for_each_entry_rcu(pos, &bat_priv->tp_list, list) { in batadv_tp_list_find()
300 batadv_tp_list_find_session(struct batadv_priv *bat_priv, const u8 *dst, in batadv_tp_list_find_session() argument
306 hlist_for_each_entry_rcu(pos, &bat_priv->tp_list, list) { in batadv_tp_list_find_session()
368 static void batadv_tp_sender_cleanup(struct batadv_priv *bat_priv, in batadv_tp_sender_cleanup() argument
373 spin_lock_bh(&tp_vars->bat_priv->tp_list_lock); in batadv_tp_sender_cleanup()
[all …]
Dsend.c67 struct batadv_priv *bat_priv; in batadv_send_skb_packet() local
71 bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet()
102 batadv_nc_skb_store_for_decoding(bat_priv, skb); in batadv_send_skb_packet()
181 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() local
186 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig()
195 if (atomic_read(&bat_priv->fragmentation) && in batadv_send_skb_to_orig()
283 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_prepare_unicast_4addr() argument
292 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr()
333 int batadv_send_skb_unicast(struct batadv_priv *bat_priv, in batadv_send_skb_unicast() argument
352 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, in batadv_send_skb_unicast()
[all …]
Dnetwork-coding.h22 int batadv_nc_mesh_init(struct batadv_priv *bat_priv);
23 void batadv_nc_mesh_free(struct batadv_priv *bat_priv);
24 void batadv_nc_update_nc_node(struct batadv_priv *bat_priv,
29 void batadv_nc_purge_orig(struct batadv_priv *bat_priv,
33 void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv);
37 void batadv_nc_skb_store_for_decoding(struct batadv_priv *bat_priv,
39 void batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv,
42 void batadv_nc_init_debugfs(struct batadv_priv *bat_priv);
55 static inline int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init() argument
60 static inline void batadv_nc_mesh_free(struct batadv_priv *bat_priv) in batadv_nc_mesh_free() argument
[all …]
Doriginator.c58 batadv_orig_hash_find(struct batadv_priv *bat_priv, const void *data) in batadv_orig_hash_find() argument
60 struct batadv_hashtable *hash = bat_priv->orig_hash; in batadv_orig_hash_find()
206 int batadv_originator_init(struct batadv_priv *bat_priv) in batadv_originator_init() argument
208 if (bat_priv->orig_hash) in batadv_originator_init()
211 bat_priv->orig_hash = batadv_hash_new(1024); in batadv_originator_init()
213 if (!bat_priv->orig_hash) in batadv_originator_init()
216 batadv_hash_set_lock_class(bat_priv->orig_hash, in batadv_originator_init()
219 INIT_DELAYED_WORK(&bat_priv->orig_work, batadv_purge_orig); in batadv_originator_init()
221 &bat_priv->orig_work, in batadv_originator_init()
559 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_hardif_neigh_create() local
[all …]
Dbat_iv_ogm.c140 batadv_iv_ogm_orig_get(struct batadv_priv *bat_priv, const u8 *addr) in batadv_iv_ogm_orig_get() argument
145 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_iv_ogm_orig_get()
149 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_iv_ogm_orig_get()
156 hash_added = batadv_hash_add(bat_priv->orig_hash, batadv_compare_orig, in batadv_iv_ogm_orig_get()
278 batadv_iv_ogm_emit_send_time(const struct batadv_priv *bat_priv) in batadv_iv_ogm_emit_send_time() argument
282 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_iv_ogm_emit_send_time()
295 static u8 batadv_hop_penalty(u8 tq, const struct batadv_priv *bat_priv) in batadv_hop_penalty() argument
297 int hop_penalty = atomic_read(&bat_priv->hop_penalty); in batadv_hop_penalty()
336 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_send_to_if() local
369 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_send_to_if()
[all …]
Dbridge_loop_avoidance.h37 bool batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb,
39 bool batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb,
49 bool batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, u8 *orig,
51 bool batadv_bla_check_bcast_duplist(struct batadv_priv *bat_priv,
53 void batadv_bla_update_orig_address(struct batadv_priv *bat_priv,
57 int batadv_bla_init(struct batadv_priv *bat_priv);
58 void batadv_bla_free(struct batadv_priv *bat_priv);
61 bool batadv_bla_check_claim(struct batadv_priv *bat_priv, u8 *addr,
67 static inline bool batadv_bla_rx(struct batadv_priv *bat_priv, in batadv_bla_rx() argument
74 static inline bool batadv_bla_tx(struct batadv_priv *bat_priv, in batadv_bla_tx() argument
[all …]
Dbat_v.c47 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate() local
50 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_iface_activate()
101 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac() local
104 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_v_iface_update_mac()
179 static void batadv_v_neigh_print(struct batadv_priv *bat_priv, in batadv_v_neigh_print() argument
267 struct batadv_priv *bat_priv, in batadv_v_neigh_dump_hardif() argument
299 struct batadv_priv *bat_priv, in batadv_v_neigh_dump() argument
313 bat_priv, single_hardif, in batadv_v_neigh_dump()
319 if (hard_iface->soft_iface != bat_priv->soft_iface) in batadv_v_neigh_dump()
327 bat_priv, hard_iface, in batadv_v_neigh_dump()
[all …]
Dtranslation-table.h18 int batadv_tt_init(struct batadv_priv *bat_priv);
21 u16 batadv_tt_local_remove(struct batadv_priv *bat_priv,
28 void batadv_tt_global_del_orig(struct batadv_priv *bat_priv,
32 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *addr,
35 int batadv_tt_global_hash_count(struct batadv_priv *bat_priv,
37 struct batadv_orig_node *batadv_transtable_search(struct batadv_priv *bat_priv,
40 void batadv_tt_free(struct batadv_priv *bat_priv);
41 bool batadv_is_my_client(struct batadv_priv *bat_priv, const u8 *addr,
43 bool batadv_is_ap_isolated(struct batadv_priv *bat_priv, u8 *src, u8 *dst,
45 void batadv_tt_local_commit_changes(struct batadv_priv *bat_priv);
[all …]
Dlog.c112 struct batadv_priv *bat_priv = file->private_data; in batadv_log_read() local
113 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log; in batadv_log_read()
166 struct batadv_priv *bat_priv = file->private_data; in batadv_log_poll() local
167 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log; in batadv_log_poll()
191 int batadv_debug_log_setup(struct batadv_priv *bat_priv) in batadv_debug_log_setup() argument
193 bat_priv->debug_log = kzalloc(sizeof(*bat_priv->debug_log), GFP_ATOMIC); in batadv_debug_log_setup()
194 if (!bat_priv->debug_log) in batadv_debug_log_setup()
197 spin_lock_init(&bat_priv->debug_log->lock); in batadv_debug_log_setup()
198 init_waitqueue_head(&bat_priv->debug_log->queue_wait); in batadv_debug_log_setup()
200 debugfs_create_file("log", 0400, bat_priv->debug_dir, bat_priv, in batadv_debug_log_setup()
[all …]
Dgateway_client.h18 void batadv_gw_check_client_stop(struct batadv_priv *bat_priv);
19 void batadv_gw_reselect(struct batadv_priv *bat_priv);
20 void batadv_gw_election(struct batadv_priv *bat_priv);
22 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv);
23 void batadv_gw_check_election(struct batadv_priv *bat_priv,
25 void batadv_gw_node_update(struct batadv_priv *bat_priv,
28 void batadv_gw_node_delete(struct batadv_priv *bat_priv,
30 void batadv_gw_node_free(struct batadv_priv *bat_priv);
33 batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv);
36 bool batadv_gw_out_of_range(struct batadv_priv *bat_priv, struct sk_buff *skb);
[all …]

123