Lines Matching defs:rhent
786 tnd_tnrhdb_t *rhent, *prev;
814 prev = rhent = tnrh_entire_table[i][j];
816 while (rhent != NULL) {
817 if (rhent->visited == 0) {
821 if (rhent == tnrh_entire_table[i][j]) {
823 rhent->rh_next;
826 prev->rh_next = rhent->rh_next;
830 free(rhent);
835 rhent = prev;
839 rhent->visited = 0;
841 prev = rhent;
842 rhent = rhent->rh_next;
861 tnd_tnrhdb_t *rhent, *prev;
889 prev = rhent = tnrh_entire_table_v6[i][j];
891 while (rhent != NULL) {
892 if (rhent->visited == 0) { /* delete the node */
894 if (rhent == tnrh_entire_table_v6[i][j]) {
896 rhent->rh_next;
899 prev->rh_next = rhent->rh_next;
903 free(rhent);
907 rhent = prev;
911 rhent->visited = 0;
913 prev = rhent;
914 rhent = rhent->rh_next;
934 tnd_tnrhdb_t *rhent;
956 rhent = tnrh_entire_table[i][hash];
960 if (rhent != NULL) {
962 rhent->visited);
963 print_entry(&rhent->rh_ent, AF_INET);
968 while (rhent != NULL) {
969 if (rhaddr_compar(saddrp, rhent) == 1) {
971 if ((rhent->visited == 1) && duplflag)
975 rhent->visited = 1;
978 rhent->rh_ent.rh_template) != 0) {
983 (void) strcpy(rhent->rh_ent.rh_template,
989 rflag = update_cache_table(ent, rhent);
994 rhent = rhent->rh_next;
1033 tnd_tnrhdb_t *rhent;
1053 rhent = tnrh_entire_table_v6[i][hash];
1054 while (rhent != NULL) {
1055 if (rhaddr_compar_v6(saddrp, rhent) == 1) {
1057 if ((rhent->visited == 1) && duplflag)
1061 rhent->visited = 1;
1064 rhent->rh_ent.rh_template) != 0) {
1069 (void) strcpy(rhent->rh_ent.rh_template,
1075 rflag = update_cache_table_v6(ent, rhent);
1080 rhent = rhent->rh_next;
1109 tnd_tnrhdb_t *rhent;
1115 rhent = tnrh_entire_table[i][hash];
1122 while (rhent != NULL) {
1125 saddrp2 = (struct sockaddr_in *)(&rhent->rh_ent.rh_address.ip_addr_v4);
1127 inet_ntoa(saddrp2->sin_addr), rhent->rh_ent.rh_template);
1129 if (rhaddr_compar_mask(saddrp, rhent, i) == 1)
1130 return (rhent);
1131 rhent = rhent->rh_next;
1150 tnd_tnrhdb_t *rhent;
1156 rhent = tnrh_entire_table_v6[i][hash];
1158 while (rhent != NULL) {
1159 if (rhaddr_compar_mask_v6(saddrp, rhent, i) == 1)
1160 return (rhent);
1161 rhent = rhent->rh_next;
1880 tnd_tnrhdb_t *rhent;
1887 rhent = tnrh_entire_table[i][j];
1889 while (rhent != NULL) {
1890 action(&rhent->rh_ent, AF_INET);
1891 rhent = rhent->rh_next;
1905 tnd_tnrhdb_t *rhent;
1912 rhent = tnrh_entire_table_v6[i][j];
1914 while (rhent != NULL) {
1915 action(&rhent->rh_ent, AF_INET6);
1916 rhent = rhent->rh_next;