chiark / gitweb /
Import release 0.1.9
[secnet.git] / netlink.h
index 077e828ef6c6c246efd5a481c9e5d06da1672c22..4cc80af41f6f6139babed6377d8b57ae07ae5fcc 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
@@ -21,6 +23,7 @@ struct netlink_route {
     bool_t allow_route;
     bool_t up;
     bool_t kup;
+    uint32_t quality; /* provided by client */
     struct netlink_client *c;
 };
 
@@ -39,7 +42,9 @@ struct netlink {
     uint32_t max_end_pad;
     struct subnet_list networks;
     struct subnet_list exclude_remote_networks;
-    uint32_t secnet_address; /* our own address */
+    uint32_t secnet_address; /* our own address, or possibly the address of
+                               the other end of a point-to-point link */
+    bool_t ptp;
     uint32_t mtu;
     struct netlink_client *clients;
     netlink_deliver_fn *deliver_to_host; /* Provided by driver */