strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4edbe55
)
- changed ports
author
Martin Willi
<martin@strongswan.org>
Thu, 17 Nov 2005 11:27:38 +0000
(11:27 -0000)
committer
Martin Willi
<martin@strongswan.org>
Thu, 17 Nov 2005 11:27:38 +0000
(11:27 -0000)
Source/charon/configuration_manager.c
patch
|
blob
|
history
diff --git
a/Source/charon/configuration_manager.c
b/Source/charon/configuration_manager.c
index
61dd7e9
..
68118d4
100644
(file)
--- a/
Source/charon/configuration_manager.c
+++ b/
Source/charon/configuration_manager.c
@@
-48,17
+48,19
@@
static status_t get_remote_host(private_configuration_manager_t *this, char *nam
/* some hard coded users for testing */
host_t *remote;
if (strcmp(name, "pinflb30") == 0) {
/* some hard coded users for testing */
host_t *remote;
if (strcmp(name, "pinflb30") == 0) {
- remote = host_create(AF_INET, "152.96.193.130",
4
500);
+ remote = host_create(AF_INET, "152.96.193.130", 500);
if (remote == NULL) {
return OUT_OF_RES;
}
if (remote == NULL) {
return OUT_OF_RES;
}
+ *host = remote;
return SUCCESS;
}
else if (strcmp(name, "pinflb31") == 0) {
return SUCCESS;
}
else if (strcmp(name, "pinflb31") == 0) {
- remote = host_create(AF_INET, "152.96.193.131",
4
500);
+ remote = host_create(AF_INET, "152.96.193.131", 500);
if (remote == NULL) {
return OUT_OF_RES;
}
if (remote == NULL) {
return OUT_OF_RES;
}
+ *host = remote;
return SUCCESS;
}
return NOT_FOUND;
return SUCCESS;
}
return NOT_FOUND;
@@
-68,7
+70,7
@@
static status_t get_local_host(private_configuration_manager_t *this, char *name
{
/* use default route for now */
host_t *local;
{
/* use default route for now */
host_t *local;
- local = host_create(AF_INET, "0.0.0.0",
450
0);
+ local = host_create(AF_INET, "0.0.0.0", 0);
if (local == NULL)
{
return OUT_OF_RES;
if (local == NULL)
{
return OUT_OF_RES;