Searched refs:tot_len (Results 1 – 8 of 8) sorted by relevance
116 __u16 tot_len = ntohs(ip6->payload_len) + sizeof(struct iphdr); // cannot overflow, see above in nat64() local137 tot_len -= sizeof(struct frag_hdr); in nat64()139 if (tot_len < sizeof(struct iphdr)) return TC_ACT_PIPE; in nat64()168 .tot_len = htons(tot_len), // be16 in nat64()334 if (ntohs(ip4->tot_len) < sizeof(*ip4)) return TC_ACT_PIPE;379 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16
606 if (ntohs(ip->tot_len) < sizeof(*ip)) TC_PUNT(TRUNCATED_IPV4); in do_forward4()
24 int tot_len = height * width * 4; in JNIFUNCF() local27 for (i = 0; i < tot_len; i+=4) { in JNIFUNCF()
175 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos)); in ipv6_packet()
52 printf("tot_len = %x\n", ntohs(header->tot_len)); in dump_ip()
220 EXPECT_EQ(len, ntohs(ip->tot_len)) << msg << ": Incorrect IPv4 length\n"; in check_packet()366 ip->tot_len = htons(total_length); in reassemble_packet()
132 ip->tot_len = htons(sizeof(struct iphdr) + payload_len); in fill_ip_header()