Lines Matching refs:icp
73 register struct icmp *icp;
97 icp = mtod(m, struct icmp *);
105 /* icmpstat.icps_inhist[icp->icmp_type]++; */
106 /* code = icp->icmp_code; */
108 DEBUG_ARG("icmp_type = %d", icp->icmp_type);
109 switch (icp->icmp_type) {
111 icp->icmp_type = ICMP_ECHOREPLY;
209 register struct icmp *icp;
233 icp = (struct icmp *)((char *)ip + shlen);
238 if(icp->icmp_type>18 || icmp_flush[icp->icmp_type]) goto end_error;
258 icp = mtod(m, struct icmp *);
268 icp->icmp_type = type;
269 icp->icmp_code = code;
270 icp->icmp_id = 0;
271 icp->icmp_seq = 0;
273 memcpy(&icp->icmp_ip, msrc->m_data, s_ip_len); /* report the ip packet */
274 HTONS(icp->icmp_ip.ip_len);
275 HTONS(icp->icmp_ip.ip_id);
276 HTONS(icp->icmp_ip.ip_off);
290 icp->icmp_cksum = 0;
291 icp->icmp_cksum = cksum(m, m->m_len);
325 register struct icmp *icp;
333 icp = mtod(m, struct icmp *);
335 icp->icmp_cksum = 0;
336 icp->icmp_cksum = cksum(m, ip->ip_len - hlen);