Lines Matching refs:icp
74 register struct icmp *icp;
98 icp = mtod(m, struct icmp *);
106 /* icmpstat.icps_inhist[icp->icmp_type]++; */
107 /* code = icp->icmp_code; */
109 DEBUG_ARG("icmp_type = %d", icp->icmp_type);
110 switch (icp->icmp_type) {
112 icp->icmp_type = ICMP_ECHOREPLY;
211 register struct icmp *icp;
235 icp = (struct icmp *)((char *)ip + shlen);
240 if(icp->icmp_type>18 || icmp_flush[icp->icmp_type]) goto end_error;
260 icp = mtod(m, struct icmp *);
270 icp->icmp_type = type;
271 icp->icmp_code = code;
272 icp->icmp_id = 0;
273 icp->icmp_seq = 0;
275 memcpy(&icp->icmp_ip, msrc->m_data, s_ip_len); /* report the ip packet */
276 HTONS(icp->icmp_ip.ip_len);
277 HTONS(icp->icmp_ip.ip_id);
278 HTONS(icp->icmp_ip.ip_off);
292 icp->icmp_cksum = 0;
293 icp->icmp_cksum = cksum(m, m->m_len);
327 register struct icmp *icp;
335 icp = mtod(m, struct icmp *);
337 icp->icmp_cksum = 0;
338 icp->icmp_cksum = cksum(m, ip->ip_len - hlen);