Lines Matching refs:tp
384 register const struct atNBPtuple *tp =
402 if ((const u_char *)tp > ep) {
412 if ((const u_char *)(tp + 1) > ep) {
416 (void)nbp_name_print(tp, ep);
424 if (tp->enumerator)
425 (void)printf(" [enum=%d]", tp->enumerator);
426 if (EXTRACT_16BITS(&tp->net) != snet ||
427 tp->node != snode || tp->skt != skt)
429 ataddr_string(EXTRACT_16BITS(&tp->net),
430 tp->node), tp->skt);
437 for (i = np->control & 0xf; --i >= 0 && tp; )
438 tp = nbp_tuple_print(tp, ep, snet, snode, skt);
476 nbp_tuple_print(register const struct atNBPtuple *tp,
483 if ((const u_char *)(tp + 1) > ep) {
487 tpn = nbp_name_print(tp, ep);
490 if (tp->enumerator != 1)
491 (void)printf("(%d)", tp->enumerator);
494 if (tp->skt != skt)
495 (void)printf(" %d", tp->skt);
498 if (EXTRACT_16BITS(&tp->net) != snet || tp->node != snode)
500 ataddr_string(EXTRACT_16BITS(&tp->net), tp->node));
506 nbp_name_print(const struct atNBPtuple *tp, register const u_char *ep)
508 register const char *cp = (const char *)tp + nbpTupleSize;
541 register struct hnamemem *tp, *tp2;
570 for (tp = &hnametable[i3 & (HASHNAMESIZE-1)];
571 tp->nxt; tp = tp->nxt)
573 tp->addr = i3;
574 tp->nxt = newhnamemem();
575 tp->name = strdup(nambuf);
580 for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt)
581 if (tp->addr == i)
582 return (tp->name);
588 tp->addr = (atnet << 8) | athost;
589 tp->nxt = newhnamemem();
592 tp->name = strdup(nambuf);
593 return (tp->name);
596 tp->addr = (atnet << 8) | athost;
597 tp->nxt = newhnamemem();
604 tp->name = strdup(nambuf);
606 return (tp->name);