Lines Matching defs:nve_entry
119 register nve_entry_t *nve_entry, *nve_next;
121 for ((nve_entry = TAILQ_FIRST(&name_registry)); nve_entry; nve_entry = nve_next) {
122 nve_next = TAILQ_NEXT(nve_entry, nve_link);
125 nbp_delete_entry(nve_entry);
692 register nve_entry_t *nve_entry;
705 TAILQ_FOREACH(nve_entry, &name_registry, nve_link) {
708 nve_entry->zone_hash) &&
721 at_nvestr_t *ezone=&nve_entry->zone;
729 (nve_entry->address.net !=
733 nve_entry->address.net,
741 nve_entry->address.net,
750 nve_entry->object_hash))
754 &nve_entry->object,
763 (nbp_req->nve.type_hash !=nve_entry->type_hash))
767 &nve_entry->type,
783 object, type, zone, (int)nve_entry->address.net));
787 if ((*(nbp_req->func))(nbp_req, nve_entry) != 0) {
792 return (nve_entry);
799 static int nbp_lkup_reply (nbp_req, nve_entry)
801 register nve_entry_t *nve_entry;
809 tuple_size = nve_entry->object.len + 1 + /* object */
810 nve_entry->type.len + 1 + /* type */
833 tuple->enu_addr.net = htons(nve_entry->address.net);
834 tuple->enu_addr.node = nve_entry->address.node;
835 tuple->enu_addr.socket = nve_entry->address.socket;
836 tuple->enu_enum = nve_entry->enumerator;
840 obj_len = nve_entry->object.len + 1;
841 bcopy(&nve_entry->object, p, obj_len);
843 type_len = nve_entry->type.len + 1;
844 bcopy(&nve_entry->type, p, type_len);
1306 register nve_entry_t *nve_entry;
1308 TAILQ_FOREACH(nve_entry, &name_registry, nve_link) {
1310 ((nve->zone_hash != nve_entry->zone_hash) &&
1319 (nve->object_hash != nve_entry->object_hash))
1323 (nve->type_hash != nve_entry->type_hash))
1327 return (nve_entry);
1333 static int nbp_enum_gen (nve_entry)
1334 register nve_entry_t *nve_entry;
1341 if ((*(int *)&ne->address == *(int *)&nve_entry->address) &&
1352 nve_entry->enumerator = new_enum;
1356 int nbp_new_nve_entry(nve_entry, ifID)
1357 nve_entry_t *nve_entry;
1365 if (!(valid_at_addr((at_inet_t *)&nve_entry->address))) {
1370 if ((error = nbp_enum_gen(nve_entry)))
1373 nve_entry->unique_nbp_id = ++nbp_id_count;
1383 bcopy(nve_entry, new_entry, sizeof(nve_entry_t));
1385 if (DEFAULT_ZONE(&nve_entry->zone)) {
1424 void nbp_delete_entry (nve_entry)
1425 nve_entry_t *nve_entry;
1427 TAILQ_REMOVE(&name_registry, nve_entry, nve_link);
1428 gbuf_freem(nve_entry->tag);