Lines Matching refs:ricmp
255 struct icmp *ricmp; in do_trace() local
257 ricmp = (struct icmp *) ((void*)rcv_pkt + (rcv_pkt->ip_hl << 2)); in do_trace()
258 if (ricmp->icmp_code == ICMP_UNREACH_NEEDFRAG) in do_trace()
259 pmtu = ntohs(ricmp->icmp_nextmtu); in do_trace()
261 if ((ricmp->icmp_type == ICMP_TIMXCEED in do_trace()
262 && ricmp->icmp_code == ICMP_TIMXCEED_INTRANS) in do_trace()
263 || ricmp->icmp_type == ICMP_UNREACH in do_trace()
264 || ricmp->icmp_type == ICMP_ECHOREPLY) { in do_trace()
268 struct ip *hip = &ricmp->icmp_ip; in do_trace()
275 icmp_res = (ricmp->icmp_type == ICMP_TIMXCEED ? -1 : in do_trace()
276 ricmp->icmp_code); in do_trace()
279 if (ricmp->icmp_type == ICMP_ECHOREPLY in do_trace()
280 && ricmp->icmp_id == ntohs(TT.ident) in do_trace()
281 && ricmp->icmp_seq == ntohs(seq)) in do_trace()
288 icmp_res = (ricmp->icmp_type == ICMP_TIMXCEED ? -1 : in do_trace()
289 ricmp->icmp_code); in do_trace()
316 ricmp->icmp_type, ricmp->icmp_code); in do_trace()
381 struct icmp6_hdr *ricmp = (struct icmp6_hdr *) toybuf; in do_trace() local
383 if ((ricmp->icmp6_type == ICMP6_TIME_EXCEEDED in do_trace()
384 && ricmp->icmp6_code == ICMP6_TIME_EXCEED_TRANSIT) in do_trace()
385 || ricmp->icmp6_type == ICMP6_DST_UNREACH in do_trace()
386 || ricmp->icmp6_type == ICMP6_ECHO_REPLY) { in do_trace()
392 hip = (struct ip6_hdr *)(ricmp + 1); in do_trace()
403 icmp_res = (ricmp->icmp6_type == ICMP6_TIME_EXCEEDED) ? -1 : in do_trace()
404 ricmp->icmp6_code; in do_trace()