Lines Matching refs:mode_cfg
170 if (iph1->mode_cfg->ivm == NULL ||
171 iph1->mode_cfg->last_msgid != packet->msgid )
172 iph1->mode_cfg->ivm =
174 ivm = iph1->mode_cfg->ivm;
286 oakley_delivm(iph1->mode_cfg->ivm);
287 iph1->mode_cfg->ivm = NULL;
393 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->addr4);
394 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_ADDR4;
397 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->mask4);
398 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_MASK4;
402 &iph1->mode_cfg->dns4[iph1->mode_cfg->dns4_index],
403 &iph1->mode_cfg->dns4_index, MAXNS);
404 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_DNS4;
408 &iph1->mode_cfg->wins4[iph1->mode_cfg->wins4_index],
409 &iph1->mode_cfg->wins4_index, MAXNS);
410 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_WINS4;
414 iph1->mode_cfg->default_domain);
415 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_DEFAULT_DOMAIN;
450 iph1->rmconf->mode_cfg) {
735 if (iph1->mode_cfg->flags & ISAKMP_CFG_DELETE_PH1) {
748 if ((iph1 != NULL) && (iph1->rmconf->mode_cfg) && (error == 0))
809 if (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN)
819 if ((iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN)
820 && (iph1->mode_cfg->addr4.s_addr != htonl(-2)))
839 iph1->mode_cfg->addr4.s_addr =
841 + iph1->mode_cfg->port);
842 iph1->mode_cfg->flags |= ISAKMP_CFG_ADDR4_LOCAL;
854 attr, &iph1->mode_cfg->addr4.s_addr);
861 if (iph1->mode_cfg->flags & ISAKMP_CFG_MASK4_EXTERN)
871 if (iph1->mode_cfg->flags & ISAKMP_CFG_MASK4_EXTERN)
880 iph1->mode_cfg->mask4.s_addr
882 iph1->mode_cfg->flags |= ISAKMP_CFG_MASK4_LOCAL;
890 &iph1->mode_cfg->mask4.s_addr);
1096 struct isakmp_cfg_state *ics = iph1->mode_cfg;
1129 struct isakmp_cfg_state *ics = iph1->mode_cfg;
1297 struct isakmp_cfg_state *state = iph1->mode_cfg;
1306 if(iph1->mode_cfg->ivm) {
1307 oakley_delivm(iph1->mode_cfg->ivm);
1308 iph1->mode_cfg->ivm = NULL;
1312 if(iph1->mode_cfg->split_include != NULL)
1313 splitnet_list_free(iph1->mode_cfg->split_include,
1314 &iph1->mode_cfg->include_count);
1315 if(iph1->mode_cfg->split_local != NULL)
1316 splitnet_list_free(iph1->mode_cfg->split_local,
1317 &iph1->mode_cfg->local_count);
1322 iph1->mode_cfg = NULL;
1349 if (iph1->mode_cfg->flags & ISAKMP_CFG_PORT_ALLOCATED)
1350 return iph1->mode_cfg->port;
1373 iph1->mode_cfg->flags |= ISAKMP_CFG_PORT_ALLOCATED;
1374 iph1->mode_cfg->port = i;
1403 iph1->mode_cfg->flags &= ISAKMP_CFG_PORT_ALLOCATED;
1432 return privsep_accounting_pam(iph1->mode_cfg->port,
1440 return privsep_accounting_system(iph1->mode_cfg->port,
1441 iph1->remote, iph1->mode_cfg->login, inout);
1524 iph1->mode_cfg->login) != 0) {
1544 RAD_FRAMED_IP_ADDRESS, iph1->mode_cfg->addr4) != 0) {
1552 RAD_LOGIN_IP_HOST, iph1->mode_cfg->addr4) != 0) {
1567 iph1->mode_cfg->port) != 0)
1891 if ((iph1->mode_cfg->flags & ISAKMP_CFG_GOT_ADDR4) ||
1893 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN) ||
1896 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN) ||
1898 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_LOCAL)) {
1899 inet_ntop(AF_INET, &iph1->mode_cfg->addr4,
1909 if (iph1->mode_cfg->xauth.authdata.generic.usr != NULL) {
1911 iph1->mode_cfg->xauth.authdata.generic.usr) != 0) {
1919 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_MASK4)
1920 inet_ntop(AF_INET, &iph1->mode_cfg->mask4,
1941 tmp = ntohl(iph1->mode_cfg->mask4.s_addr);
1952 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_DNS4) {
1954 inet_ntop(AF_INET, &iph1->mode_cfg->dns4[0],
1958 isakmp_cfg_iplist_to_str(addrlist, iph1->mode_cfg->dns4_index,
1959 (void *)iph1->mode_cfg->dns4, 0);
1976 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_WINS4) {
1981 inet_ntop(AF_INET, &iph1->mode_cfg->wins4[0],
1985 isakmp_cfg_iplist_to_str(addrlist, iph1->mode_cfg->wins4_index,
1986 (void *)iph1->mode_cfg->wins4, 0);
2005 if(iph1->mode_cfg->flags & ISAKMP_CFG_GOT_DEFAULT_DOMAIN)
2007 iph1->mode_cfg->default_domain,
2019 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_SPLIT_INCLUDE) {
2021 splitnet_list_2str(iph1->mode_cfg->split_include, NETMASK);
2023 splitnet_list_2str(iph1->mode_cfg->split_include, CIDR);
2045 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_SPLIT_LOCAL) {
2047 splitnet_list_2str(iph1->mode_cfg->split_local, NETMASK);
2049 splitnet_list_2str(iph1->mode_cfg->split_local, CIDR);