Lines Matching refs:dp

337 	const struct icmp *dp;  in icmp_print()  local
351 dp = (struct icmp *)bp; in icmp_print()
356 TCHECK(dp->icmp_code); in icmp_print()
357 switch (dp->icmp_type) { in icmp_print()
361 TCHECK(dp->icmp_seq); in icmp_print()
363 dp->icmp_type == ICMP_ECHO ? in icmp_print()
365 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
366 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print()
370 TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
371 switch (dp->icmp_code) { in icmp_print()
374 TCHECK(dp->icmp_ip.ip_p); in icmp_print()
377 ipaddr_string(&dp->icmp_ip.ip_dst), in icmp_print()
378 dp->icmp_ip.ip_p); in icmp_print()
382 TCHECK(dp->icmp_ip.ip_p); in icmp_print()
383 oip = &dp->icmp_ip; in icmp_print()
416 mp = (struct mtu_discovery *)(u_char *)&dp->icmp_void; in icmp_print()
421 ipaddr_string(&dp->icmp_ip.ip_dst), mtu); in icmp_print()
425 ipaddr_string(&dp->icmp_ip.ip_dst)); in icmp_print()
432 dp->icmp_code); in icmp_print()
434 ipaddr_string(&dp->icmp_ip.ip_dst)); in icmp_print()
440 TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
442 dp->icmp_code); in icmp_print()
444 ipaddr_string(&dp->icmp_ip.ip_dst), in icmp_print()
445 ipaddr_string(&dp->icmp_gwaddr)); in icmp_print()
457 ihp = (struct ih_rdiscovery *)&dp->icmp_void; in icmp_print()
487 idp = (struct id_rdiscovery *)&dp->icmp_data; in icmp_print()
500 TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
501 switch (dp->icmp_code) { in icmp_print()
513 dp->icmp_code); in icmp_print()
519 if (dp->icmp_code) in icmp_print()
521 "parameter problem - code %d", dp->icmp_code); in icmp_print()
523 TCHECK(dp->icmp_pptr); in icmp_print()
525 "parameter problem - octet %d", dp->icmp_pptr); in icmp_print()
530 TCHECK(dp->icmp_mask); in icmp_print()
532 EXTRACT_32BITS(&dp->icmp_mask)); in icmp_print()
536 TCHECK(dp->icmp_seq); in icmp_print()
539 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
540 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print()
544 TCHECK(dp->icmp_ttime); in icmp_print()
547 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
548 EXTRACT_16BITS(&dp->icmp_seq), in icmp_print()
549 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_otime))); in icmp_print()
552 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_rtime))); in icmp_print()
554 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_ttime))); in icmp_print()
558 str = tok2str(icmp2str, "type-#%d", dp->icmp_type); in icmp_print()
566 vec[0].ptr = (const u_int8_t *)(void *)dp; in icmp_print()
570 icmp_sum = EXTRACT_16BITS(&dp->icmp_cksum); in icmp_print()
582 if (vflag >= 1 && !ICMP_INFOTYPE(dp->icmp_type)) { in icmp_print()
595 if (vflag >= 1 && plen > ICMP_EXTD_MINLEN && ICMP_MPLS_EXT_TYPE(dp->icmp_type)) { in icmp_print()