Lines Matching defs:unicast_packet
660 struct batadv_unicast_packet *unicast_packet;
665 unicast_packet = (struct batadv_unicast_packet *)skb->data;
668 if (unicast_packet->ttl < 2) {
670 ethhdr->h_source, unicast_packet->dest);
675 orig_node = batadv_orig_hash_find(bat_priv, unicast_packet->dest);
685 unicast_packet = (struct batadv_unicast_packet *)skb->data;
686 unicast_packet->ttl--;
688 switch (unicast_packet->packet_type) {
731 * @unicast_packet: the unicast header to be updated
743 struct batadv_unicast_packet *unicast_packet,
764 if (batadv_compare_eth(orig_node->orig, unicast_packet->dest))
772 skb_postpull_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
773 ether_addr_copy(unicast_packet->dest, orig_addr);
774 unicast_packet->ttvn = orig_ttvn;
775 skb_postpush_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
788 struct batadv_unicast_packet *unicast_packet;
801 if (skb_cow(skb, sizeof(*unicast_packet)) < 0)
804 unicast_packet = (struct batadv_unicast_packet *)skb->data;
818 if (batadv_reroute_unicast_packet(bat_priv, skb, unicast_packet,
823 unicast_packet->dest,
838 if (!batadv_is_my_mac(bat_priv, unicast_packet->dest)) {
840 unicast_packet->dest);
855 is_old_ttvn = batadv_seq_before(unicast_packet->ttvn, curr_ttvn);
859 old_ttvn = unicast_packet->ttvn;
864 if (batadv_reroute_unicast_packet(bat_priv, skb, unicast_packet,
868 unicast_packet->dest, ethhdr->h_dest,
888 skb_postpull_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
889 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr);
890 unicast_packet->ttvn = curr_ttvn;
891 skb_postpush_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
910 struct batadv_unicast_packet *unicast_packet;
912 int check, hdr_size = sizeof(*unicast_packet);
919 unicast_packet = (struct batadv_unicast_packet *)skb->data;
920 if (batadv_is_my_mac(bat_priv, unicast_packet->dest))
941 struct batadv_unicast_packet *unicast_packet;
945 int check, hdr_size = sizeof(*unicast_packet);
950 unicast_packet = (struct batadv_unicast_packet *)skb->data;
951 is4addr = unicast_packet->packet_type == BATADV_UNICAST_4ADDR;
964 unicast_packet = (struct batadv_unicast_packet *)skb->data;
967 if (batadv_is_my_mac(bat_priv, unicast_packet->dest)) {