added support for leftprotoport and rightprotoport
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user