Home
last modified time | relevance | path

Searched refs:rhent (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/cmd/tsol/tnd/
H A Dtnd.c784 tnd_tnrhdb_t *rhent, *prev; in handle_unvisited_nodes() local
812 prev = rhent = tnrh_entire_table[i][j]; in handle_unvisited_nodes()
814 while (rhent != NULL) { in handle_unvisited_nodes()
815 if (rhent->visited == 0) { in handle_unvisited_nodes()
819 if (rhent == tnrh_entire_table[i][j]) { in handle_unvisited_nodes()
821 rhent->rh_next; in handle_unvisited_nodes()
824 prev->rh_next = rhent->rh_next; in handle_unvisited_nodes()
828 free(rhent); in handle_unvisited_nodes()
833 rhent = prev; in handle_unvisited_nodes()
837 rhent->visited = 0; in handle_unvisited_nodes()
[all …]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_getrhent.c223 tsol_rhent_t rhent; in tsol_getrhtype() local
231 (void) memset(&rhent, 0, sizeof (rhent)); in tsol_getrhtype()
235 rhent.rh_address.ta_family = AF_INET; in tsol_getrhtype()
236 IN6_V4MAPPED_TO_INADDR(&in6, &rhent.rh_address.ta_addr_v4); in tsol_getrhtype()
237 (void) inet_ntop(AF_INET, &rhent.rh_address.ta_addr_v4, abuf, in tsol_getrhtype()
240 rhent.rh_address.ta_family = AF_INET6; in tsol_getrhtype()
241 rhent.rh_address.ta_addr_v6 = in6; in tsol_getrhtype()
245 if (tnrh(TNDB_GET, &rhent) != 0) in tsol_getrhtype()
248 if (rhent.rh_template[0] == '\0') in tsol_getrhtype()
251 (void) strlcpy(tp.name, rhent.rh_template, sizeof (tp.name)); in tsol_getrhtype()
/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c135 tsol_rhent_t rhent; in translate_inet_addr() local
234 tsol_rhent_t rhent; in process_rh() local
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()
308 rhent.rh_address.ta_family = AF_INET; in process_rh()
310 &rhent.rh_address.ta_addr_v4); in process_rh()
311 if (rhent.rh_prefix == -1) in process_rh()
312 rhent.rh_prefix = 32; in process_rh()
314 rhent.rh_address.ta_family = AF_INET6; in process_rh()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dlabelsys.c224 tnrh_delete(const tsol_rhent_t *rhent) in tnrh_delete() argument
232 if (rhent->rh_address.ta_family == AF_INET) { in tnrh_delete()
233 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()
239 TSOL_ADDR_HASH(rhent->rh_address.ta_addr_v4.s_addr & in tnrh_delete()
241 } else if (rhent->rh_address.ta_family == AF_INET6) { 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()
[all …]
/illumos-gate/usr/src/cmd/tsol/tninfo/
H A Dtninfo.c229 tsol_rhent_t rhent; in print_rh() local
241 (void) memset(&rhent, 0, sizeof (rhent)); in print_rh()
245 rhent.rh_address.ta_family = AF_INET; in print_rh()
246 IN6_V4MAPPED_TO_INADDR(&in6, &rhent.rh_address.ta_addr_v4); in print_rh()
247 (void) inet_ntop(AF_INET, &rhent.rh_address.ta_addr_v4, abuf, in print_rh()
250 rhent.rh_address.ta_family = AF_INET6; in print_rh()
251 rhent.rh_address.ta_addr_v6 = in6; in print_rh()
257 if (tnrh(TNDB_GET, &rhent) != 0) { in print_rh()
267 if (rhent.rh_template[0] != '\0') in print_rh()
269 rhent.rh_template); in print_rh()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dtnet.c2058 tsol_rhent_t rhent; in tsol_check_interface_address() local
2159 if ((rhent.rh_address.ta_family = af) == AF_INET) { in tsol_check_interface_address()
2160 rhent.rh_prefix = 32; in tsol_check_interface_address()
2161 rhent.rh_address.ta_addr_v4 = *(struct in_addr *)addr; in tsol_check_interface_address()
2163 rhent.rh_prefix = 128; in tsol_check_interface_address()
2164 rhent.rh_address.ta_addr_v6 = *(in6_addr_t *)addr; in tsol_check_interface_address()
2166 (void) strcpy(rhent.rh_template, "cipso"); in tsol_check_interface_address()
2167 if (tnrh_load(&rhent) != 0) { in tsol_check_interface_address()
/illumos-gate/usr/src/uts/common/c2/
H A Daudit_event.c2879 tsol_rhent_t *rhent; in aus_labelsys() local
2888 rhent = kmem_alloc(sizeof (tsol_rhent_t), KM_SLEEP); in aus_labelsys()
2889 if (copyin((caddr_t)a2, rhent, sizeof (tsol_rhent_t))) { in aus_labelsys()
2890 kmem_free(rhent, sizeof (tsol_rhent_t)); in aus_labelsys()
2894 rh_addr = &rhent->rh_address; in aus_labelsys()
2906 au_uwrite(au_to_arg32(2, "prefix len", rhent->rh_prefix)); in aus_labelsys()
2908 kmem_free(rhent, sizeof (tsol_rhent_t)); in aus_labelsys()