Searched refs:next_buff_pos (Results 1 – 2 of 2) sorted by relevance
831 int next_buff_pos = 0; in batadv_v_ogm_aggr_packet() local834 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()
318 int next_buff_pos = 0; in batadv_iv_ogm_aggr_packet() local321 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()