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

/linux-4.1.27/net/batman-adv/
H A Dnetwork-coding.c1000 * into a coded_packet and send it
1019 struct batadv_coded_packet *coded_packet; batadv_nc_code_packets() local
1030 int coded_size = sizeof(*coded_packet); batadv_nc_code_packets()
1108 coded_packet = (struct batadv_coded_packet *)skb_dest->data; batadv_nc_code_packets()
1111 coded_packet->packet_type = BATADV_CODED; batadv_nc_code_packets()
1112 coded_packet->version = BATADV_COMPAT_VERSION; batadv_nc_code_packets()
1113 coded_packet->ttl = packet1->ttl; batadv_nc_code_packets()
1116 ether_addr_copy(coded_packet->first_source, first_source); batadv_nc_code_packets()
1117 ether_addr_copy(coded_packet->first_orig_dest, packet1->dest); batadv_nc_code_packets()
1118 coded_packet->first_crc = packet_id1; batadv_nc_code_packets()
1119 coded_packet->first_ttvn = packet1->ttvn; batadv_nc_code_packets()
1122 ether_addr_copy(coded_packet->second_dest, second_dest); batadv_nc_code_packets()
1123 ether_addr_copy(coded_packet->second_source, second_source); batadv_nc_code_packets()
1124 ether_addr_copy(coded_packet->second_orig_dest, packet2->dest); batadv_nc_code_packets()
1125 coded_packet->second_crc = packet_id2; batadv_nc_code_packets()
1126 coded_packet->second_ttl = packet2->ttl; batadv_nc_code_packets()
1127 coded_packet->second_ttvn = packet2->ttvn; batadv_nc_code_packets()
1128 coded_packet->coded_len = htons(coding_len); batadv_nc_code_packets()
1640 * of our mac address in the coded_packet header batadv_nc_skb_decode_packet()
1766 struct batadv_coded_packet *coded_packet; batadv_nc_recv_coded_packet() local
1769 int hdr_size = sizeof(*coded_packet); batadv_nc_recv_coded_packet()
1779 coded_packet = (struct batadv_coded_packet *)skb->data; batadv_nc_recv_coded_packet()
1784 !batadv_is_my_mac(bat_priv, coded_packet->second_dest)) batadv_nc_recv_coded_packet()
1788 if (batadv_is_my_mac(bat_priv, coded_packet->second_dest)) batadv_nc_recv_coded_packet()
1792 coded_packet); batadv_nc_recv_coded_packet()

Completed in 53 milliseconds