Lines Matching refs:datalen
244 int datalen, iplen; in fill_packet() local
263 datalen = pkt_size-14-20-8; /* Eth + IPh + UDPh */ in fill_packet()
264 if (datalen < 0) in fill_packet()
265 datalen = 0; in fill_packet()
269 udph->len= htons(datalen+8); /* DATA + udphdr */ in fill_packet()
280 iplen = 20 + 8 + datalen; in fill_packet()
290 skb_put(skb, datalen); in fill_packet()
297 if (datalen > frags*PAGE_SIZE) { in fill_packet()
298 skb_put(skb, datalen-frags*PAGE_SIZE); in fill_packet()
299 datalen = frags*PAGE_SIZE; in fill_packet()
303 while (datalen > 0) { in fill_packet()
307 skb_shinfo(skb)->frags[i].size = (datalen < PAGE_SIZE ? datalen : PAGE_SIZE); in fill_packet()
308 datalen -= skb_shinfo(skb)->frags[i].size; in fill_packet()