Home
last modified time | relevance | path

Searched refs:tvlv_len (Results 1 – 5 of 5) sorted by relevance

/net/batman-adv/
Dtvlv.c159 u16 tvlv_len = 0; in batadv_tvlv_container_list_size() local
164 tvlv_len += sizeof(struct batadv_tvlv_hdr); in batadv_tvlv_container_list_size()
165 tvlv_len += ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_list_size()
168 return tvlv_len; in batadv_tvlv_container_list_size()
482 tvlv_value_len = ntohs(batadv_ogm_packet->tvlv_len); in batadv_tvlv_ogm_receive()
594 unsigned int tvlv_len; in batadv_tvlv_unicast_send() local
601 tvlv_len = sizeof(*tvlv_hdr) + tvlv_value_len; in batadv_tvlv_unicast_send()
603 skb = netdev_alloc_skb_ip_align(NULL, ETH_HLEN + hdr_len + tvlv_len); in batadv_tvlv_unicast_send()
609 tvlv_buff = skb_put(skb, sizeof(*unicast_tvlv_packet) + tvlv_len); in batadv_tvlv_unicast_send()
615 unicast_tvlv_packet->tvlv_len = htons(tvlv_len); in batadv_tvlv_unicast_send()
Dbat_v_ogm.c147 return BATADV_OGM2_HLEN + ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_len()
270 u16 tvlv_len = 0; in batadv_v_ogm_send_softif() local
284 tvlv_len = batadv_tvlv_container_ogm_append(bat_priv, &ogm_buff, in batadv_v_ogm_send_softif()
301 ogm_packet->tvlv_len = htons(tvlv_len); in batadv_v_ogm_send_softif()
526 u16 tvlv_len; in batadv_v_ogm_forward() local
558 tvlv_len = ntohs(ogm_received->tvlv_len); in batadv_v_ogm_forward()
560 packet_len = BATADV_OGM2_HLEN + tvlv_len; in batadv_v_ogm_forward()
811 ntohs(ogm2->tvlv_len)); in batadv_v_ogm_process_per_outif()
844 next_buff_pos += ntohs(ogm2_packet->tvlv_len); in batadv_v_ogm_aggr_packet()
879 ogm_packet->version, ntohs(ogm_packet->tvlv_len)); in batadv_v_ogm_process()
[all …]
Dtranslation-table.c859 u16 tvlv_len; in batadv_tt_prepare_tvlv_global_data() local
877 tvlv_len = *tt_len; in batadv_tt_prepare_tvlv_global_data()
878 tvlv_len += change_offset; in batadv_tt_prepare_tvlv_global_data()
880 *tt_data = kmalloc(tvlv_len, GFP_ATOMIC); in batadv_tt_prepare_tvlv_global_data()
903 return tvlv_len; in batadv_tt_prepare_tvlv_global_data()
935 u16 tvlv_len; in batadv_tt_prepare_tvlv_local_data() local
956 tvlv_len = *tt_len; in batadv_tt_prepare_tvlv_local_data()
957 tvlv_len += change_offset; in batadv_tt_prepare_tvlv_local_data()
959 *tt_data = kmalloc(tvlv_len, GFP_ATOMIC); in batadv_tt_prepare_tvlv_local_data()
961 tvlv_len = 0; in batadv_tt_prepare_tvlv_local_data()
[all …]
Dbat_iv_ogm.c326 next_buff_pos += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_aggr_packet()
381 buff_pos += ntohs(batadv_ogm_packet->tvlv_len); in batadv_iv_ogm_send_to_if()
690 u16 tvlv_len; in batadv_iv_ogm_forward() local
710 tvlv_len = ntohs(batadv_ogm_packet->tvlv_len); in batadv_iv_ogm_forward()
729 BATADV_OGM_HLEN + tvlv_len, in batadv_iv_ogm_forward()
787 u16 tvlv_len = 0; in batadv_iv_ogm_schedule_buff() local
808 tvlv_len = batadv_tvlv_container_ogm_append(bat_priv, ogm_buff, in batadv_iv_ogm_schedule_buff()
814 batadv_ogm_packet->tvlv_len = htons(tvlv_len); in batadv_iv_ogm_schedule_buff()
1760 ogm_offset += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_receive()
Drouting.c1088 tvlv_buff_len = ntohs(unicast_tvlv_packet->tvlv_len); in batadv_recv_unicast_tvlv()