Lines Matching refs:iphdr
50 struct ip_hdr *iphdr;
72 iphdr = (struct ip_hdr *) ((u8_t *) p->payload - IP_HLEN);
76 X16_F ")\n", inet_chksum_pseudo(p, &(iphdr->src),
77 &(iphdr->dest),
86 ip_addr_set(&tmpaddr, &(iphdr->src));
87 ip_addr_set(&(iphdr->src), &(iphdr->dest));
88 ip_addr_set(&(iphdr->dest), &tmpaddr);
98 X16_F ")\n", inet_chksum_pseudo(p, &(iphdr->src),
99 &(iphdr->dest),
105 ip_output_if(p, &(iphdr->src), IP_HDRINCL,
106 iphdr->hoplim, IP_PROTO_ICMP, inp);
122 struct ip_hdr *iphdr;
137 iphdr = p->payload;
151 (struct ip_addr *) &(iphdr->src), ICMP_TTL, IP_PROTO_ICMP);
158 struct ip_hdr *iphdr;
175 iphdr = p->payload;
189 (struct ip_addr *) &(iphdr->src), ICMP_TTL, IP_PROTO_ICMP);