Lines Matching defs:icp
1158 struct icmp *icp;
1182 icp = (struct icmp *)((char *)ip + hlen);
1184 Log(("ICMP:received msg(t:%d, c:%d)\n", icp->icmp_type, icp->icmp_code));
1185 if ( icp->icmp_type != ICMP_ECHOREPLY
1186 && icp->icmp_type != ICMP_TIMXCEED
1187 && icp->icmp_type != ICMP_UNREACH)
1203 type = icp->icmp_type;
1216 ip = &icp->icmp_ip;
1264 if ( icp->icmp_type == ICMP_TIMXCEED
1265 || icp->icmp_type == ICMP_UNREACH)
1284 icp = (struct icmp *)((char *)ip + (ip->ip_hl << 2));
1285 type = icp->icmp_type;
1290 memcpy(&icp->icmp_ip, ip_copy, old_ip_len);