Home
last modified time | relevance | path

Searched refs:iphdr_hlen (Results 1 – 1 of 1) sorted by relevance

/third_party/lwip/src/core/ipv4/
Dip4.c430 u16_t iphdr_hlen; local
464 iphdr_hlen = IPH_HL_BYTES(iphdr);
474 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
475 if (iphdr_hlen < IP_HLEN) {
477 … ("ip4_input: short IP header (%"U16_F" bytes) received, IP packet dropped\n", iphdr_hlen));
479 if (iphdr_hlen > p->len) {
482 iphdr_hlen, p->len));
500 if (inet_chksum(iphdr, iphdr_hlen) != 0) {
503 … ("Checksum (0x%"X16_F") failed, IP packet dropped.\n", inet_chksum(iphdr, iphdr_hlen)));
582 const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen);
[all …]