Home
last modified time | relevance | path

Searched refs:ogm_packet (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/net/batman-adv/
Dbat_v_ogm.c147 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_len() local
149 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_len()
150 return BATADV_OGM2_HLEN + ntohs(ogm_packet->tvlv_len); in batadv_v_ogm_len()
265 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_send_softif() local
297 ogm_packet = (struct batadv_ogm2_packet *)skb->data; in batadv_v_ogm_send_softif()
298 ogm_packet->seqno = htonl(atomic_read(&bat_priv->bat_v.ogm_seqno)); in batadv_v_ogm_send_softif()
300 ogm_packet->tvlv_len = htons(tvlv_len); in batadv_v_ogm_send_softif()
338 ogm_packet->orig, ntohl(ogm_packet->seqno), in batadv_v_ogm_send_softif()
339 ntohl(ogm_packet->throughput), ogm_packet->ttl, in batadv_v_ogm_send_softif()
439 struct batadv_ogm2_packet *ogm_packet; in batadv_v_ogm_primary_iface_set() local
[all …]
Dbat_iv_ogm.c315 const struct batadv_ogm_packet *ogm_packet) in batadv_iv_ogm_aggr_packet() argument
320 next_buff_pos += buff_pos + sizeof(*ogm_packet); in batadv_iv_ogm_aggr_packet()
325 next_buff_pos += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_aggr_packet()
1320 struct batadv_ogm_packet *ogm_packet; in batadv_iv_ogm_process_per_outif() local
1338 ogm_packet = (struct batadv_ogm_packet *)(skb_priv->data + ogm_offset); in batadv_iv_ogm_process_per_outif()
1340 dup_status = batadv_iv_ogm_update_seqnos(ethhdr, ogm_packet, in batadv_iv_ogm_process_per_outif()
1342 if (batadv_compare_eth(ethhdr->h_source, ogm_packet->orig)) in batadv_iv_ogm_process_per_outif()
1352 if (ogm_packet->tq == 0) { in batadv_iv_ogm_process_per_outif()
1376 prev_sender = ogm_packet->prev_sender; in batadv_iv_ogm_process_per_outif()
1380 !(batadv_compare_eth(ogm_packet->orig, prev_sender)) && in batadv_iv_ogm_process_per_outif()
[all …]
Dnetwork-coding.h26 struct batadv_ogm_packet *ogm_packet,
65 struct batadv_ogm_packet *ogm_packet, in batadv_nc_update_nc_node() argument
Dnetwork-coding.c759 struct batadv_ogm_packet *ogm_packet) in batadv_can_nc_with_orig() argument
773 if (last_real_seqno != ntohl(ogm_packet->seqno)) in batadv_can_nc_with_orig()
775 if (last_ttl != ogm_packet->ttl + 1) in batadv_can_nc_with_orig()
777 if (!batadv_compare_eth(ogm_packet->orig, ogm_packet->prev_sender)) in batadv_can_nc_with_orig()
779 if (ogm_packet->tq < bat_priv->nc.min_tq) in batadv_can_nc_with_orig()
901 struct batadv_ogm_packet *ogm_packet, in batadv_nc_update_nc_node() argument
916 if (!batadv_can_nc_with_orig(bat_priv, orig_node, ogm_packet) && in batadv_nc_update_nc_node()