Home
last modified time | relevance | path

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

/openbmc/linux/net/batman-adv/
H A Dbat_v_ogm.c832 int next_buff_pos = 0; in batadv_v_ogm_aggr_packet() local
835 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()
H A Dbat_iv_ogm.c317 int next_buff_pos = 0; in batadv_iv_ogm_aggr_packet() local
320 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()