Searched refs:rhentp (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 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 [all …]
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetrhent.c | 170 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 D | tsol_getrhent.c | 136 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 D | tnchkdb.c | 430 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 D | tnd.c | 86 static void update_rh_entry(int op, struct tsol_rhent *rhentp); 1516 struct tsol_rhent rhentp; in load_rh_marked() local 1518 (void) memset((char *)&rhentp, '\0', sizeof (rhentp)); in load_rh_marked() 1531 rhentp.rh_address.ip_addr_v4.sin_addr.s_addr = in load_rh_marked() 1533 rhentp.rh_address.ip_addr_v4.sin_family = 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() 1544 update_rh_entry(tlbt->reload, &rhentp); 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() [all …]
|