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