Lines Matching refs:mode_cfg
172 if (iph1->mode_cfg->ivm == NULL ||
173 iph1->mode_cfg->last_msgid != packet->msgid )
174 iph1->mode_cfg->ivm =
176 ivm = iph1->mode_cfg->ivm;
288 oakley_delivm(iph1->mode_cfg->ivm);
289 iph1->mode_cfg->ivm = NULL;
395 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->addr4);
396 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_ADDR4;
399 isakmp_cfg_getaddr4(attr, &iph1->mode_cfg->mask4);
400 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_MASK4;
404 &iph1->mode_cfg->dns4[iph1->mode_cfg->dns4_index],
405 &iph1->mode_cfg->dns4_index, MAXNS);
406 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_DNS4;
410 &iph1->mode_cfg->wins4[iph1->mode_cfg->wins4_index],
411 &iph1->mode_cfg->wins4_index, MAXNS);
412 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_WINS4;
416 iph1->mode_cfg->default_domain);
417 iph1->mode_cfg->flags |= ISAKMP_CFG_GOT_DEFAULT_DOMAIN;
452 iph1->rmconf->mode_cfg) {
736 if (iph1->mode_cfg->flags & ISAKMP_CFG_DELETE_PH1) {
750 if ((iph1 != NULL) && (iph1->rmconf->mode_cfg) && (error == 0))
811 if (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN)
821 if ((iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN)
822 && (iph1->mode_cfg->addr4.s_addr != htonl(-2)))
841 iph1->mode_cfg->addr4.s_addr =
843 + iph1->mode_cfg->port);
844 iph1->mode_cfg->flags |= ISAKMP_CFG_ADDR4_LOCAL;
856 attr, &iph1->mode_cfg->addr4.s_addr);
863 if (iph1->mode_cfg->flags & ISAKMP_CFG_MASK4_EXTERN)
873 if (iph1->mode_cfg->flags & ISAKMP_CFG_MASK4_EXTERN)
882 iph1->mode_cfg->mask4.s_addr
884 iph1->mode_cfg->flags |= ISAKMP_CFG_MASK4_LOCAL;
892 &iph1->mode_cfg->mask4.s_addr);
1135 struct isakmp_cfg_state *ics = iph1->mode_cfg;
1168 struct isakmp_cfg_state *ics = iph1->mode_cfg;
1325 struct isakmp_cfg_state *state = iph1->mode_cfg;
1334 if(iph1->mode_cfg->ivm) {
1335 oakley_delivm(iph1->mode_cfg->ivm);
1336 iph1->mode_cfg->ivm = NULL;
1340 if(iph1->mode_cfg->split_include != NULL)
1341 splitnet_list_free(iph1->mode_cfg->split_include,
1342 &iph1->mode_cfg->include_count);
1343 if(iph1->mode_cfg->split_local != NULL)
1344 splitnet_list_free(iph1->mode_cfg->split_local,
1345 &iph1->mode_cfg->local_count);
1350 iph1->mode_cfg = NULL;
1377 if (iph1->mode_cfg->flags & ISAKMP_CFG_PORT_ALLOCATED)
1378 return iph1->mode_cfg->port;
1401 iph1->mode_cfg->flags |= ISAKMP_CFG_PORT_ALLOCATED;
1402 iph1->mode_cfg->port = i;
1431 iph1->mode_cfg->flags &= ISAKMP_CFG_PORT_ALLOCATED;
1460 return privsep_accounting_pam(iph1->mode_cfg->port,
1468 return privsep_accounting_system(iph1->mode_cfg->port,
1469 iph1->remote, iph1->mode_cfg->login, inout);
1534 iph1->mode_cfg->login) != 0) {
1554 RAD_FRAMED_IP_ADDRESS, iph1->mode_cfg->addr4) != 0) {
1562 RAD_LOGIN_IP_HOST, iph1->mode_cfg->addr4) != 0) {
1577 iph1->mode_cfg->port) != 0)
1893 if ((iph1->mode_cfg->flags & ISAKMP_CFG_GOT_ADDR4) ||
1895 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN) ||
1898 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN) ||
1900 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_LOCAL)) {
1901 inet_ntop(AF_INET, &iph1->mode_cfg->addr4,
1911 if (iph1->mode_cfg->xauth.authdata.generic.usr != NULL) {
1913 iph1->mode_cfg->xauth.authdata.generic.usr) != 0) {
1921 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_MASK4)
1922 inet_ntop(AF_INET, &iph1->mode_cfg->mask4,
1943 tmp = ntohl(iph1->mode_cfg->mask4.s_addr);
1954 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_DNS4) {
1956 inet_ntop(AF_INET, &iph1->mode_cfg->dns4[0],
1960 isakmp_cfg_iplist_to_str(addrlist, iph1->mode_cfg->dns4_index,
1961 (void *)iph1->mode_cfg->dns4, 0);
1978 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_WINS4) {
1983 inet_ntop(AF_INET, &iph1->mode_cfg->wins4[0],
1987 isakmp_cfg_iplist_to_str(addrlist, iph1->mode_cfg->wins4_index,
1988 (void *)iph1->mode_cfg->wins4, 0);
2007 if(iph1->mode_cfg->flags & ISAKMP_CFG_GOT_DEFAULT_DOMAIN)
2009 iph1->mode_cfg->default_domain,
2021 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_SPLIT_INCLUDE) {
2023 splitnet_list_2str(iph1->mode_cfg->split_include, NETMASK);
2025 splitnet_list_2str(iph1->mode_cfg->split_include, CIDR);
2047 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_SPLIT_LOCAL) {
2049 splitnet_list_2str(iph1->mode_cfg->split_local, NETMASK);
2051 splitnet_list_2str(iph1->mode_cfg->split_local, CIDR);