Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/net/batman-adv/
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()
75 int batadv_dat_init(struct batadv_priv *bat_priv);
76 void batadv_dat_free(struct batadv_priv *bat_priv);
[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,
31 bool (*to_purge)(struct batadv_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()
[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()
74 static inline bool batadv_bla_tx(struct batadv_priv *bat_priv, in batadv_bla_tx()
[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 …]
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 …]
Dmulticast.h46 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb,
50 int batadv_mcast_forw_send_orig(struct batadv_priv *bat_priv,
55 int batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb,
58 void batadv_mcast_init(struct batadv_priv *bat_priv);
63 struct batadv_priv *bat_priv);
67 void batadv_mcast_free(struct batadv_priv *bat_priv);
74 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_mcast_forw_mode()
82 batadv_mcast_forw_send_orig(struct batadv_priv *bat_priv, in batadv_mcast_forw_send_orig()
92 batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_mcast_forw_send()
99 static inline int batadv_mcast_init(struct batadv_priv *bat_priv) in batadv_mcast_init()
[all …]
Dtvlv.h15 void batadv_tvlv_container_register(struct batadv_priv *bat_priv,
18 u16 batadv_tvlv_container_ogm_append(struct batadv_priv *bat_priv,
21 void batadv_tvlv_ogm_receive(struct batadv_priv *bat_priv,
24 void batadv_tvlv_container_unregister(struct batadv_priv *bat_priv,
27 void batadv_tvlv_handler_register(struct batadv_priv *bat_priv,
28 void (*optr)(struct batadv_priv *bat_priv,
33 int (*uptr)(struct batadv_priv *bat_priv,
38 void batadv_tvlv_handler_unregister(struct batadv_priv *bat_priv,
40 int batadv_tvlv_containers_process(struct batadv_priv *bat_priv,
45 void batadv_tvlv_unicast_send(struct batadv_priv *bat_priv, u8 *src,
Dsend.h24 struct batadv_priv *bat_priv,
27 void batadv_forw_packet_ogmv1_queue(struct batadv_priv *bat_priv,
42 int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv,
47 batadv_purge_outstanding_packets(struct batadv_priv *bat_priv,
49 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv,
53 int batadv_send_skb_unicast(struct batadv_priv *bat_priv,
58 int batadv_send_skb_via_tt_generic(struct batadv_priv *bat_priv,
62 int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb,
78 static inline int batadv_send_skb_via_tt(struct batadv_priv *bat_priv, in batadv_send_skb_via_tt()
101 static inline int batadv_send_skb_via_tt_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_via_tt_4addr()
Dlog.h19 int batadv_debug_log_setup(struct batadv_priv *bat_priv);
20 void batadv_debug_log_cleanup(struct batadv_priv *bat_priv);
24 static inline int batadv_debug_log_setup(struct batadv_priv *bat_priv) in batadv_debug_log_setup()
29 static inline void batadv_debug_log_cleanup(struct batadv_priv *bat_priv) in batadv_debug_log_cleanup()
68 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...)
81 struct batadv_priv *__batpriv = (bat_priv); \
90 struct batadv_priv *bat_priv __always_unused, in _batadv_dbg()
124 struct batadv_priv *_batpriv = netdev_priv(_netdev); \
138 struct batadv_priv *_batpriv = netdev_priv(_netdev); \
Dmulticast.c70 static void batadv_mcast_start_timer(struct batadv_priv *bat_priv) in batadv_mcast_start_timer()
167 static u8 batadv_mcast_mla_rtr_flags_softif_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_softif_get()
198 static u8 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_bridge_get()
235 batadv_mcast_mla_rtr_flags_bridge_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_bridge_get()
260 static u8 batadv_mcast_mla_rtr_flags_get(struct batadv_priv *bat_priv, in batadv_mcast_mla_rtr_flags_get()
279 batadv_mcast_mla_flags_get(struct batadv_priv *bat_priv) in batadv_mcast_mla_flags_get()
686 static void batadv_mcast_mla_tt_retract(struct batadv_priv *bat_priv, in batadv_mcast_mla_tt_retract()
716 static void batadv_mcast_mla_tt_add(struct batadv_priv *bat_priv, in batadv_mcast_mla_tt_add()
763 batadv_mcast_querier_log(struct batadv_priv *bat_priv, char *str_proto, in batadv_mcast_querier_log()
809 batadv_mcast_bridge_log(struct batadv_priv *bat_priv, in batadv_mcast_bridge_log()
[all …]
Dbat_v.h16 int batadv_v_mesh_init(struct batadv_priv *bat_priv);
17 void batadv_v_mesh_free(struct batadv_priv *bat_priv);
30 static inline int batadv_v_mesh_init(struct batadv_priv *bat_priv) in batadv_v_mesh_init()
35 static inline void batadv_v_mesh_free(struct batadv_priv *bat_priv) in batadv_v_mesh_free()
Dnetlink.h20 int batadv_netlink_tpmeter_notify(struct batadv_priv *bat_priv, const u8 *dst,
24 int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv);
25 int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
27 int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
Dtvlv.c66 batadv_tvlv_handler_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_handler_get()
125 batadv_tvlv_container_get(struct batadv_priv *bat_priv, u8 type, u8 version) in batadv_tvlv_container_get()
156 static u16 batadv_tvlv_container_list_size(struct batadv_priv *bat_priv) in batadv_tvlv_container_list_size()
180 static void batadv_tvlv_container_remove(struct batadv_priv *bat_priv, in batadv_tvlv_container_remove()
202 void batadv_tvlv_container_unregister(struct batadv_priv *bat_priv, in batadv_tvlv_container_unregister()
225 void batadv_tvlv_container_register(struct batadv_priv *bat_priv, in batadv_tvlv_container_register()
305 u16 batadv_tvlv_container_ogm_append(struct batadv_priv *bat_priv, in batadv_tvlv_container_ogm_append()
359 static int batadv_tvlv_call_handler(struct batadv_priv *bat_priv, in batadv_tvlv_call_handler()
412 int batadv_tvlv_containers_process(struct batadv_priv *bat_priv, in batadv_tvlv_containers_process()
472 void batadv_tvlv_ogm_receive(struct batadv_priv *bat_priv, in batadv_tvlv_ogm_receive()
[all …]
Dnetwork-coding.c77 static void batadv_nc_start_timer(struct batadv_priv *bat_priv) in batadv_nc_start_timer()
88 static void batadv_nc_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_nc_tvlv_container_update()
112 struct batadv_priv *bat_priv = netdev_priv(net_dev); 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()
142 int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init()
183 void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv) in batadv_nc_init_bat_priv()
276 static bool batadv_nc_to_purge_nc_node(struct batadv_priv *bat_priv, in batadv_nc_to_purge_nc_node()
292 static bool batadv_nc_to_purge_nc_path_coding(struct batadv_priv *bat_priv, in batadv_nc_to_purge_nc_path_coding()
313 static bool batadv_nc_to_purge_nc_path_decoding(struct batadv_priv *bat_priv, in batadv_nc_to_purge_nc_path_decoding()
338 batadv_nc_purge_orig_nc_nodes(struct batadv_priv *bat_priv, in batadv_nc_purge_orig_nc_nodes()
[all …]
Dtypes.h501 struct batadv_priv *bat_priv;
1399 struct batadv_priv *bat_priv;
1510 struct batadv_priv *bat_priv;
1559 struct batadv_priv { struct
1793 struct batadv_priv *bat_priv;
1829 struct batadv_priv *bat_priv;
2239 void (*print)(struct batadv_priv *priv, struct seq_file *seq);
2244 struct batadv_priv *priv,
2254 void (*print)(struct batadv_priv *priv, struct seq_file *seq,
2260 struct batadv_priv *priv,
[all …]
Doriginator.h21 int batadv_originator_init(struct batadv_priv *bat_priv);
22 void batadv_originator_free(struct batadv_priv *bat_priv);
23 void batadv_purge_orig_ref(struct batadv_priv *bat_priv);
25 struct batadv_orig_node *batadv_orig_node_new(struct batadv_priv *bat_priv,
87 batadv_orig_hash_find(struct batadv_priv *bat_priv, const void *data);
Dbat_v.c47 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_activate()
101 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_iface_update_mac()
179 static void batadv_v_neigh_print(struct batadv_priv *bat_priv, in batadv_v_neigh_print()
267 struct batadv_priv *bat_priv, in batadv_v_neigh_dump_hardif()
299 struct batadv_priv *bat_priv, in batadv_v_neigh_dump()
347 static void batadv_v_orig_print(struct batadv_priv *bat_priv, in batadv_v_orig_print()
424 struct batadv_priv *bat_priv, in batadv_v_orig_dump_subentry()
491 struct batadv_priv *bat_priv, in batadv_v_orig_dump_entry()
543 struct batadv_priv *bat_priv, in batadv_v_orig_dump_bucket()
578 struct batadv_priv *bat_priv, in batadv_v_orig_dump()
[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()
197 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const u8 *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()
329 static void batadv_tt_local_size_mod(struct batadv_priv *bat_priv, in batadv_tt_local_size_mod()
349 static void batadv_tt_local_size_inc(struct batadv_priv *bat_priv, in batadv_tt_local_size_inc()
361 static void batadv_tt_local_size_dec(struct batadv_priv *bat_priv, in batadv_tt_local_size_dec()
465 static void batadv_tt_local_event(struct batadv_priv *bat_priv, in batadv_tt_local_event()
563 static int batadv_tt_local_table_transmit_size(struct batadv_priv *bat_priv) in batadv_tt_local_table_transmit_size()
[all …]
Dsysfs.c63 static struct batadv_priv *batadv_kobj_to_batpriv(struct kobject *obj) in batadv_kobj_to_batpriv()
76 static struct batadv_priv *batadv_vlan_kobj_to_batpriv(struct kobject *obj) in batadv_vlan_kobj_to_batpriv()
98 batadv_kobj_to_vlan(struct batadv_priv *bat_priv, struct kobject *obj) in batadv_kobj_to_vlan()
142 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
158 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \
181 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
199 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \
219 struct batadv_priv *bat_priv = batadv_vlan_kobj_to_batpriv(kobj);\
240 struct batadv_priv *bat_priv = batadv_vlan_kobj_to_batpriv(kobj);\
266 struct batadv_priv *bat_priv; \
[all …]
Ddistributed-arp-table.c103 static void batadv_dat_start_timer(struct batadv_priv *bat_priv) in batadv_dat_start_timer()
157 static void __batadv_dat_purge(struct batadv_priv *bat_priv, in __batadv_dat_purge()
198 struct batadv_priv *bat_priv; in batadv_dat_purge()
202 bat_priv = container_of(priv_dat, struct batadv_priv, dat); in batadv_dat_purge()
325 batadv_dat_entry_hash_find(struct batadv_priv *bat_priv, __be32 ip, in batadv_dat_entry_hash_find()
365 static void batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip, in batadv_dat_entry_add()
423 static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_dbg_arp()
490 static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_dbg_arp()
559 static void batadv_choose_next_candidate(struct batadv_priv *bat_priv, in batadv_choose_next_candidate()
629 batadv_dat_select_candidates(struct batadv_priv *bat_priv, __be32 ip_dst, in batadv_dat_select_candidates()
[all …]
Dtp_meter.h16 void batadv_tp_start(struct batadv_priv *bat_priv, const u8 *dst,
18 void batadv_tp_stop(struct batadv_priv *bat_priv, const u8 *dst,
20 void batadv_tp_meter_recv(struct batadv_priv *bat_priv, struct sk_buff *skb);
Dgateway_client.c90 batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv) in batadv_gw_get_selected_gw_node()
114 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv) in batadv_gw_get_selected_orig()
139 static void batadv_gw_select(struct batadv_priv *bat_priv, in batadv_gw_select()
169 void batadv_gw_reselect(struct batadv_priv *bat_priv) in batadv_gw_reselect()
182 void batadv_gw_check_client_stop(struct batadv_priv *bat_priv) in batadv_gw_check_client_stop()
210 void batadv_gw_election(struct batadv_priv *bat_priv) in batadv_gw_election()
303 void batadv_gw_check_election(struct batadv_priv *bat_priv, in batadv_gw_check_election()
342 static void batadv_gw_node_add(struct batadv_priv *bat_priv, in batadv_gw_node_add()
387 struct batadv_gw_node *batadv_gw_node_get(struct batadv_priv *bat_priv, in batadv_gw_node_get()
416 void batadv_gw_node_update(struct batadv_priv *bat_priv, in batadv_gw_node_update()
[all …]
Dgateway_common.h32 void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv);
33 void batadv_gw_init(struct batadv_priv *bat_priv);
34 void batadv_gw_free(struct batadv_priv *bat_priv);
Dbat_v_ogm.h16 int batadv_v_ogm_init(struct batadv_priv *bat_priv);
17 void batadv_v_ogm_free(struct batadv_priv *bat_priv);
21 struct batadv_orig_node *batadv_v_ogm_orig_get(struct batadv_priv *bat_priv,
Dbat_v_ogm.c55 struct batadv_orig_node *batadv_v_ogm_orig_get(struct batadv_priv *bat_priv, in batadv_v_ogm_orig_get()
101 static void batadv_v_ogm_start_timer(struct batadv_priv *bat_priv) in batadv_v_ogm_start_timer()
124 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_send_to_if()
240 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_queue_on_if()
260 static void batadv_v_ogm_send_softif(struct batadv_priv *bat_priv) in batadv_v_ogm_send_softif()
368 struct batadv_priv *bat_priv; in batadv_v_ogm_send()
371 bat_priv = container_of(bat_v, struct batadv_priv, bat_v); in batadv_v_ogm_send()
409 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_v_ogm_iface_enable()
436 struct batadv_priv *bat_priv = netdev_priv(primary_iface->soft_iface); in batadv_v_ogm_primary_iface_set()
473 static u32 batadv_v_forward_penalty(struct batadv_priv *bat_priv, in batadv_v_forward_penalty()
[all …]

123