Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c172 tsol_rhent_t *rhentp = NULL; in rhstr_to_ent() local
207 if ((rhentp = calloc(1, sizeof (*rhentp))) == NULL) { in rhstr_to_ent()
221 rhentp->rh_prefix = strtol(cp, &cp2, 0); in rhstr_to_ent()
233 rhentp->rh_prefix = -1; in rhstr_to_ent()
236 if (strlcpy(rhentp->rh_template, template, in rhstr_to_ent()
237 sizeof (rhentp->rh_template)) >= sizeof (rhentp->rh_template)) { in rhstr_to_ent()
242 if (!parse_address(rhentp, addrbuf)) { in rhstr_to_ent()
250 address, rhentp->rh_template); in rhstr_to_ent()
253 return (rhentp); in rhstr_to_ent()
257 tsol_freerhent(rhentp); in rhstr_to_ent()
H A Dtsol_getrhent.c138 tsol_rhent_t *rhentp = NULL; in tsol_fgetrhent() local
146 rhentp = rhstr_to_ent(rhstrp, &err, &errstr); in tsol_fgetrhent()
147 while (rhentp == NULL) { in tsol_fgetrhent()
163 rhentp = rhstr_to_ent(rhstrp, &err, &errstr); in tsol_fgetrhent()
165 return (rhentp); in tsol_fgetrhent()
/titanic_50/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c132 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
[all …]
/titanic_50/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->rh_template, linenum);
[all …]
/titanic_50/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; in load_rh_marked() local
1520 (void) memset((char *)&rhentp, '\0', sizeof (rhentp)); in load_rh_marked()
1533 rhentp.rh_address.ip_addr_v4.sin_addr.s_addr = in load_rh_marked()
1535 rhentp.rh_address.ip_addr_v4.sin_family = in load_rh_marked()
1537 rhentp.rh_prefix = tlbt->masklen_used; in load_rh_marked()
1538 (void) strcpy(rhentp.rh_template, in load_rh_marked()
1546 update_rh_entry(tlbt->reload, &rhentp); in load_rh_marked()
1582 struct tsol_rhent rhentp; in load_rh_marked_v6() local
1584 (void) memset((char *)&rhentp, '\0', sizeof (rhentp)); in load_rh_marked_v6()
[all …]