added support for 0.0.0.0/0 traffic selectors

fixed routing to make correct 0.0.0.0/0 routes
This commit is contained in:
Martin Willi
2007-03-01 11:42:08 +00:00
parent 671a54e9ab
commit 0c8aba6771
9 changed files with 162 additions and 40 deletions
+2
View File
@@ -133,6 +133,7 @@ static int add_connection(char *name,
msg.add_conn.me.ca = NULL;
msg.add_conn.me.sendcert = 1;
msg.add_conn.me.hostaccess = 0;
msg.add_conn.me.tohost = 0;
msg.add_conn.me.protocol = 0;
msg.add_conn.me.port = 0;
@@ -146,6 +147,7 @@ static int add_connection(char *name,
msg.add_conn.other.ca = NULL;
msg.add_conn.other.sendcert = 1;
msg.add_conn.other.hostaccess = 0;
msg.add_conn.other.tohost = 0;
msg.add_conn.other.protocol = 0;
msg.add_conn.other.port = 0;
+1
View File
@@ -106,6 +106,7 @@ struct stroke_end_t {
int subnet_mask;
int sendcert;
int hostaccess;
int tohost;
u_int8_t protocol;
u_int16_t port;
};