Lines Matching refs:ogm_packet

315 			  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()
1389 batadv_tvlv_ogm_receive(bat_priv, ogm_packet, orig_node); in batadv_iv_ogm_process_per_outif()
1405 ogm_packet, is_single_hop_neigh); in batadv_iv_ogm_process_per_outif()
1420 ogm_packet, if_incoming, in batadv_iv_ogm_process_per_outif()
1430 sameseq = orig_ifinfo->last_real_seqno == ntohl(ogm_packet->seqno); in batadv_iv_ogm_process_per_outif()
1431 similar_ttl = (orig_ifinfo->last_ttl - 3) <= ogm_packet->ttl; in batadv_iv_ogm_process_per_outif()
1437 ogm_packet, if_incoming, in batadv_iv_ogm_process_per_outif()
1451 if (ogm_packet->ttl <= 2 && in batadv_iv_ogm_process_per_outif()
1458 batadv_iv_ogm_forward(orig_node, ethhdr, ogm_packet, in batadv_iv_ogm_process_per_outif()
1483 batadv_iv_ogm_forward(orig_node, ethhdr, ogm_packet, in batadv_iv_ogm_process_per_outif()
1507 static void batadv_iv_ogm_process_reply(struct batadv_ogm_packet *ogm_packet, in batadv_iv_ogm_process_reply() argument
1519 if (!(ogm_packet->flags & BATADV_DIRECTLINK)) in batadv_iv_ogm_process_reply()
1523 ogm_packet->orig)) in batadv_iv_ogm_process_reply()
1533 bit_pos -= ntohl(ogm_packet->seqno); in batadv_iv_ogm_process_reply()
1555 struct batadv_ogm_packet *ogm_packet; in batadv_iv_ogm_process() local
1563 ogm_packet = (struct batadv_ogm_packet *)(skb->data + ogm_offset); in batadv_iv_ogm_process()
1578 if (ogm_packet->packet_type != BATADV_IV_OGM) in batadv_iv_ogm_process()
1584 if (ogm_packet->flags & BATADV_DIRECTLINK) in batadv_iv_ogm_process()
1592 if_incoming->net_dev->dev_addr, ogm_packet->orig, in batadv_iv_ogm_process()
1593 ogm_packet->prev_sender, ntohl(ogm_packet->seqno), in batadv_iv_ogm_process()
1594 ogm_packet->tq, ogm_packet->ttl, in batadv_iv_ogm_process()
1595 ogm_packet->version, has_directlink_flag); in batadv_iv_ogm_process()
1609 if (batadv_compare_eth(ogm_packet->orig, in batadv_iv_ogm_process()
1613 if (batadv_compare_eth(ogm_packet->prev_sender, in batadv_iv_ogm_process()
1632 batadv_iv_ogm_process_reply(ogm_packet, if_incoming, in batadv_iv_ogm_process()
1648 if (ogm_packet->flags & BATADV_NOT_BEST_NEXT_HOP) { in batadv_iv_ogm_process()
1655 orig_node = batadv_iv_ogm_orig_get(bat_priv, ogm_packet->orig); in batadv_iv_ogm_process()
1725 struct batadv_ogm_packet *ogm_packet; in batadv_iv_ogm_receive() local
1746 ogm_packet = (struct batadv_ogm_packet *)skb->data; in batadv_iv_ogm_receive()
1750 ogm_packet)) { in batadv_iv_ogm_receive()
1754 ogm_offset += ntohs(ogm_packet->tvlv_len); in batadv_iv_ogm_receive()
1757 ogm_packet = (struct batadv_ogm_packet *)packet_pos; in batadv_iv_ogm_receive()