Lines Matching refs:rd
405 ilb_rule_data_t *rd = (ilb_rule_data_t *)store;
407 ip1 = &rd->r_nat_src_start;
408 ip2 = &rd->r_nat_src_end;
685 i_check_rule_spec(ilb_rule_data_t *rd)
687 int32_t vip_af = rd->r_vip.ia_af;
693 if (*rd->r_sgname == '\0')
696 if (rd->r_algo == 0 || rd->r_topo == 0) {
701 if (rd->r_topo == ILB_TOPO_NAT) {
702 prxy_src = &rd->r_nat_src_start;
836 ilb_rule_data_t *rd = NULL;
854 rd = (ilb_rule_data_t *)store;
867 rd = (ilb_rule_data_t *)store;
884 if (rd->r_topo != ILB_TOPO_NAT) {
902 ilb_ip_addr_t *vip = &rd->r_vip;
939 rd->r_conndrain = tmp_val;
947 rd->r_nat_timeout = tmp_val;
955 rd->r_sticky_timeout = tmp_val;
966 rd->r_minport = sn.s_spec.sd_minport;
967 rd->r_maxport = sn.s_spec.sd_maxport;
976 rd->r_minport = se->s_port;
977 rd->r_maxport = 0;
990 rd->r_hcport = htons(hcport);
991 rd->r_hcpflag = ILB_HCI_PROBE_FIX;
993 rd->r_hcport = 0;
994 rd->r_hcpflag = ILB_HCI_PROBE_ANY;
1004 rd->r_proto = pe->p_proto;
1007 rd->r_algo = i_val_from_str(val, &algo_types[0]);
1008 if (rd->r_algo == ILBD_BAD_VAL)
1012 rd->r_flags |= ILB_FLAGS_RULE_STICKY;
1018 if (AF_UNSPEC == rd->r_vip.ia_af) {
1024 rc = ilbadm_set_netmask(val, &rd->r_stickymask,
1025 rd->r_vip.ia_af);
1028 rd->r_topo = i_val_from_str(val, &topo_types[0]);
1029 if (rd->r_topo == ILBD_BAD_VAL)
1033 (void) strlcpy(rd->r_sgname, (char *)val,
1034 sizeof (rd->r_sgname));
1037 (void) strlcpy(rd->r_hcname, (char *)val,
1038 sizeof (rd->r_hcname));