Lines Matching refs:isakmp_cfg_config
110 struct isakmp_cfg_config isakmp_cfg_config;
796 confsource = isakmp_cfg_config.confsource;
840 htonl(ntohl(isakmp_cfg_config.network4)
881 = isakmp_cfg_config.netmask4;
895 attr, &isakmp_cfg_config.dns4[0],
896 isakmp_cfg_config.dns4_index);
901 attr, &isakmp_cfg_config.nbns4[0],
902 isakmp_cfg_config.nbns4_index);
907 attr, &isakmp_cfg_config.network4);
1347 size_t size = isakmp_cfg_config.pool_size;
1352 if (isakmp_cfg_config.port_pool == NULL) {
1354 "isakmp_cfg_config.port_pool == NULL\n");
1359 if (isakmp_cfg_config.port_pool[i].used == 0)
1369 isakmp_cfg_config.port_pool[i].used = 1;
1384 if (isakmp_cfg_config.port_pool == NULL) {
1386 "isakmp_cfg_config.port_pool == NULL\n");
1390 if (isakmp_cfg_config.port_pool[index].used == 0) {
1399 if (isakmp_cfg_config.authsource == ISAKMP_CFG_AUTH_PAM)
1402 isakmp_cfg_config.port_pool[index].used = 0;
1415 if (isakmp_cfg_config.port_pool[port].pam != NULL) {
1416 pam_end(isakmp_cfg_config
1417 isakmp_cfg_config.port_pool[port].pam = NULL;
1431 if (isakmp_cfg_config.accounting == ISAKMP_CFG_ACCT_PAM)
1436 if (isakmp_cfg_config.accounting == ISAKMP_CFG_ACCT_RADIUS)
1439 if (isakmp_cfg_config.accounting == ISAKMP_CFG_ACCT_SYSTEM)
1454 if (isakmp_cfg_config.port_pool == NULL) {
1456 "isakmp_cfg_config.port_pool == NULL\n");
1460 pam = isakmp_cfg_config.port_pool[port].pam;
1473 isakmp_cfg_config.port_pool[port].pam = NULL;
2078 if (size == isakmp_cfg_config.pool_size)
2083 isakmp_cfg_config.pool_size, size);
2086 if ((isakmp_cfg_config.port_pool != NULL) &&
2087 (size < isakmp_cfg_config.pool_size)) {
2088 for (i = isakmp_cfg_config.pool_size-1; i >= size; --i) {
2089 if (isakmp_cfg_config.port_pool[i].used) {
2093 isakmp_cfg_config.pool_size, size, i);
2100 len = size * sizeof(*isakmp_cfg_config.port_pool);
2101 new_pool = racoon_realloc(isakmp_cfg_config.port_pool, len);
2105 isakmp_cfg_config.pool_size, size, strerror(errno));
2110 if (size > isakmp_cfg_config.pool_size) {
2114 unit = sizeof(*isakmp_cfg_config.port_pool);
2115 old_size = isakmp_cfg_config.pool_size;
2121 isakmp_cfg_config.port_pool = new_pool;
2122 isakmp_cfg_config.pool_size = size;
2134 isakmp_cfg_config.network4 = (in_addr_t)0x00000000;
2135 isakmp_cfg_config.netmask4 = (in_addr_t)0x00000000;
2137 isakmp_cfg_config.dns4[i] = (in_addr_t)0x00000000;
2138 isakmp_cfg_config.dns4_index = 0;
2140 isakmp_cfg_config.nbns4[i] = (in_addr_t)0x00000000;
2141 isakmp_cfg_config.nbns4_index = 0;
2143 isakmp_cfg_config.port_pool = NULL;
2144 isakmp_cfg_config.authsource = ISAKMP_CFG_AUTH_SYSTEM;
2145 isakmp_cfg_config.groupsource = ISAKMP_CFG_GROUP_SYSTEM;
2147 if (isakmp_cfg_config.grouplist != NULL) {
2148 for (i = 0; i < isakmp_cfg_config.groupcount; i++)
2149 racoon_free(isakmp_cfg_config.grouplist[i]);
2150 racoon_free(isakmp_cfg_config.grouplist);
2153 isakmp_cfg_config.grouplist = NULL;
2154 isakmp_cfg_config.groupcount = 0;
2155 isakmp_cfg_config.confsource = ISAKMP_CFG_CONF_LOCAL;
2156 isakmp_cfg_config.accounting = ISAKMP_CFG_ACCT_NONE;
2158 isakmp_cfg_config.pool_size = 0;
2159 isakmp_cfg_config.auth_throttle = THROTTLE_PENALTY;
2160 strlcpy(isakmp_cfg_config.default_domain, ISAKMP_CFG_DEFAULT_DOMAIN,
2162 strlcpy(isakmp_cfg_config.motd, ISAKMP_CFG_MOTD, MAXPATHLEN);
2165 if (isakmp_cfg_config.splitnet_list != NULL)
2166 splitnet_list_free(isakmp_cfg_config.splitnet_list,
2167 &isakmp_cfg_config.splitnet_count);
2168 isakmp_cfg_config.splitnet_list = NULL;
2169 isakmp_cfg_config.splitnet_count = 0;
2170 isakmp_cfg_config.splitnet_type = 0;
2172 isakmp_cfg_config.pfs_group = 0;
2173 isakmp_cfg_config.save_passwd = 0;
2176 if (isakmp_cfg_config.splitdns_list != NULL)
2177 racoon_free(isakmp_cfg_config.splitdns_list);
2178 isakmp_cfg_config.splitdns_list = NULL;
2179 isakmp_cfg_config.splitdns_len = 0;