Searched refs:rhentp (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c132 translate_inet_addr(tsol_rhent_t *rhentp, int *alen, char abuf[], int abuflen) argument
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 local
234 tsol_rhent_t *rhentp; local
[all...]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c172 tsol_rhent_t *rhentp = NULL; local
207 if ((rhentp = calloc(1, sizeof (*rhentp))) == NULL) {
221 rhentp->rh_prefix = strtol(cp, &cp2, 0);
233 rhentp->rh_prefix = -1;
236 if (strlcpy(rhentp->rh_template, template,
237 sizeof (rhentp->rh_template)) >= sizeof (rhentp->rh_template)) {
242 if (!parse_address(rhentp, addrbuf)) {
250 address, rhentp
[all...]
H A Dtsol_getrhent.c138 tsol_rhent_t *rhentp = NULL; local
146 rhentp = rhstr_to_ent(rhstrp, &err, &errstr);
147 while (rhentp == NULL) {
163 rhentp = rhstr_to_ent(rhstrp, &err, &errstr);
165 return (rhentp);
/illumos-gate/usr/src/cmd/tsol/tnchkdb/
H A Dtnchkdb.c430 tsol_rhent_t *rhentp; local
464 rhentp = rhstr_to_ent(&rhstr, &err, &errstr);
465 if (rhentp == NULL) {
473 if (rhentp->rh_address.ta_family == AF_INET) {
474 IN6_INADDR_TO_V4MAPPED(&rhentp->rh_address.ta_addr_v4,
477 addr = rhentp->rh_address.ta_addr_v6;
479 if ((tal = find_host(rhentp->rh_prefix, addr)) != NULL) {
485 add_host(rhentp->rh_prefix, addr, linenum);
488 if (!tnrhtp_bad && find_template(rhentp->rh_template) == NULL) {
491 "line %2$d\n"), rhentp
[all...]
/illumos-gate/usr/src/cmd/tsol/tnd/
H A Dtnd.c88 static void update_rh_entry(int op, struct tsol_rhent *rhentp);
1518 struct tsol_rhent rhentp; local
1520 (void) memset((char *)&rhentp, '\0', sizeof (rhentp));
1533 rhentp.rh_address.ip_addr_v4.sin_addr.s_addr =
1535 rhentp.rh_address.ip_addr_v4.sin_family =
1537 rhentp.rh_prefix = tlbt->masklen_used;
1538 (void) strcpy(rhentp.rh_template,
1546 update_rh_entry(tlbt->reload, &rhentp);
1582 struct tsol_rhent rhentp; local
1637 update_rh_entry(int op, struct tsol_rhent *rhentp) argument
[all...]

Completed in 71 milliseconds