Searched refs:ogm_packet (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/net/batman-adv/ |
D | bat_v_ogm.c | 145 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_len() local 147 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_len() 148 return BATADV_OGM2_HLEN + ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_len() 263 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_send_softif() local 295 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_send_softif() 296 ogm_packet->seqno = htonl(atomic_read(&bat_priv->bat_v.ogm_seqno)); in batadv_v_ogm_send_softif() 298 ogm_packet->tvlv_len = htons(tvlv_len); in batadv_v_ogm_send_softif() 336 ogm_packet->orig, ntohl(ogm_packet->seqno), in batadv_v_ogm_send_softif() 337 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_softif() 437 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_primary_iface_set() local [all …]
|
D | bat_iv_ogm.c | 317 const struct batadv_ogm_packet *ogm_packet) in batadv_iv_ogm_aggr_packet() argument 322 next_buff_pos += buff_pos + sizeof(*ogm_packet); in batadv_iv_ogm_aggr_packet() 327 next_buff_pos += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_aggr_packet() 1329 struct batadv_ogm_packet *ogm_packet; in batadv_iv_ogm_process_per_outif() local 1347 ogm_packet = (struct batadv_ogm_packet *)(skb_priv->data + ogm_offset); in batadv_iv_ogm_process_per_outif() 1349 dup_status = batadv_iv_ogm_update_seqnos(ethhdr, ogm_packet, in batadv_iv_ogm_process_per_outif() 1351 if (batadv_compare_eth(ethhdr->h_source, ogm_packet->orig)) in batadv_iv_ogm_process_per_outif() 1361 if (ogm_packet->tq == 0) { in batadv_iv_ogm_process_per_outif() 1385 prev_sender = ogm_packet->prev_sender; in batadv_iv_ogm_process_per_outif() 1389 !(batadv_compare_eth(ogm_packet->orig, prev_sender)) && in batadv_iv_ogm_process_per_outif() [all …]
|
D | network-coding.h | 27 struct batadv_ogm_packet *ogm_packet, 68 struct batadv_ogm_packet *ogm_packet, in batadv_nc_update_nc_node() argument
|
D | network-coding.c | 766 struct batadv_ogm_packet *ogm_packet) in batadv_can_nc_with_orig() argument 780 if (last_real_seqno != ntohl(ogm_packet->seqno)) in batadv_can_nc_with_orig() 782 if (last_ttl != ogm_packet->ttl + 1) in batadv_can_nc_with_orig() 784 if (!batadv_compare_eth(ogm_packet->orig, ogm_packet->prev_sender)) in batadv_can_nc_with_orig() 786 if (ogm_packet->tq < bat_priv->nc.min_tq) in batadv_can_nc_with_orig() 908 struct batadv_ogm_packet *ogm_packet, in batadv_nc_update_nc_node() argument 923 if (!batadv_can_nc_with_orig(bat_priv, orig_node, ogm_packet) && in batadv_nc_update_nc_node()
|