Searched refs:iplen (Results 1 – 2 of 2) sorted by relevance
63 int iplen, size; in net_test_get_skb() local124 iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size; in net_test_get_skb()126 iplen += sizeof(*thdr); in net_test_get_skb()128 iplen += sizeof(*uhdr); in net_test_get_skb()131 iplen = attr->max_size - sizeof(*ehdr); in net_test_get_skb()133 ihdr->tot_len = htons(iplen); in net_test_get_skb()
2864 int datalen, iplen; in fill_packet_ipv4() local2952 iplen = 20 + 8 + datalen; in fill_packet_ipv4()2953 iph->tot_len = htons(iplen); in fill_packet_ipv4()