Lines Matching refs:rhentp
132 translate_inet_addr(tsol_rhent_t *rhentp, int *alen, char abuf[], int abuflen)
139 (void) snprintf(tmpbuf, sizeof (tmpbuf), "/%d", rhentp->rh_prefix);
141 if (rhentp->rh_address.ta_family == AF_INET6) {
142 aptr = &(rhentp->rh_address.ta_addr_v6);
143 (void) inet_ntop(rhentp->rh_address.ta_family, aptr, abuf,
145 if (rhentp->rh_prefix != 128) {
153 aptr = &(rhentp->rh_address.ta_addr_v4);
154 (void) inet_ntop(rhentp->rh_address.ta_family, aptr, abuf,
156 if (rhentp->rh_prefix != 32) {
174 tsol_rhent_t *rhentp = NULL;
188 while (rhentp = tsol_fgetrhent(fp, &error)) {
197 if (tnrh(TNDB_LOAD, rhentp) != 0) {
202 translate_inet_addr(rhentp, &alen, abuf,
211 tsol_freerhent(rhentp);
234 tsol_rhent_t *rhentp;
253 rhentp = rhstr_to_ent(&rhstr, &err, &errstr);
254 if (rhentp == NULL) {
319 rhentp = &rhent;
323 translate_inet_addr(rhentp, &alen, abuf, sizeof (abuf));
330 rhentp->rh_template[0] == '\0' &&
331 (rhentp = tsol_getrhbyaddr(abuf, alen+1,
344 if (tnrh(delete_mode ? TNDB_DELETE : TNDB_LOAD, rhentp) != 0) {
361 if (rhentp != &rhent)
362 tsol_freerhent(rhentp);