Home | History | Annotate | Download | only in racoon

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;
183 plog(LLV_DEBUG, LOCATION, NULL, "MODE_CFG packet\n");
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) {
628 "Sending MODE_CFG REPLY\n");
730 "Sending MODE_CFG ACK\n");
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;
1248 plog(LLV_DEBUG, LOCATION, NULL, "MODE_CFG packet to send\n");
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)
1756 "Sending MODE_CFG REQUEST\n");
1886 if ((iph1->mode_cfg->flags & ISAKMP_CFG_GOT_ADDR4) ||
1888 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN) ||
1891 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_EXTERN) ||
1893 (iph1->mode_cfg->flags & ISAKMP_CFG_ADDR4_LOCAL)) {
1894 inet_ntop(AF_INET, &iph1->mode_cfg->addr4,
1904 if (iph1->mode_cfg->xauth.authdata.generic.usr != NULL) {
1906 iph1->mode_cfg->xauth.authdata.generic.usr) != 0) {
1914 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_MASK4)
1915 inet_ntop(AF_INET, &iph1->mode_cfg->mask4,
1936 tmp = ntohl(iph1->mode_cfg->mask4.s_addr);
1947 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_DNS4) {
1949 inet_ntop(AF_INET, &iph1->mode_cfg->dns4[0],
1953 isakmp_cfg_iplist_to_str(addrlist, iph1->mode_cfg->dns4_index,
1954 (void *)iph1->mode_cfg->dns4, 0);
1971 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_WINS4) {
1976 inet_ntop(AF_INET, &iph1->mode_cfg->wins4[0],
1980 isakmp_cfg_iplist_to_str(addrlist, iph1->mode_cfg->wins4_index,
1981 (void *)iph1->mode_cfg->wins4, 0);
2000 if(iph1->mode_cfg->flags & ISAKMP_CFG_GOT_DEFAULT_DOMAIN)
2002 iph1->mode_cfg->default_domain,
2014 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_SPLIT_INCLUDE)
2015 splitlist = splitnet_list_2str(iph1->mode_cfg->split_include);
2028 if (iph1->mode_cfg->flags & ISAKMP_CFG_GOT_SPLIT_LOCAL)
2029 splitlist = splitnet_list_2str(iph1->mode_cfg->split_local);