Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c145 if (rhentp->rh_prefix != 128) { in translate_inet_addr()
156 if (rhentp->rh_prefix != 32) { in translate_inet_addr()
174 tsol_rhent_t *rhentp = NULL; in process_rhl() local
197 if (tnrh(TNDB_LOAD, rhentp) != 0) { in process_rhl()
212 tsol_freerhent(rhentp); in process_rhl()
235 tsol_rhent_t *rhentp; in process_rh() local
255 if (rhentp == NULL) { in process_rh()
320 rhentp = &rhent; in process_rh()
331 rhentp->rh_template[0] == '\0' && in process_rh()
362 if (rhentp != &rhent) in process_rh()
[all …]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c170 tsol_rhent_t *rhentp = NULL; in rhstr_to_ent() local
205 if ((rhentp = calloc(1, sizeof (*rhentp))) == NULL) { in rhstr_to_ent()
219 rhentp->rh_prefix = strtol(cp, &cp2, 0); in rhstr_to_ent()
231 rhentp->rh_prefix = -1; in rhstr_to_ent()
234 if (strlcpy(rhentp->rh_template, template, in rhstr_to_ent()
235 sizeof (rhentp->rh_template)) >= sizeof (rhentp->rh_template)) { in rhstr_to_ent()
240 if (!parse_address(rhentp, addrbuf)) { in rhstr_to_ent()
248 address, rhentp->rh_template); in rhstr_to_ent()
251 return (rhentp); in rhstr_to_ent()
255 tsol_freerhent(rhentp); in rhstr_to_ent()
H A Dtsol_getrhent.c136 tsol_rhent_t *rhentp = NULL; in tsol_fgetrhent() local
144 rhentp = rhstr_to_ent(rhstrp, &err, &errstr); in tsol_fgetrhent()
145 while (rhentp == NULL) { in tsol_fgetrhent()
161 rhentp = rhstr_to_ent(rhstrp, &err, &errstr); in tsol_fgetrhent()
163 return (rhentp); in tsol_fgetrhent()
/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->rh_template, linenum);
[all …]
/illumos-gate/usr/src/cmd/tsol/tnd/
H A Dtnd.c1516 struct tsol_rhent rhentp; in load_rh_marked() local
1518 (void) memset((char *)&rhentp, '\0', sizeof (rhentp)); in load_rh_marked()
1535 rhentp.rh_prefix = tlbt->masklen_used; in load_rh_marked()
1536 (void) strcpy(rhentp.rh_template, in load_rh_marked()
1580 struct tsol_rhent rhentp; in load_rh_marked_v6() local
1582 (void) memset((char *)&rhentp, '\0', sizeof (rhentp)); in load_rh_marked_v6()
1597 rhentp.rh_prefix = tlbt->masklen_used; in load_rh_marked_v6()
1639 print_entry(rhentp, AF_INET); in update_rh_entry()
1641 if (tnrh(op, rhentp) != 0) { in update_rh_entry()
1650 rhentp->rh_template); in update_rh_entry()
[all …]