Lines Matching refs:dp
334 const struct icmp *dp; in icmp_print() local
348 dp = (const struct icmp *)bp; in icmp_print()
353 ND_TCHECK(dp->icmp_code); in icmp_print()
354 switch (dp->icmp_type) { in icmp_print()
358 ND_TCHECK(dp->icmp_seq); in icmp_print()
360 dp->icmp_type == ICMP_ECHO ? in icmp_print()
362 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
363 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print()
367 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
368 switch (dp->icmp_code) { in icmp_print()
371 ND_TCHECK(dp->icmp_ip.ip_p); in icmp_print()
374 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print()
375 dp->icmp_ip.ip_p); in icmp_print()
379 ND_TCHECK(dp->icmp_ip.ip_p); in icmp_print()
380 oip = &dp->icmp_ip; in icmp_print()
413 mp = (const struct mtu_discovery *)(const u_char *)&dp->icmp_void; in icmp_print()
418 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), mtu); in icmp_print()
422 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print()
429 dp->icmp_code); in icmp_print()
431 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print()
437 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
439 dp->icmp_code); in icmp_print()
441 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print()
442 ipaddr_string(ndo, &dp->icmp_gwaddr)); in icmp_print()
454 ihp = (const struct ih_rdiscovery *)&dp->icmp_void; in icmp_print()
484 idp = (const struct id_rdiscovery *)&dp->icmp_data; in icmp_print()
497 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
498 switch (dp->icmp_code) { in icmp_print()
510 dp->icmp_code); in icmp_print()
516 if (dp->icmp_code) in icmp_print()
518 "parameter problem - code %d", dp->icmp_code); in icmp_print()
520 ND_TCHECK(dp->icmp_pptr); in icmp_print()
522 "parameter problem - octet %d", dp->icmp_pptr); in icmp_print()
527 ND_TCHECK(dp->icmp_mask); in icmp_print()
529 EXTRACT_32BITS(&dp->icmp_mask)); in icmp_print()
533 ND_TCHECK(dp->icmp_seq); in icmp_print()
536 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
537 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print()
541 ND_TCHECK(dp->icmp_ttime); in icmp_print()
544 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
545 EXTRACT_16BITS(&dp->icmp_seq), in icmp_print()
546 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_otime))); in icmp_print()
549 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_rtime))); in icmp_print()
551 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_ttime))); in icmp_print()
555 str = tok2str(icmp2str, "type-#%d", dp->icmp_type); in icmp_print()
563 vec[0].ptr = (const uint8_t *)(const void *)dp; in icmp_print()
567 icmp_sum = EXTRACT_16BITS(&dp->icmp_cksum); in icmp_print()
579 if (ndo->ndo_vflag >= 1 && ICMP_ERRTYPE(dp->icmp_type)) { in icmp_print()
593 if (ndo->ndo_vflag >= 1 && plen > ICMP_EXTD_MINLEN && ICMP_MPLS_EXT_TYPE(dp->icmp_type)) { in icmp_print()