X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=blobdiff_plain;f=netlink.h;h=3f735f2558db0e5b091bb7b0503a812ba4244af7;hp=faf3282ad9fc666ced4bbdd476e803f9bf190e9d;hb=7138d0c54cd2212439434d27cb2d6ea775c3039b;hpb=9d3a4132788b198345116624761c12ed7bc936b6 diff --git a/netlink.h b/netlink.h index faf3282..3f735f2 100644 --- 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;