Searched refs:next_buff_pos (Results 1 – 2 of 2) sorted by relevance
832 int next_buff_pos = 0; in batadv_v_ogm_aggr_packet() local835 next_buff_pos += buff_pos + sizeof(*ogm2_packet); in batadv_v_ogm_aggr_packet()836 if (next_buff_pos > packet_len) in batadv_v_ogm_aggr_packet()840 next_buff_pos += ntohs(ogm2_packet->tvlv_len); in batadv_v_ogm_aggr_packet()842 return (next_buff_pos <= packet_len) && in batadv_v_ogm_aggr_packet()843 (next_buff_pos <= BATADV_MAX_AGGREGATION_BYTES); in batadv_v_ogm_aggr_packet()
317 int next_buff_pos = 0; in batadv_iv_ogm_aggr_packet() local320 next_buff_pos += buff_pos + sizeof(*ogm_packet); in batadv_iv_ogm_aggr_packet()321 if (next_buff_pos > packet_len) in batadv_iv_ogm_aggr_packet()325 next_buff_pos += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_aggr_packet()327 return (next_buff_pos <= packet_len) && in batadv_iv_ogm_aggr_packet()328 (next_buff_pos <= BATADV_MAX_AGGREGATION_BYTES); in batadv_iv_ogm_aggr_packet()