Lines Matching refs:tp
382 register const struct atNBPtuple *tp = in nbp_print() local
400 if ((const u_char *)tp > ep) { in nbp_print()
409 if ((const u_char *)(tp + 1) > ep) { in nbp_print()
413 (void)nbp_name_print(ndo, tp, ep); in nbp_print()
421 if (tp->enumerator) in nbp_print()
422 ND_PRINT((ndo, " [enum=%d]", tp->enumerator)); in nbp_print()
423 if (EXTRACT_16BITS(&tp->net) != snet || in nbp_print()
424 tp->node != snode || tp->skt != skt) in nbp_print()
426 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), in nbp_print()
427 tp->node), tp->skt)); in nbp_print()
434 for (i = np->control & 0xf; --i >= 0 && tp; ) in nbp_print()
435 tp = nbp_tuple_print(ndo, tp, ep, snet, snode, skt); in nbp_print()
474 register const struct atNBPtuple *tp, register const u_char *ep, in nbp_tuple_print() argument
479 if ((const u_char *)(tp + 1) > ep) { in nbp_tuple_print()
483 tpn = nbp_name_print(ndo, tp, ep); in nbp_tuple_print()
486 if (tp->enumerator != 1) in nbp_tuple_print()
487 ND_PRINT((ndo, "(%d)", tp->enumerator)); in nbp_tuple_print()
490 if (tp->skt != skt) in nbp_tuple_print()
491 ND_PRINT((ndo, " %d", tp->skt)); in nbp_tuple_print()
494 if (EXTRACT_16BITS(&tp->net) != snet || tp->node != snode) in nbp_tuple_print()
496 ataddr_string(ndo, EXTRACT_16BITS(&tp->net), tp->node))); in nbp_tuple_print()
503 const struct atNBPtuple *tp, register const u_char *ep) in nbp_name_print() argument
505 register const char *cp = (const char *)tp + nbpTupleSize; in nbp_name_print()
539 register struct hnamemem *tp, *tp2; in ataddr_string() local
566 for (tp = &hnametable[i2 & (HASHNAMESIZE-1)]; in ataddr_string()
567 tp->nxt; tp = tp->nxt) in ataddr_string()
569 tp->addr = i2; in ataddr_string()
570 tp->nxt = newhnamemem(); in ataddr_string()
571 tp->name = strdup(nambuf); in ataddr_string()
576 for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in ataddr_string()
577 if (tp->addr == i) in ataddr_string()
578 return (tp->name); in ataddr_string()
584 tp->addr = (atnet << 8) | athost; in ataddr_string()
585 tp->nxt = newhnamemem(); in ataddr_string()
588 tp->name = strdup(nambuf); in ataddr_string()
589 return (tp->name); in ataddr_string()
592 tp->addr = (atnet << 8) | athost; in ataddr_string()
593 tp->nxt = newhnamemem(); in ataddr_string()
598 tp->name = strdup(nambuf); in ataddr_string()
600 return (tp->name); in ataddr_string()