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