starter passes unresolved DNS names to charon

Based on an initial patch by Mirko Parthey.
This commit is contained in:
Martin Willi
2011-08-29 09:58:18 +02:00
parent 88d180c7d8
commit e59a50009c
4 changed files with 82 additions and 68 deletions
+9 -2
View File
@@ -169,8 +169,15 @@ static void starter_stroke_add_end(stroke_msg_t *msg, stroke_end_t *msg_end, sta
msg_end->ca2 = push_string(msg, conn_end->ca2);
msg_end->groups = push_string(msg, conn_end->groups);
msg_end->updown = push_string(msg, conn_end->updown);
ip_address2string(&conn_end->addr, buffer, sizeof(buffer));
msg_end->address = push_string(msg, buffer);
if (conn_end->host)
{
msg_end->address = push_string(msg, conn_end->host);
}
else
{
ip_address2string(&conn_end->addr, buffer, sizeof(buffer));
msg_end->address = push_string(msg, buffer);
}
msg_end->ikeport = conn_end->ikeport;
msg_end->subnets = push_string(msg, conn_end->subnet);
msg_end->sourceip = push_string(msg, conn_end->sourceip);