Lines Matching refs:dp
333 const struct icmp *dp; in icmp_print() local
347 dp = (struct icmp *)bp; in icmp_print()
352 ND_TCHECK(dp->icmp_code); in icmp_print()
353 switch (dp->icmp_type) { in icmp_print()
357 ND_TCHECK(dp->icmp_seq); in icmp_print()
359 dp->icmp_type == ICMP_ECHO ? in icmp_print()
361 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
362 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print()
366 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
367 switch (dp->icmp_code) { in icmp_print()
370 ND_TCHECK(dp->icmp_ip.ip_p); in icmp_print()
373 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print()
374 dp->icmp_ip.ip_p); in icmp_print()
378 ND_TCHECK(dp->icmp_ip.ip_p); in icmp_print()
379 oip = &dp->icmp_ip; in icmp_print()
412 mp = (struct mtu_discovery *)(u_char *)&dp->icmp_void; in icmp_print()
417 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), mtu); in icmp_print()
421 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print()
428 dp->icmp_code); in icmp_print()
430 ipaddr_string(ndo, &dp->icmp_ip.ip_dst)); in icmp_print()
436 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
438 dp->icmp_code); in icmp_print()
440 ipaddr_string(ndo, &dp->icmp_ip.ip_dst), in icmp_print()
441 ipaddr_string(ndo, &dp->icmp_gwaddr)); in icmp_print()
453 ihp = (struct ih_rdiscovery *)&dp->icmp_void; in icmp_print()
483 idp = (struct id_rdiscovery *)&dp->icmp_data; in icmp_print()
496 ND_TCHECK(dp->icmp_ip.ip_dst); in icmp_print()
497 switch (dp->icmp_code) { in icmp_print()
509 dp->icmp_code); in icmp_print()
515 if (dp->icmp_code) in icmp_print()
517 "parameter problem - code %d", dp->icmp_code); in icmp_print()
519 ND_TCHECK(dp->icmp_pptr); in icmp_print()
521 "parameter problem - octet %d", dp->icmp_pptr); in icmp_print()
526 ND_TCHECK(dp->icmp_mask); in icmp_print()
528 EXTRACT_32BITS(&dp->icmp_mask)); in icmp_print()
532 ND_TCHECK(dp->icmp_seq); in icmp_print()
535 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
536 EXTRACT_16BITS(&dp->icmp_seq)); in icmp_print()
540 ND_TCHECK(dp->icmp_ttime); in icmp_print()
543 EXTRACT_16BITS(&dp->icmp_id), in icmp_print()
544 EXTRACT_16BITS(&dp->icmp_seq), in icmp_print()
545 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_otime))); in icmp_print()
548 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_rtime))); in icmp_print()
550 icmp_tstamp_print(EXTRACT_32BITS(&dp->icmp_ttime))); in icmp_print()
554 str = tok2str(icmp2str, "type-#%d", dp->icmp_type); in icmp_print()
562 vec[0].ptr = (const uint8_t *)(void *)dp; in icmp_print()
566 icmp_sum = EXTRACT_16BITS(&dp->icmp_cksum); in icmp_print()
578 if (ndo->ndo_vflag >= 1 && ICMP_ERRTYPE(dp->icmp_type)) { in icmp_print()
591 if (ndo->ndo_vflag >= 1 && plen > ICMP_EXTD_MINLEN && ICMP_MPLS_EXT_TYPE(dp->icmp_type)) { in icmp_print()