Lines Matching refs:unicast_packet

680 	struct batadv_unicast_packet *unicast_packet;
685 unicast_packet = (struct batadv_unicast_packet *)skb->data;
688 if (unicast_packet->ttl < 2) {
690 ethhdr->h_source, unicast_packet->dest);
695 orig_node = batadv_orig_hash_find(bat_priv, unicast_packet->dest);
705 unicast_packet = (struct batadv_unicast_packet *)skb->data;
706 unicast_packet->ttl--;
708 switch (unicast_packet->packet_type) {
751 * @unicast_packet: the unicast header to be updated
763 struct batadv_unicast_packet *unicast_packet,
783 if (batadv_compare_eth(orig_node->orig, unicast_packet->dest))
791 skb_postpull_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
792 ether_addr_copy(unicast_packet->dest, orig_addr);
793 unicast_packet->ttvn = orig_ttvn;
794 skb_postpush_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
809 struct batadv_unicast_packet *unicast_packet;
822 if (skb_cow(skb, sizeof(*unicast_packet)) < 0)
825 unicast_packet = (struct batadv_unicast_packet *)skb->data;
839 if (batadv_reroute_unicast_packet(bat_priv, skb, unicast_packet,
844 unicast_packet->dest,
859 if (!batadv_is_my_mac(bat_priv, unicast_packet->dest)) {
861 unicast_packet->dest);
876 is_old_ttvn = batadv_seq_before(unicast_packet->ttvn, curr_ttvn);
880 old_ttvn = unicast_packet->ttvn;
885 if (batadv_reroute_unicast_packet(bat_priv, skb, unicast_packet,
889 unicast_packet->dest, ethhdr->h_dest,
909 skb_postpull_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
910 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr);
911 unicast_packet->ttvn = curr_ttvn;
912 skb_postpush_rcsum(skb, unicast_packet, sizeof(*unicast_packet));
931 struct batadv_unicast_packet *unicast_packet;
933 int check, hdr_size = sizeof(*unicast_packet);
940 unicast_packet = (struct batadv_unicast_packet *)skb->data;
941 if (batadv_is_my_mac(bat_priv, unicast_packet->dest))
962 struct batadv_unicast_packet *unicast_packet;
966 int check, hdr_size = sizeof(*unicast_packet);
971 unicast_packet = (struct batadv_unicast_packet *)skb->data;
972 is4addr = unicast_packet->packet_type == BATADV_UNICAST_4ADDR;
991 unicast_packet = (struct batadv_unicast_packet *)skb->data;
994 if (batadv_is_my_mac(bat_priv, unicast_packet->dest)) {