Home
last modified time | relevance | path

Searched refs:next_buff_pos (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/net/batman-adv/
Dbat_v_ogm.c831 int next_buff_pos = 0; in batadv_v_ogm_aggr_packet() local
834 next_buff_pos += buff_pos + sizeof(*ogm2_packet); in batadv_v_ogm_aggr_packet()
835 if (next_buff_pos > packet_len) in batadv_v_ogm_aggr_packet()
839 next_buff_pos += ntohs(ogm2_packet->tvlv_len); in batadv_v_ogm_aggr_packet()
841 return (next_buff_pos <= packet_len) && in batadv_v_ogm_aggr_packet()
842 (next_buff_pos <= BATADV_MAX_AGGREGATION_BYTES); in batadv_v_ogm_aggr_packet()
Dbat_iv_ogm.c318 int next_buff_pos = 0; in batadv_iv_ogm_aggr_packet() local
321 next_buff_pos += buff_pos + sizeof(*ogm_packet); in batadv_iv_ogm_aggr_packet()
322 if (next_buff_pos > packet_len) in batadv_iv_ogm_aggr_packet()
326 next_buff_pos += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_aggr_packet()
328 return (next_buff_pos <= packet_len) && in batadv_iv_ogm_aggr_packet()
329 (next_buff_pos <= BATADV_MAX_AGGREGATION_BYTES); in batadv_iv_ogm_aggr_packet()