chiark / gitweb /
Import release 0.1.6
[secnet.git] / netlink.h
index faf3282ad9fc666ced4bbdd476e803f9bf190e9d..3f735f2558db0e5b091bb7b0503a812ba4244af7 100644 (file)
--- a/netlink.h
+++ b/netlink.h
@@ -1,6 +1,8 @@
 #ifndef netlink_h
 #define netlink_h
 
+#include "ipaddr.h"
+
 #define DEFAULT_BUFSIZE 2048
 #define DEFAULT_MTU 1000
 #define ICMP_BUFSIZE 1024
@@ -11,13 +13,14 @@ struct netlink_client {
     void *dst;
     string_t name;
     uint32_t link_quality;
-    bool_t hard_routes;
+    uint32_t options;
     struct netlink_client *next;
 };
 
 struct netlink_route {
     struct subnet net;
     bool_t hard;
+    bool_t allow_route;
     bool_t up;
     bool_t kup;
     struct netlink_client *c;
@@ -38,7 +41,6 @@ struct netlink {
     uint32_t max_end_pad;
     struct subnet_list networks;
     struct subnet_list exclude_remote_networks;
-    uint32_t local_address; /* host interface address */
     uint32_t secnet_address; /* our own address */
     uint32_t mtu;
     struct netlink_client *clients;