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

/linux-4.4.14/net/batman-adv/
H A Dnetwork-coding.c1043 struct sk_buff *skb_dest, *skb_src; batadv_nc_code_packets() local
1120 skb_dest = nc_packet->skb; batadv_nc_code_packets()
1123 skb_dest = skb; batadv_nc_code_packets()
1130 if (skb_linearize(skb_dest) < 0 || skb_linearize(skb_src) < 0) batadv_nc_code_packets()
1133 skb_push(skb_dest, header_add); batadv_nc_code_packets()
1135 coded_packet = (struct batadv_coded_packet *)skb_dest->data; batadv_nc_code_packets()
1136 skb_reset_mac_header(skb_dest); batadv_nc_code_packets()
1157 /* This is where the magic happens: Code skb_src into skb_dest */ batadv_nc_code_packets()
1158 batadv_nc_memxor(skb_dest->data + coded_size, batadv_nc_code_packets()
1163 BATADV_SKB_CB(skb_dest)->decoded) { batadv_nc_code_packets()
1166 count += skb_dest->len + ETH_HLEN; batadv_nc_code_packets()
1170 !BATADV_SKB_CB(skb_dest)->decoded) { batadv_nc_code_packets()
1173 count += skb_dest->len + ETH_HLEN; batadv_nc_code_packets()
1177 !BATADV_SKB_CB(skb_dest)->decoded) { batadv_nc_code_packets()
1178 /* skb_src recoded and skb_dest is newly coded */ batadv_nc_code_packets()
1184 skb_dest->len + ETH_HLEN); batadv_nc_code_packets()
1186 BATADV_SKB_CB(skb_dest)->decoded) { batadv_nc_code_packets()
1187 /* skb_src is newly coded and skb_dest is recoded */ batadv_nc_code_packets()
1193 skb_dest->len + ETH_HLEN); batadv_nc_code_packets()
1196 /* skb_src is now coded into skb_dest, so free it */ batadv_nc_code_packets()
1204 batadv_send_skb_packet(skb_dest, neigh_node->if_incoming, first_dest); batadv_nc_code_packets()

Completed in 91 milliseconds