Pass complete port range over stroke interface for more flexibility
This commit is contained in:
@@ -151,12 +151,14 @@ static int add_connection(char *name,
|
||||
msg.add_conn.me.ikeport = 500;
|
||||
msg.add_conn.me.subnets = push_string(&msg, my_nets);
|
||||
msg.add_conn.me.sendcert = 1;
|
||||
msg.add_conn.me.to_port = 65535;
|
||||
|
||||
msg.add_conn.other.id = push_string(&msg, other_id);
|
||||
msg.add_conn.other.address = push_string(&msg, other_addr);
|
||||
msg.add_conn.other.ikeport = 500;
|
||||
msg.add_conn.other.subnets = push_string(&msg, other_nets);
|
||||
msg.add_conn.other.sendcert = 1;
|
||||
msg.add_conn.other.to_port = 65535;
|
||||
|
||||
return send_stroke_msg(&msg);
|
||||
}
|
||||
|
||||
@@ -167,7 +167,8 @@ struct stroke_end_t {
|
||||
int tohost;
|
||||
int allow_any;
|
||||
u_int8_t protocol;
|
||||
u_int16_t port;
|
||||
u_int16_t from_port;
|
||||
u_int16_t to_port;
|
||||
};
|
||||
|
||||
typedef struct stroke_msg_t stroke_msg_t;
|
||||
|
||||
Reference in New Issue
Block a user