Searched refs:rhent (Results 1 – 7 of 7) sorted by relevance
/titanic_44/usr/src/cmd/tsol/tnd/ |
H A D | tnd.c | 786 tnd_tnrhdb_t *rhent, *prev; in handle_unvisited_nodes() local 814 prev = rhent = tnrh_entire_table[i][j]; in handle_unvisited_nodes() 816 while (rhent != NULL) { in handle_unvisited_nodes() 817 if (rhent->visited == 0) { in handle_unvisited_nodes() 821 if (rhent == tnrh_entire_table[i][j]) { in handle_unvisited_nodes() 823 rhent->rh_next; in handle_unvisited_nodes() 826 prev->rh_next = rhent->rh_next; in handle_unvisited_nodes() 830 free(rhent); in handle_unvisited_nodes() 835 rhent = prev; in handle_unvisited_nodes() 839 rhent->visited = 0; in handle_unvisited_nodes() [all …]
|
/titanic_44/usr/src/lib/libtsnet/common/ |
H A D | tsol_getrhent.c | 225 tsol_rhent_t rhent; in tsol_getrhtype() local 233 (void) memset(&rhent, 0, sizeof (rhent)); in tsol_getrhtype() 237 rhent.rh_address.ta_family = AF_INET; in tsol_getrhtype() 238 IN6_V4MAPPED_TO_INADDR(&in6, &rhent.rh_address.ta_addr_v4); in tsol_getrhtype() 239 (void) inet_ntop(AF_INET, &rhent.rh_address.ta_addr_v4, abuf, in tsol_getrhtype() 242 rhent.rh_address.ta_family = AF_INET6; in tsol_getrhtype() 243 rhent.rh_address.ta_addr_v6 = in6; in tsol_getrhtype() 247 if (tnrh(TNDB_GET, &rhent) != 0) in tsol_getrhtype() 250 if (rhent.rh_template[0] == '\0') in tsol_getrhtype() 253 (void) strlcpy(tp.name, rhent.rh_template, sizeof (tp.name)); in tsol_getrhtype()
|
/titanic_44/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 135 tsol_rhent_t rhent; in translate_inet_addr() local 233 tsol_rhent_t rhent; in process_rh() local 267 rhent.rh_prefix = strtol(cp1, &cp2, 0); in process_rh() 268 if (*cp2 != '\0' || errno != 0 || rhent.rh_prefix < 0) { in process_rh() 274 rhent.rh_prefix = -1; in process_rh() 307 rhent.rh_address.ta_family = AF_INET; in process_rh() 309 &rhent.rh_address.ta_addr_v4); in process_rh() 310 if (rhent.rh_prefix == -1) in process_rh() 311 rhent.rh_prefix = 32; in process_rh() 313 rhent.rh_address.ta_family = AF_INET6; in process_rh() [all …]
|
/titanic_44/usr/src/uts/common/os/ |
H A D | labelsys.c | 226 tnrh_delete(const tsol_rhent_t *rhent) in tnrh_delete() argument 234 if (rhent->rh_address.ta_family == AF_INET) { in tnrh_delete() 235 if (rhent->rh_prefix < 0 || rhent->rh_prefix > IP_ABITS) in tnrh_delete() 237 if (tnrhc_table[rhent->rh_prefix] == NULL) in tnrh_delete() 239 tmpmask = tsol_plen_to_mask(rhent->rh_prefix); in tnrh_delete() 240 tnrhc_hash = &tnrhc_table[rhent->rh_prefix][ in tnrh_delete() 241 TSOL_ADDR_HASH(rhent->rh_address.ta_addr_v4.s_addr & in tnrh_delete() 243 } else if (rhent->rh_address.ta_family == AF_INET6) { in tnrh_delete() 244 if (rhent->rh_prefix < 0 || rhent->rh_prefix > IPV6_ABITS) in tnrh_delete() 246 if (tnrhc_table_v6[rhent->rh_prefix] == NULL) in tnrh_delete() [all …]
|
/titanic_44/usr/src/cmd/tsol/tninfo/ |
H A D | tninfo.c | 229 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()
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | tnet.c | 2055 tsol_rhent_t rhent; in tsol_check_interface_address() local 2156 if ((rhent.rh_address.ta_family = af) == AF_INET) { in tsol_check_interface_address() 2157 rhent.rh_prefix = 32; in tsol_check_interface_address() 2158 rhent.rh_address.ta_addr_v4 = *(struct in_addr *)addr; in tsol_check_interface_address() 2160 rhent.rh_prefix = 128; in tsol_check_interface_address() 2161 rhent.rh_address.ta_addr_v6 = *(in6_addr_t *)addr; in tsol_check_interface_address() 2163 (void) strcpy(rhent.rh_template, "cipso"); in tsol_check_interface_address() 2164 if (tnrh_load(&rhent) != 0) { in tsol_check_interface_address()
|
/titanic_44/usr/src/uts/common/c2/ |
H A D | audit_event.c | 2834 tsol_rhent_t *rhent; in aus_labelsys() local 2843 rhent = kmem_alloc(sizeof (tsol_rhent_t), KM_SLEEP); in aus_labelsys() 2844 if (copyin((caddr_t)a2, rhent, sizeof (tsol_rhent_t))) { in aus_labelsys() 2845 kmem_free(rhent, sizeof (tsol_rhent_t)); in aus_labelsys() 2849 rh_addr = &rhent->rh_address; in aus_labelsys() 2861 au_uwrite(au_to_arg32(2, "prefix len", rhent->rh_prefix)); in aus_labelsys() 2863 kmem_free(rhent, sizeof (tsol_rhent_t)); in aus_labelsys()
|