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.c828 free(rhent); in handle_unvisited_nodes()
840 rhent = rhent->rh_next; in handle_unvisited_nodes()
901 free(rhent); in handle_unvisited_nodes_v6()
911 prev = rhent; in handle_unvisited_nodes_v6()
912 rhent = rhent->rh_next; in handle_unvisited_nodes_v6()
992 rhent = rhent->rh_next; in rhtable_search_and_update()
1078 rhent = rhent->rh_next; in rhtable_search_and_update_v6()
1129 rhent = rhent->rh_next; in rhtable_lookup()
1159 rhent = rhent->rh_next; in rhtable_lookup_v6()
1889 rhent = rhent->rh_next; in rhtable_walk()
[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
275 rhent.rh_prefix = -1; 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()
316 if (rhent.rh_prefix == -1) in process_rh()
317 rhent.rh_prefix = 128; in process_rh()
319 rhent.rh_template[0] = '\0'; in process_rh()
320 rhentp = &rhent; in process_rh()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dlabelsys.c233 if (rhent->rh_prefix < 0 || rhent->rh_prefix > IP_ABITS) in tnrh_delete()
242 if (rhent->rh_prefix < 0 || rhent->rh_prefix > IPV6_ABITS) in tnrh_delete()
448 tnrh_get(tsol_rhent_t *rhent) in tnrh_get() argument
470 rhent, tsol_tpc_t *, tpc); in tnrh_get()
472 sizeof (rhent->rh_template)); in tnrh_get()
494 tsol_rhent_t rhent; in tnrh() local
505 copyin(buf, &rhent, sizeof (rhent)) != 0) { in tnrh()
516 retv = tnrh_load(&rhent); in tnrh()
522 retv = tnrh_delete(&rhent); in tnrh()
532 retv = tnrh_get(&rhent); in tnrh()
[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()