• Home
  • Raw
  • Download

Lines Matching refs:tp

384 	register const struct atNBPtuple *tp =  in nbp_print()  local
402 if ((const u_char *)tp > ep) { in nbp_print()
412 if ((const u_char *)(tp + 1) > ep) { in nbp_print()
416 (void)nbp_name_print(tp, ep); in nbp_print()
424 if (tp->enumerator) in nbp_print()
425 (void)printf(" [enum=%d]", tp->enumerator); in nbp_print()
426 if (EXTRACT_16BITS(&tp->net) != snet || in nbp_print()
427 tp->node != snode || tp->skt != skt) in nbp_print()
429 ataddr_string(EXTRACT_16BITS(&tp->net), in nbp_print()
430 tp->node), tp->skt); in nbp_print()
437 for (i = np->control & 0xf; --i >= 0 && tp; ) in nbp_print()
438 tp = nbp_tuple_print(tp, ep, snet, snode, skt); in nbp_print()
476 nbp_tuple_print(register const struct atNBPtuple *tp, in nbp_tuple_print() argument
483 if ((const u_char *)(tp + 1) > ep) { in nbp_tuple_print()
487 tpn = nbp_name_print(tp, ep); in nbp_tuple_print()
490 if (tp->enumerator != 1) in nbp_tuple_print()
491 (void)printf("(%d)", tp->enumerator); in nbp_tuple_print()
494 if (tp->skt != skt) in nbp_tuple_print()
495 (void)printf(" %d", tp->skt); in nbp_tuple_print()
498 if (EXTRACT_16BITS(&tp->net) != snet || tp->node != snode) in nbp_tuple_print()
500 ataddr_string(EXTRACT_16BITS(&tp->net), tp->node)); in nbp_tuple_print()
506 nbp_name_print(const struct atNBPtuple *tp, register const u_char *ep) in nbp_name_print() argument
508 register const char *cp = (const char *)tp + nbpTupleSize; in nbp_name_print()
541 register struct hnamemem *tp, *tp2; in ataddr_string() local
568 for (tp = &hnametable[i2 & (HASHNAMESIZE-1)]; in ataddr_string()
569 tp->nxt; tp = tp->nxt) in ataddr_string()
571 tp->addr = i2; in ataddr_string()
572 tp->nxt = newhnamemem(); in ataddr_string()
573 tp->name = strdup(nambuf); in ataddr_string()
578 for (tp = &hnametable[i & (HASHNAMESIZE-1)]; tp->nxt; tp = tp->nxt) in ataddr_string()
579 if (tp->addr == i) in ataddr_string()
580 return (tp->name); in ataddr_string()
586 tp->addr = (atnet << 8) | athost; in ataddr_string()
587 tp->nxt = newhnamemem(); in ataddr_string()
590 tp->name = strdup(nambuf); in ataddr_string()
591 return (tp->name); in ataddr_string()
594 tp->addr = (atnet << 8) | athost; in ataddr_string()
595 tp->nxt = newhnamemem(); in ataddr_string()
600 tp->name = strdup(nambuf); in ataddr_string()
602 return (tp->name); in ataddr_string()