Lines Matching refs:rhentp

132 translate_inet_addr(tsol_rhent_t *rhentp, int *alen, char abuf[], int abuflen)  in translate_inet_addr()  argument
139 (void) snprintf(tmpbuf, sizeof (tmpbuf), "/%d", rhentp->rh_prefix); in translate_inet_addr()
141 if (rhentp->rh_address.ta_family == AF_INET6) { in translate_inet_addr()
142 aptr = &(rhentp->rh_address.ta_addr_v6); in translate_inet_addr()
143 (void) inet_ntop(rhentp->rh_address.ta_family, aptr, abuf, in translate_inet_addr()
145 if (rhentp->rh_prefix != 128) { in translate_inet_addr()
153 aptr = &(rhentp->rh_address.ta_addr_v4); in translate_inet_addr()
154 (void) inet_ntop(rhentp->rh_address.ta_family, aptr, abuf, in translate_inet_addr()
156 if (rhentp->rh_prefix != 32) { in translate_inet_addr()
174 tsol_rhent_t *rhentp = NULL; in process_rhl() local
188 while (rhentp = tsol_fgetrhent(fp, &error)) { in process_rhl()
197 if (tnrh(TNDB_LOAD, rhentp) != 0) { in process_rhl()
202 translate_inet_addr(rhentp, &alen, abuf, in process_rhl()
212 tsol_freerhent(rhentp); in process_rhl()
235 tsol_rhent_t *rhentp; in process_rh() local
254 rhentp = rhstr_to_ent(&rhstr, &err, &errstr); in process_rh()
255 if (rhentp == NULL) { in process_rh()
320 rhentp = &rhent; in process_rh()
324 translate_inet_addr(rhentp, &alen, abuf, sizeof (abuf)); in process_rh()
331 rhentp->rh_template[0] == '\0' && in process_rh()
332 (rhentp = tsol_getrhbyaddr(abuf, alen+1, in process_rh()
345 if (tnrh(delete_mode ? TNDB_DELETE : TNDB_LOAD, rhentp) != 0) { in process_rh()
362 if (rhentp != &rhent) in process_rh()
363 tsol_freerhent(rhentp); in process_rh()