/net/batman-adv/ |
D | multicast.c | 106 static void batadv_mcast_mla_tt_retract(struct batadv_priv *bat_priv, in batadv_mcast_mla_tt_retract() argument 112 hlist_for_each_entry_safe(mcast_entry, tmp, &bat_priv->mcast.mla_list, in batadv_mcast_mla_tt_retract() 119 batadv_tt_local_remove(bat_priv, mcast_entry->addr, in batadv_mcast_mla_tt_retract() 136 static void batadv_mcast_mla_tt_add(struct batadv_priv *bat_priv, in batadv_mcast_mla_tt_add() argument 147 &bat_priv->mcast.mla_list)) in batadv_mcast_mla_tt_add() 150 if (!batadv_tt_local_add(bat_priv->soft_iface, in batadv_mcast_mla_tt_add() 156 hlist_add_head(&mcast_entry->list, &bat_priv->mcast.mla_list); in batadv_mcast_mla_tt_add() 167 static bool batadv_mcast_has_bridge(struct batadv_priv *bat_priv) in batadv_mcast_has_bridge() argument 169 struct net_device *upper = bat_priv->soft_iface; in batadv_mcast_has_bridge() 190 static bool batadv_mcast_mla_tvlv_update(struct batadv_priv *bat_priv) in batadv_mcast_mla_tvlv_update() argument [all …]
|
D | soft-interface.c | 95 struct batadv_priv *bat_priv = netdev_priv(dev); in batadv_interface_stats() local 96 struct net_device_stats *stats = &bat_priv->stats; in batadv_interface_stats() 98 stats->tx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_TX); in batadv_interface_stats() 99 stats->tx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_TX_BYTES); in batadv_interface_stats() 100 stats->tx_dropped = batadv_sum_counter(bat_priv, BATADV_CNT_TX_DROPPED); in batadv_interface_stats() 101 stats->rx_packets = batadv_sum_counter(bat_priv, BATADV_CNT_RX); in batadv_interface_stats() 102 stats->rx_bytes = batadv_sum_counter(bat_priv, BATADV_CNT_RX_BYTES); in batadv_interface_stats() 108 struct batadv_priv *bat_priv = netdev_priv(dev); in batadv_interface_set_mac_addr() local 119 if (atomic_read(&bat_priv->mesh_state) == BATADV_MESH_ACTIVE) { in batadv_interface_set_mac_addr() 120 batadv_tt_local_remove(bat_priv, old_addr, BATADV_NO_FLAGS, in batadv_interface_set_mac_addr() [all …]
|
D | bridge_loop_avoidance.c | 36 batadv_bla_send_announce(struct batadv_priv *bat_priv, 142 *batadv_claim_hash_find(struct batadv_priv *bat_priv, in batadv_claim_hash_find() argument 145 struct batadv_hashtable *hash = bat_priv->bla.claim_hash; in batadv_claim_hash_find() 182 batadv_backbone_hash_find(struct batadv_priv *bat_priv, in batadv_backbone_hash_find() argument 185 struct batadv_hashtable *hash = bat_priv->bla.backbone_hash; in batadv_backbone_hash_find() 228 hash = backbone_gw->bat_priv->bla.claim_hash; in batadv_bla_del_backbone_claims() 259 static void batadv_bla_send_claim(struct batadv_priv *bat_priv, uint8_t *mac, in batadv_bla_send_claim() argument 270 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_bla_send_claim() 274 memcpy(&local_claim_dest, &bat_priv->bla.claim_dest, in batadv_bla_send_claim() 309 batadv_dbg(BATADV_DBG_BLA, bat_priv, in batadv_bla_send_claim() [all …]
|
D | translation-table.c | 36 static void batadv_send_roam_adv(struct batadv_priv *bat_priv, uint8_t *client, 42 static void batadv_tt_global_del(struct batadv_priv *bat_priv, 136 batadv_tt_local_hash_find(struct batadv_priv *bat_priv, const uint8_t *addr, in batadv_tt_local_hash_find() argument 142 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.local_hash, addr, in batadv_tt_local_hash_find() 161 batadv_tt_global_hash_find(struct batadv_priv *bat_priv, const uint8_t *addr, in batadv_tt_global_hash_find() argument 167 tt_common_entry = batadv_tt_hash_find(bat_priv->tt.global_hash, addr, in batadv_tt_global_hash_find() 206 int batadv_tt_global_hash_count(struct batadv_priv *bat_priv, in batadv_tt_global_hash_count() argument 212 tt_global_entry = batadv_tt_global_hash_find(bat_priv, addr, vid); in batadv_tt_global_hash_count() 243 static void batadv_tt_local_size_mod(struct batadv_priv *bat_priv, in batadv_tt_local_size_mod() argument 248 vlan = batadv_softif_vlan_get(bat_priv, vid); in batadv_tt_local_size_mod() [all …]
|
D | distributed-arp-table.c | 39 static void batadv_dat_start_timer(struct batadv_priv *bat_priv) in batadv_dat_start_timer() argument 41 INIT_DELAYED_WORK(&bat_priv->dat.work, batadv_dat_purge); in batadv_dat_start_timer() 42 queue_delayed_work(batadv_event_workqueue, &bat_priv->dat.work, in batadv_dat_start_timer() 80 static void __batadv_dat_purge(struct batadv_priv *bat_priv, in __batadv_dat_purge() argument 89 if (!bat_priv->dat.hash) in __batadv_dat_purge() 92 for (i = 0; i < bat_priv->dat.hash->size; i++) { in __batadv_dat_purge() 93 head = &bat_priv->dat.hash->table[i]; in __batadv_dat_purge() 94 list_lock = &bat_priv->dat.hash->list_locks[i]; in __batadv_dat_purge() 121 struct batadv_priv *bat_priv; in batadv_dat_purge() local 125 bat_priv = container_of(priv_dat, struct batadv_priv, dat); in batadv_dat_purge() [all …]
|
D | network-coding.c | 54 static void batadv_nc_start_timer(struct batadv_priv *bat_priv) in batadv_nc_start_timer() argument 56 queue_delayed_work(batadv_event_workqueue, &bat_priv->nc.work, in batadv_nc_start_timer() 65 static void batadv_nc_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_nc_tvlv_container_update() argument 69 nc_mode = atomic_read(&bat_priv->network_coding); in batadv_nc_tvlv_container_update() 73 batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_NC, 1); in batadv_nc_tvlv_container_update() 76 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_NC, 1, in batadv_nc_tvlv_container_update() 89 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_nc_status_update() local 91 batadv_nc_tvlv_container_update(bat_priv); in batadv_nc_status_update() 102 static void batadv_nc_tvlv_ogm_handler_v1(struct batadv_priv *bat_priv, in batadv_nc_tvlv_ogm_handler_v1() argument 118 int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init() argument [all …]
|
D | main.c | 103 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_mesh_init() local 106 spin_lock_init(&bat_priv->forw_bat_list_lock); in batadv_mesh_init() 107 spin_lock_init(&bat_priv->forw_bcast_list_lock); in batadv_mesh_init() 108 spin_lock_init(&bat_priv->tt.changes_list_lock); in batadv_mesh_init() 109 spin_lock_init(&bat_priv->tt.req_list_lock); in batadv_mesh_init() 110 spin_lock_init(&bat_priv->tt.roam_list_lock); in batadv_mesh_init() 111 spin_lock_init(&bat_priv->tt.last_changeset_lock); in batadv_mesh_init() 112 spin_lock_init(&bat_priv->tt.commit_lock); in batadv_mesh_init() 113 spin_lock_init(&bat_priv->gw.list_lock); in batadv_mesh_init() 115 spin_lock_init(&bat_priv->mcast.want_lists_lock); in batadv_mesh_init() [all …]
|
D | send.c | 41 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_send_skb_packet() local 73 batadv_nc_skb_store_for_decoding(bat_priv, skb); in batadv_send_skb_packet() 103 struct batadv_priv *bat_priv = orig_node->bat_priv; in batadv_send_skb_to_orig() local 108 neigh_node = batadv_find_router(bat_priv, orig_node, recv_if); in batadv_send_skb_to_orig() 115 if (atomic_read(&bat_priv->fragmentation) && in batadv_send_skb_to_orig() 201 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_prepare_unicast_4addr() argument 210 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_send_skb_prepare_unicast_4addr() 252 int batadv_send_skb_unicast(struct batadv_priv *bat_priv, in batadv_send_skb_unicast() argument 271 if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, in batadv_send_skb_unicast() 294 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast() [all …]
|
D | gateway_client.c | 52 batadv_gw_get_selected_gw_node(struct batadv_priv *bat_priv) in batadv_gw_get_selected_gw_node() argument 57 gw_node = rcu_dereference(bat_priv->gw.curr_gw); in batadv_gw_get_selected_gw_node() 70 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv) in batadv_gw_get_selected_orig() argument 75 gw_node = batadv_gw_get_selected_gw_node(bat_priv); in batadv_gw_get_selected_orig() 95 static void batadv_gw_select(struct batadv_priv *bat_priv, in batadv_gw_select() argument 100 spin_lock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 105 curr_gw_node = rcu_dereference_protected(bat_priv->gw.curr_gw, 1); in batadv_gw_select() 106 rcu_assign_pointer(bat_priv->gw.curr_gw, new_gw_node); in batadv_gw_select() 111 spin_unlock_bh(&bat_priv->gw.list_lock); in batadv_gw_select() 125 void batadv_gw_reselect(struct batadv_priv *bat_priv) in batadv_gw_reselect() argument [all …]
|
D | distributed-arp-table.h | 34 bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv, 36 bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv, 38 void batadv_dat_snoop_outgoing_arp_reply(struct batadv_priv *bat_priv, 40 bool batadv_dat_snoop_incoming_arp_reply(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); 76 void batadv_dat_free(struct batadv_priv *bat_priv); 86 static inline void batadv_dat_inc_counter(struct batadv_priv *bat_priv, in batadv_dat_inc_counter() argument [all …]
|
D | routing.c | 45 static void _batadv_update_route(struct batadv_priv *bat_priv, in _batadv_update_route() argument 65 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route() 67 batadv_tt_global_del_orig(bat_priv, orig_node, -1, in _batadv_update_route() 72 batadv_dbg(BATADV_DBG_ROUTES, bat_priv, in _batadv_update_route() 77 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() 141 int batadv_window_protected(struct batadv_priv *bat_priv, int32_t seq_num_diff, in batadv_window_protected() argument 151 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_window_protected() 197 static int batadv_recv_my_icmp_packet(struct batadv_priv *bat_priv, in batadv_recv_my_icmp_packet() argument [all …]
|
D | originator.c | 128 int batadv_originator_init(struct batadv_priv *bat_priv) in batadv_originator_init() argument 130 if (bat_priv->orig_hash) in batadv_originator_init() 133 bat_priv->orig_hash = batadv_hash_new(1024); in batadv_originator_init() 135 if (!bat_priv->orig_hash) in batadv_originator_init() 138 batadv_hash_set_lock_class(bat_priv->orig_hash, in batadv_originator_init() 141 INIT_DELAYED_WORK(&bat_priv->orig_work, batadv_purge_orig); in batadv_originator_init() 143 &bat_priv->orig_work, in batadv_originator_init() 569 batadv_nc_purge_orig(orig_node->bat_priv, orig_node, NULL); in batadv_orig_node_free_rcu() 573 batadv_tt_global_del_orig(orig_node->bat_priv, orig_node, -1, in batadv_orig_node_free_rcu() 576 if (orig_node->bat_priv->bat_algo_ops->bat_orig_free) in batadv_orig_node_free_rcu() [all …]
|
D | gateway_common.c | 115 void batadv_gw_tvlv_container_update(struct batadv_priv *bat_priv) in batadv_gw_tvlv_container_update() argument 121 gw_mode = atomic_read(&bat_priv->gw_mode); in batadv_gw_tvlv_container_update() 126 batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_GW, 1); in batadv_gw_tvlv_container_update() 129 down = atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_tvlv_container_update() 130 up = atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_tvlv_container_update() 133 batadv_tvlv_container_register(bat_priv, BATADV_TVLV_GW, 1, in batadv_gw_tvlv_container_update() 142 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set() local 146 down_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_down); in batadv_gw_bandwidth_set() 147 up_curr = (unsigned int)atomic_read(&bat_priv->gw.bandwidth_up); in batadv_gw_bandwidth_set() 165 batadv_gw_reselect(bat_priv); in batadv_gw_bandwidth_set() [all …]
|
D | network-coding.h | 25 int batadv_nc_mesh_init(struct batadv_priv *bat_priv); 26 void batadv_nc_mesh_free(struct batadv_priv *bat_priv); 27 void batadv_nc_update_nc_node(struct batadv_priv *bat_priv, 32 void batadv_nc_purge_orig(struct batadv_priv *bat_priv, 36 void batadv_nc_init_bat_priv(struct batadv_priv *bat_priv); 40 void batadv_nc_skb_store_for_decoding(struct batadv_priv *bat_priv, 42 void batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv, 45 int batadv_nc_init_debugfs(struct batadv_priv *bat_priv); 58 static inline int batadv_nc_mesh_init(struct batadv_priv *bat_priv) in batadv_nc_mesh_init() argument 63 static inline void batadv_nc_mesh_free(struct batadv_priv *bat_priv) in batadv_nc_mesh_free() argument [all …]
|
D | hard-interface.c | 167 static void batadv_primary_if_update_addr(struct batadv_priv *bat_priv, in batadv_primary_if_update_addr() argument 172 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_primary_if_update_addr() 176 batadv_dat_init_own_addr(bat_priv, primary_if); in batadv_primary_if_update_addr() 177 batadv_bla_update_orig_address(bat_priv, primary_if, oldif); in batadv_primary_if_update_addr() 183 static void batadv_primary_if_select(struct batadv_priv *bat_priv, in batadv_primary_if_select() argument 193 curr_hard_iface = rcu_dereference_protected(bat_priv->primary_if, 1); in batadv_primary_if_select() 194 rcu_assign_pointer(bat_priv->primary_if, new_hard_iface); in batadv_primary_if_select() 199 bat_priv->bat_algo_ops->bat_primary_iface_set(new_hard_iface); in batadv_primary_if_select() 200 batadv_primary_if_update_addr(bat_priv, curr_hard_iface); in batadv_primary_if_select() 242 struct batadv_priv *bat_priv = netdev_priv(soft_iface); in batadv_hardif_min_mtu() local [all …]
|
D | sysfs.c | 70 batadv_kobj_to_vlan(struct batadv_priv *bat_priv, struct kobject *obj) in batadv_kobj_to_vlan() argument 75 hlist_for_each_entry_rcu(vlan_tmp, &bat_priv->softif_vlan_list, list) { in batadv_kobj_to_vlan() 128 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 131 &bat_priv->_name, net_dev); \ 138 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 141 atomic_read(&bat_priv->_name) == 0 ? \ 161 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 165 &bat_priv->_name, net_dev); \ 172 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 174 return sprintf(buff, "%i\n", atomic_read(&bat_priv->_name)); \ [all …]
|
D | main.h | 199 int batadv_is_my_mac(struct batadv_priv *bat_priv, const uint8_t *addr); 213 int batadv_algo_select(struct batadv_priv *bat_priv, char *name); 238 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...) 242 #define _batadv_dbg(type, bat_priv, ratelimited, fmt, arg...) \ argument 244 if (atomic_read(&bat_priv->log_level) & type && \ 246 batadv_debug_log(bat_priv, fmt, ## arg);\ 252 struct batadv_priv *bat_priv __always_unused, in _batadv_dbg() 259 #define batadv_dbg(type, bat_priv, arg...) \ argument 260 _batadv_dbg(type, bat_priv, 0, ## arg) 261 #define batadv_dbg_ratelimited(type, bat_priv, arg...) \ argument [all …]
|
D | bridge_loop_avoidance.h | 22 int batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, 24 int batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, 31 bool batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, uint8_t *orig, 33 int batadv_bla_check_bcast_duplist(struct batadv_priv *bat_priv, 35 void batadv_bla_update_orig_address(struct batadv_priv *bat_priv, 38 int batadv_bla_init(struct batadv_priv *bat_priv); 39 void batadv_bla_free(struct batadv_priv *bat_priv); 44 static inline int batadv_bla_rx(struct batadv_priv *bat_priv, in batadv_bla_rx() argument 51 static inline int batadv_bla_tx(struct batadv_priv *bat_priv, in batadv_bla_tx() argument 76 static inline bool batadv_bla_is_backbone_gw_orig(struct batadv_priv *bat_priv, in batadv_bla_is_backbone_gw_orig() argument [all …]
|
D | translation-table.h | 21 int batadv_tt_init(struct batadv_priv *bat_priv); 24 uint16_t batadv_tt_local_remove(struct batadv_priv *bat_priv, 29 void batadv_tt_global_del_orig(struct batadv_priv *bat_priv, 32 int batadv_tt_global_hash_count(struct batadv_priv *bat_priv, 34 struct batadv_orig_node *batadv_transtable_search(struct batadv_priv *bat_priv, 38 void batadv_tt_free(struct batadv_priv *bat_priv); 39 bool batadv_is_my_client(struct batadv_priv *bat_priv, const uint8_t *addr, 41 bool batadv_is_ap_isolated(struct batadv_priv *bat_priv, uint8_t *src, 43 void batadv_tt_local_commit_changes(struct batadv_priv *bat_priv); 44 bool batadv_tt_global_client_is_roaming(struct batadv_priv *bat_priv, [all …]
|
D | bat_iv_ogm.c | 222 batadv_iv_ogm_orig_get(struct batadv_priv *bat_priv, const uint8_t *addr) in batadv_iv_ogm_orig_get() argument 227 orig_node = batadv_orig_hash_find(bat_priv, addr); in batadv_iv_ogm_orig_get() 231 orig_node = batadv_orig_node_new(bat_priv, addr); in batadv_iv_ogm_orig_get() 237 size = bat_priv->num_ifaces * sizeof(unsigned long) * BATADV_NUM_WORDS; in batadv_iv_ogm_orig_get() 242 size = bat_priv->num_ifaces * sizeof(uint8_t); in batadv_iv_ogm_orig_get() 247 hash_added = batadv_hash_add(bat_priv->orig_hash, batadv_compare_orig, in batadv_iv_ogm_orig_get() 269 struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface); in batadv_iv_ogm_neigh_new() local 298 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_iv_ogm_neigh_new() 370 batadv_iv_ogm_emit_send_time(const struct batadv_priv *bat_priv) in batadv_iv_ogm_emit_send_time() argument 374 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_iv_ogm_emit_send_time() [all …]
|
D | debugfs.c | 86 int batadv_debug_log(struct batadv_priv *bat_priv, const char *fmt, ...) in batadv_debug_log() argument 93 batadv_fdebug_log(bat_priv->debug_log, "[%10u] %s", in batadv_debug_log() 124 struct batadv_priv *bat_priv = file->private_data; in batadv_log_read() local 125 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log; in batadv_log_read() 178 struct batadv_priv *bat_priv = file->private_data; in batadv_log_poll() local 179 struct batadv_priv_debug_log *debug_log = bat_priv->debug_log; in batadv_log_poll() 197 static int batadv_debug_log_setup(struct batadv_priv *bat_priv) in batadv_debug_log_setup() argument 201 if (!bat_priv->debug_dir) in batadv_debug_log_setup() 204 bat_priv->debug_log = kzalloc(sizeof(*bat_priv->debug_log), GFP_ATOMIC); in batadv_debug_log_setup() 205 if (!bat_priv->debug_log) in batadv_debug_log_setup() [all …]
|
D | gateway_client.h | 21 void batadv_gw_check_client_stop(struct batadv_priv *bat_priv); 22 void batadv_gw_reselect(struct batadv_priv *bat_priv); 23 void batadv_gw_election(struct batadv_priv *bat_priv); 25 batadv_gw_get_selected_orig(struct batadv_priv *bat_priv); 26 void batadv_gw_check_election(struct batadv_priv *bat_priv, 28 void batadv_gw_node_update(struct batadv_priv *bat_priv, 31 void batadv_gw_node_delete(struct batadv_priv *bat_priv, 33 void batadv_gw_node_purge(struct batadv_priv *bat_priv); 35 bool batadv_gw_out_of_range(struct batadv_priv *bat_priv, struct sk_buff *skb);
|
D | send.h | 28 int batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv, 33 batadv_purge_outstanding_packets(struct batadv_priv *bat_priv, 35 bool batadv_send_skb_prepare_unicast_4addr(struct batadv_priv *bat_priv, 39 int batadv_send_skb_unicast(struct batadv_priv *bat_priv, 44 int batadv_send_skb_via_tt_generic(struct batadv_priv *bat_priv, 48 int batadv_send_skb_via_gw(struct batadv_priv *bat_priv, struct sk_buff *skb, 64 static inline int batadv_send_skb_via_tt(struct batadv_priv *bat_priv, in batadv_send_skb_via_tt() argument 68 return batadv_send_skb_via_tt_generic(bat_priv, skb, BATADV_UNICAST, 0, in batadv_send_skb_via_tt() 87 static inline int batadv_send_skb_via_tt_4addr(struct batadv_priv *bat_priv, in batadv_send_skb_via_tt_4addr() argument 93 return batadv_send_skb_via_tt_generic(bat_priv, skb, in batadv_send_skb_via_tt_4addr()
|
D | multicast.h | 37 void batadv_mcast_mla_update(struct batadv_priv *bat_priv); 40 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, 43 void batadv_mcast_init(struct batadv_priv *bat_priv); 45 void batadv_mcast_free(struct batadv_priv *bat_priv); 51 static inline void batadv_mcast_mla_update(struct batadv_priv *bat_priv) in batadv_mcast_mla_update() argument 57 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, in batadv_mcast_forw_mode() argument 63 static inline int batadv_mcast_init(struct batadv_priv *bat_priv) in batadv_mcast_init() argument 68 static inline void batadv_mcast_free(struct batadv_priv *bat_priv) in batadv_mcast_free() argument
|
D | icmp_socket.c | 71 socket_client->bat_priv = inode->i_private; in batadv_socket_open() 153 struct batadv_priv *bat_priv = socket_client->bat_priv; in batadv_socket_write() local 164 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_socket_write() 169 primary_if = batadv_primary_if_get_selected(bat_priv); in batadv_socket_write() 197 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_socket_write() 206 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_socket_write() 212 if (atomic_read(&bat_priv->mesh_state) != BATADV_MESH_ACTIVE) in batadv_socket_write() 215 orig_node = batadv_orig_hash_find(bat_priv, icmp_header->dst); in batadv_socket_write() 238 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, in batadv_socket_write() 296 int batadv_socket_setup(struct batadv_priv *bat_priv) in batadv_socket_setup() argument [all …]
|