Lines Matching defs:tmp_rule
459 ilb_rule_t *tmp_rule;
464 for (tmp_rule = ilbs->ilbs_rule_head; tmp_rule != NULL;
465 prev_rule = tmp_rule, tmp_rule = tmp_rule->ir_next) {
466 if (tmp_rule == rule)
469 if (tmp_rule == NULL) {
474 ilbs->ilbs_rule_head = tmp_rule->ir_next;
476 prev_rule->ir_next = tmp_rule->ir_next;
757 ilb_rule_del_common(ilb_stack_t *ilbs, ilb_rule_t *tmp_rule)
769 tmp_rule->ir_alg->ilb_alg_fini(&tmp_rule->ir_alg);
771 while ((server = tmp_rule->ir_servers) != NULL) {
774 if (tmp_rule->ir_conn_drain_timeout != 0) {
784 SEC_TO_TICK(tmp_rule->ir_conn_drain_timeout));
788 tmp_rule->ir_servers = server->iser_next;
793 ASSERT(tmp_rule->ir_ksp != NULL);
794 kstat_delete_netstack(tmp_rule->ir_ksp, stackid);
796 kmem_free(tmp_rule, sizeof (ilb_rule_t));
817 ilb_rule_t *tmp_rule;
822 if ((tmp_rule = ilb_find_rule_locked(ilbs, zoneid, name,
832 ilb_rule_hash_del(tmp_rule);
833 ilb_rule_g_del(ilbs, tmp_rule);
835 ILB_RULE_REFRELE(tmp_rule);
848 arg->rule = tmp_rule;
928 ilb_rule_t *tmp_rule;
932 for (tmp_rule = ilbs->ilbs_rule_head; tmp_rule != NULL;
933 tmp_rule = tmp_rule->ir_next) {
934 if (tmp_rule->ir_zoneid != zoneid)
936 if (strcasecmp(tmp_rule->ir_name, name) == 0) {
937 mutex_enter(&tmp_rule->ir_lock);
938 if (tmp_rule->ir_flags & ILB_RULE_BUSY) {
939 mutex_exit(&tmp_rule->ir_lock);
943 tmp_rule->ir_refcnt++;
944 mutex_exit(&tmp_rule->ir_lock);
946 return (tmp_rule);
958 ilb_rule_t *tmp_rule;
961 tmp_rule = ilb_find_rule_locked(ilbs, zoneid, name, err);
963 return (tmp_rule);
971 ilb_rule_t *tmp_rule;
975 for (tmp_rule = ilbs->ilbs_rule_head; tmp_rule != NULL;
976 tmp_rule = tmp_rule->ir_next) {
977 if (tmp_rule->ir_zoneid != zoneid)
984 if (strcasecmp(tmp_rule->ir_name, name) == 0)
987 if (tmp_rule->ir_ipver != l3 || tmp_rule->ir_proto != l4)
996 if (tmp_rule->ir_max_port < min_port ||
997 tmp_rule->ir_min_port > max_port) {
1006 V6_OR_V4_INADDR_ANY(tmp_rule->ir_target_v6) ||
1007 IN6_ARE_ADDR_EQUAL(addr, &tmp_rule->ir_target_v6)) {
1925 ilb_rule_t *tmp_rule;
1929 for (tmp_rule = ilbs->ilbs_rule_head; tmp_rule != NULL;
1930 tmp_rule = tmp_rule->ir_next) {
1931 if (tmp_rule->ir_zoneid == zoneid)
1983 ilb_rule_t *tmp_rule;
1990 for (cnt = 0, tmp_rule = ilbs->ilbs_rule_head; tmp_rule != NULL;
1991 tmp_rule = tmp_rule->ir_next) {
1992 if (tmp_rule->ir_zoneid != zoneid)
1995 (void) memcpy(buf, tmp_rule->ir_name, ILB_RULE_NAMESZ);
2115 ilb_rule_t *tmp_rule;
2120 while ((tmp_rule = ilbs->ilbs_rule_head) != NULL) {
2121 ilb_rule_hash_del(tmp_rule);
2122 ilb_rule_g_del(ilbs, tmp_rule);
2124 ilb_rule_del_common(ilbs, tmp_rule);