Home
last modified time | relevance | path

Searched refs:rh_prefix (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c112 if (rh->rh_prefix == -1) in parse_address()
113 rh->rh_prefix = get_classful_prefix(rh-> in parse_address()
119 if (rh->rh_prefix == -1) in parse_address()
120 rh->rh_prefix = len; in parse_address()
132 if (rh->rh_prefix == -1) in parse_address()
133 rh->rh_prefix = IPV6_ABITS; in parse_address()
138 if (rh->rh_prefix < 0 || rh->rh_prefix > upper_lim) in parse_address()
145 len = rh->rh_prefix; in parse_address()
219 rhentp->rh_prefix = strtol(cp, &cp2, 0); in rhstr_to_ent()
231 rhentp->rh_prefix = -1; in rhstr_to_ent()
/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c139 (void) snprintf(tmpbuf, sizeof (tmpbuf), "/%d", rhentp->rh_prefix); in translate_inet_addr()
145 if (rhentp->rh_prefix != 128) { in translate_inet_addr()
156 if (rhentp->rh_prefix != 32) { in translate_inet_addr()
268 rhent.rh_prefix = strtol(cp1, &cp2, 0); in process_rh()
269 if (*cp2 != '\0' || errno != 0 || rhent.rh_prefix < 0) { in process_rh()
275 rhent.rh_prefix = -1; in process_rh()
311 if (rhent.rh_prefix == -1) in process_rh()
312 rhent.rh_prefix = 32; in process_rh()
316 if (rhent.rh_prefix == -1) in process_rh()
317 rhent.rh_prefix = 128; in process_rh()
/illumos-gate/usr/src/uts/common/os/
H A Dlabelsys.c233 if (rhent->rh_prefix < 0 || rhent->rh_prefix > IP_ABITS) in tnrh_delete()
235 if (tnrhc_table[rhent->rh_prefix] == NULL) in tnrh_delete()
237 tmpmask = tsol_plen_to_mask(rhent->rh_prefix); in tnrh_delete()
238 tnrhc_hash = &tnrhc_table[rhent->rh_prefix][ in tnrh_delete()
242 if (rhent->rh_prefix < 0 || rhent->rh_prefix > IPV6_ABITS) in tnrh_delete()
244 if (tnrhc_table_v6[rhent->rh_prefix] == NULL) in tnrh_delete()
246 tsol_plen_to_mask_v6(rhent->rh_prefix, &tmpmask_v6); in tnrh_delete()
247 tnrhc_hash = &tnrhc_table_v6[rhent->rh_prefix][ in tnrh_delete()
441 status = tnrh_hash_add(new, rhent->rh_prefix); in tnrh_load()
/illumos-gate/usr/src/cmd/tsol/tnd/
H A Dtnd.c940 i = ent->rh_prefix; in rhtable_search_and_update()
1039 i = ent->rh_prefix; in rhtable_search_and_update_v6()
1328 rflag += walk_cache_table(addr, ent->rh_template, ent->rh_prefix, src); in update_cache_table()
1379 ent->rh_prefix, src); in update_cache_table_v6()
1535 rhentp.rh_prefix = tlbt->masklen_used; in load_rh_marked()
1597 rhentp.rh_prefix = tlbt->masklen_used; in load_rh_marked_v6()
1844 (void) fprintf(logf, gettext("\tprefix_len: %d\n"), ent->rh_prefix); in print_entry()
/illumos-gate/usr/src/cmd/tsol/tnchkdb/
H A Dtnchkdb.c479 if ((tal = find_host(rhentp->rh_prefix, addr)) != NULL) {
485 add_host(rhentp->rh_prefix, addr, linenum);
/illumos-gate/usr/src/uts/common/sys/tsol/
H A Dtndb.h85 short rh_prefix; /* length of subnet mask */ member
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtnet.c2160 rhent.rh_prefix = 32; in tsol_check_interface_address()
2163 rhent.rh_prefix = 128; in tsol_check_interface_address()
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c2906 au_uwrite(au_to_arg32(2, "prefix len", rhent->rh_prefix)); in aus_labelsys()