Searched refs:unicast_packet (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/net/batman-adv/
H A Drouting.c560 struct batadv_unicast_packet *unicast_packet; batadv_route_unicast_packet() local
564 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_route_unicast_packet()
567 if (unicast_packet->ttl < 2) { batadv_route_unicast_packet()
569 ethhdr->h_source, unicast_packet->dest); batadv_route_unicast_packet()
574 orig_node = batadv_orig_hash_find(bat_priv, unicast_packet->dest); batadv_route_unicast_packet()
584 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_route_unicast_packet()
585 unicast_packet->ttl--; batadv_route_unicast_packet()
587 switch (unicast_packet->packet_type) { batadv_route_unicast_packet()
627 * @unicast_packet: the unicast header to be updated
639 struct batadv_unicast_packet *unicast_packet, batadv_reroute_unicast_packet()
659 if (batadv_compare_eth(orig_node->orig, unicast_packet->dest)) batadv_reroute_unicast_packet()
667 ether_addr_copy(unicast_packet->dest, orig_addr); batadv_reroute_unicast_packet()
668 unicast_packet->ttvn = orig_ttvn; batadv_reroute_unicast_packet()
682 struct batadv_unicast_packet *unicast_packet; batadv_check_unicast_ttvn() local
695 if (skb_cow(skb, sizeof(*unicast_packet)) < 0) batadv_check_unicast_ttvn()
698 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_check_unicast_ttvn()
708 if (batadv_reroute_unicast_packet(bat_priv, unicast_packet, batadv_check_unicast_ttvn()
713 unicast_packet->dest, batadv_check_unicast_ttvn()
728 if (!batadv_is_my_mac(bat_priv, unicast_packet->dest)) { batadv_check_unicast_ttvn()
730 unicast_packet->dest); batadv_check_unicast_ttvn()
745 is_old_ttvn = batadv_seq_before(unicast_packet->ttvn, curr_ttvn); batadv_check_unicast_ttvn()
749 old_ttvn = unicast_packet->ttvn; batadv_check_unicast_ttvn()
754 if (batadv_reroute_unicast_packet(bat_priv, unicast_packet, batadv_check_unicast_ttvn()
758 unicast_packet->dest, ethhdr->h_dest, batadv_check_unicast_ttvn()
777 ether_addr_copy(unicast_packet->dest, primary_if->net_dev->dev_addr); batadv_check_unicast_ttvn()
781 unicast_packet->ttvn = curr_ttvn; batadv_check_unicast_ttvn()
798 struct batadv_unicast_packet *unicast_packet; batadv_recv_unhandled_unicast_packet() local
800 int check, hdr_size = sizeof(*unicast_packet); batadv_recv_unhandled_unicast_packet()
807 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_recv_unhandled_unicast_packet()
808 if (batadv_is_my_mac(bat_priv, unicast_packet->dest)) batadv_recv_unhandled_unicast_packet()
818 struct batadv_unicast_packet *unicast_packet; batadv_recv_unicast_packet() local
822 int check, hdr_size = sizeof(*unicast_packet); batadv_recv_unicast_packet()
825 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_recv_unicast_packet()
828 is4addr = unicast_packet->packet_type == BATADV_UNICAST_4ADDR; batadv_recv_unicast_packet()
848 if (batadv_is_my_mac(bat_priv, unicast_packet->dest)) { batadv_recv_unicast_packet()
638 batadv_reroute_unicast_packet(struct batadv_priv *bat_priv, struct batadv_unicast_packet *unicast_packet, uint8_t *dst_addr, unsigned short vid) batadv_reroute_unicast_packet() argument
H A Dsend.c156 struct batadv_unicast_packet *unicast_packet; batadv_send_skb_push_fill_unicast() local
162 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_send_skb_push_fill_unicast()
163 unicast_packet->version = BATADV_COMPAT_VERSION; batadv_send_skb_push_fill_unicast()
165 unicast_packet->packet_type = BATADV_UNICAST; batadv_send_skb_push_fill_unicast()
167 unicast_packet->ttl = BATADV_TTL; batadv_send_skb_push_fill_unicast()
169 ether_addr_copy(unicast_packet->dest, orig_node->orig); batadv_send_skb_push_fill_unicast()
171 unicast_packet->ttvn = ttvn; batadv_send_skb_push_fill_unicast()
214 /* Pull the header space and fill the unicast_packet substructure. batadv_send_skb_prepare_unicast_4addr()
216 * is of type struct unicast_packet batadv_send_skb_prepare_unicast_4addr()
259 struct batadv_unicast_packet *unicast_packet; batadv_send_skb_unicast() local
287 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_send_skb_unicast()
295 unicast_packet->ttvn = unicast_packet->ttvn - 1; batadv_send_skb_unicast()
H A Dnetwork-coding.c999 * batadv_nc_code_packets - code a received unicast_packet with an nc packet
1612 struct batadv_unicast_packet *unicast_packet; batadv_nc_skb_decode_packet() local
1679 unicast_packet = (struct batadv_unicast_packet *)skb->data; batadv_nc_skb_decode_packet()
1680 unicast_packet->packet_type = BATADV_UNICAST; batadv_nc_skb_decode_packet()
1681 unicast_packet->version = BATADV_COMPAT_VERSION; batadv_nc_skb_decode_packet()
1682 unicast_packet->ttl = ttl; batadv_nc_skb_decode_packet()
1683 ether_addr_copy(unicast_packet->dest, orig_dest); batadv_nc_skb_decode_packet()
1684 unicast_packet->ttvn = ttvn; batadv_nc_skb_decode_packet()
1687 return unicast_packet; batadv_nc_skb_decode_packet()
1765 struct batadv_unicast_packet *unicast_packet; batadv_nc_recv_coded_packet() local
1806 unicast_packet = batadv_nc_skb_decode_packet(bat_priv, skb, nc_packet); batadv_nc_recv_coded_packet()
1807 if (!unicast_packet) { batadv_nc_recv_coded_packet()
/linux-4.1.27/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_core.c2305 bool unicast_packet = false; rtl8192_rx_normal() local
2352 unicast_packet = true; rtl8192_rx_normal()
2377 if (unicast_packet) rtl8192_rx_normal()
/linux-4.1.27/drivers/staging/rtl8192u/
H A Dr8192U_core.c4491 bool unicast_packet = false; rtl8192_rx_nomal() local
4504 unicast_packet = false; rtl8192_rx_nomal()
4511 unicast_packet = true; rtl8192_rx_nomal()
4518 if (unicast_packet) rtl8192_rx_nomal()

Completed in 192 milliseconds