Lines Matching defs:unicast_packet

661 	struct batadv_unicast_packet *unicast_packet;
666 unicast_packet = (struct batadv_unicast_packet *)skb->data;
669 if (unicast_packet->ttl < 2) {
671 ethhdr->h_source, unicast_packet->dest);
676 orig_node = batadv_orig_hash_find(bat_priv, unicast_packet->dest);
686 unicast_packet = (struct batadv_unicast_packet *)skb->data;
687 unicast_packet->ttl--;
689 switch (unicast_packet->packet_type) {
732 * @unicast_packet: the unicast header to be updated
744 struct batadv_unicast_packet *unicast_packet,
765 if (batadv_compare_eth(orig_node->orig, unicast_packet->dest))
773 skb_postpull_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
774 ether_addr_copy(unicast_packet->dest, orig_addr);
775 unicast_packet->ttvn = orig_ttvn;
776 skb_postpush_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
789 struct batadv_unicast_packet *unicast_packet;
802 if (skb_cow(skb, sizeof(*unicast_packet)) < 0)
805 unicast_packet = (struct batadv_unicast_packet *)skb->data;
819 if (batadv_reroute_unicast_packet(bat_priv, skb, unicast_packet,
824 unicast_packet->dest,
839 if (!batadv_is_my_mac(bat_priv, unicast_packet->dest)) {
841 unicast_packet->dest);
856 is_old_ttvn = batadv_seq_before(unicast_packet->ttvn, curr_ttvn);
860 old_ttvn = unicast_packet->ttvn;
865 if (batadv_reroute_unicast_packet(bat_priv, skb, unicast_packet,
869 unicast_packet->dest, ethhdr->h_dest,
889 skb_postpull_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
890 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr);
891 unicast_packet->ttvn = curr_ttvn;
892 skb_postpush_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
911 struct batadv_unicast_packet *unicast_packet;
913 int check, hdr_size = sizeof(*unicast_packet);
920 unicast_packet = (struct batadv_unicast_packet *)skb->data;
921 if (batadv_is_my_mac(bat_priv, unicast_packet->dest))
942 struct batadv_unicast_packet *unicast_packet;
946 int check, hdr_size = sizeof(*unicast_packet);
951 unicast_packet = (struct batadv_unicast_packet *)skb->data;
952 is4addr = unicast_packet->packet_type == BATADV_UNICAST_4ADDR;
971 unicast_packet = (struct batadv_unicast_packet *)skb->data;
974 if (batadv_is_my_mac(bat_priv, unicast_packet->dest)) {