return (opt_policy_name_eq(conf, token, con->policy->s, matches));
OPT_SERV_X_EQ(con->policy->s->policy_name); else if (OPT_SERV_SYM_EQ("tag-eq") || OPT_SERV_SYM_EQ("tag==")) OPT_SERV_X_EQ(con->tag);
static int httpd__policy_connection_tst_d1(struct Con *con,                                           Conf_parse *conf, Conf_token *token,                                           int *matches){  int clist = FALSE;    ASSERT(con);    ASSERT(matches);    CONF_SC_TOGGLE_CLIST_VAR(clist);  if (token->type >= CONF_TOKEN_TYPE_USER_BEG)  {    unsigned int type = token->type - CONF_TOKEN_TYPE_USER_BEG;    unsigned int nxt = 0;    Vstr_ref *ref = conf_token_get_user_value(conf, token, &nxt);        switch (type)    {      case HTTPD_POLICY_CLIENT_IPV4_CIDR_EQ:      {        struct sockaddr *sa = CON_CEVNT_SA(con);        *matches = httpd_policy_ipv4_cidr_eq(con, NULL, ref->ptr, sa);      }      break;              case HTTPD_POLICY_SERVER_IPV4_CIDR_EQ:      {        struct sockaddr *sa = CON_SEVNT_SA(con);        *matches = httpd_policy_ipv4_cidr_eq(con, NULL, ref->ptr, sa);      }      break;              default:        vstr_ref_del(ref);        return (FALSE);    }    vstr_ref_del(ref);    if (nxt)      return (conf_parse_num_token(conf, token, nxt));  }    else if (OPT_SERV_SYM_EQ("policy-eq") || OPT_SERV_SYM_EQ("policy=="))    return (opt_policy_name_eq(conf, token, con->policy->s, matches));  else if (OPT_SERV_SYM_EQ("client-ipv4-cidr-eq") ||           OPT_SERV_SYM_EQ("client-ipv4-cidr=="))    return (httpd_policy_ipv4_make(con, NULL, conf, token,                                   HTTPD_POLICY_CLIENT_IPV4_CIDR_EQ,                                   CON_CEVNT_SA(con), matches));  else if (OPT_SERV_SYM_EQ("server-ipv4-cidr-eq") ||           OPT_SERV_SYM_EQ("server-ipv4-cidr=="))    return (httpd_policy_ipv4_make(con, NULL, conf, token,                                   HTTPD_POLICY_SERVER_IPV4_CIDR_EQ,                                   CON_SEVNT_SA(con), matches));  else if (OPT_SERV_SYM_EQ("server-ipv4-port-eq") ||           OPT_SERV_SYM_EQ("server-ipv4-port=="))  {    struct sockaddr *sa   = CON_SEVNT_SA(con);    unsigned int tst_port = 0;    OPT_SERV_X_UINT(tst_port);    if (sa->sa_family != AF_INET)      *matches = FALSE;    else    {      struct sockaddr_in *sin = CON_SEVNT_SA_IN4(con);      *matches = tst_port == ntohs(sin->sin_port);    }  }    else    return (opt_serv_sc_tst(conf, token, matches,                            httpd__policy_connection_tst_op_d1, con));  return (TRUE);}