added support for leftprotoport and rightprotoport

This commit is contained in:
Martin Willi
2006-07-05 13:13:07 +00:00
parent 5f0eb96fc4
commit d109b48968
6 changed files with 32 additions and 11 deletions
+4
View File
@@ -123,6 +123,8 @@ static int add_connection(char *name,
msg.add_conn.me.cert = NULL;
msg.add_conn.me.ca = NULL;
msg.add_conn.me.sendcert = 1;
msg.add_conn.me.protocol = 0;
msg.add_conn.me.port = 0;
msg.add_conn.other.id = push_string(&msg, other_id);
msg.add_conn.other.address = push_string(&msg, other_addr);
@@ -131,6 +133,8 @@ static int add_connection(char *name,
msg.add_conn.other.cert = NULL;
msg.add_conn.other.ca = NULL;
msg.add_conn.other.sendcert = 1;
msg.add_conn.other.protocol = 0;
msg.add_conn.other.port = 0;
return send_stroke_msg(&msg);
}
+2
View File
@@ -82,6 +82,8 @@ struct stroke_end_t {
char *subnet;
int subnet_mask;
int sendcert;
u_int8_t protocol;
u_int16_t port;
};
typedef struct stroke_msg_t stroke_msg_t;