Lines Matching refs:iphdr
51 struct ip_hdr *iphdr;
72 iphdr = (struct ip_hdr *)((u8_t *)p->payload - IP_HLEN);
74 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo (%"X16_F")\n", inet_chksum_pseudo(p, &(iphdr->src), &(iphdr->dest), IP_PROTO_ICMP, p->tot_len)));
79 ip_addr_set(&tmpaddr, &(iphdr->src));
80 ip_addr_set(&(iphdr->src), &(iphdr->dest));
81 ip_addr_set(&(iphdr->dest), &tmpaddr);
89 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: checksum failed for received ICMP echo (%"X16_F")\n", inet_chksum_pseudo(p, &(iphdr->src), &(iphdr->dest), IP_PROTO_ICMP, p->tot_len)));
93 ip_output_if (p, &(iphdr->src), IP_HDRINCL,
94 iphdr->hoplim, IP_PROTO_ICMP, inp);
109 struct ip_hdr *iphdr;
123 iphdr = p->payload;
137 (struct ip_addr *)&(iphdr->src), ICMP_TTL, IP_PROTO_ICMP);
145 struct ip_hdr *iphdr;
161 iphdr = p->payload;
175 (struct ip_addr *)&(iphdr->src), ICMP_TTL, IP_PROTO_ICMP);