X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=netlink.h;h=b24c6ef241837ecda08f36cbc3473d6b6fa314d5;hp=ffefd8082ef67f2b662f5391b9baf628080c9e16;hb=e4cfe5379b48e36de6de4deb0832837be6d60ca3;hpb=1caa23ff879cec7f8f36b32a987f0610291ef177 diff --git a/netlink.h b/netlink.h index ffefd80..b24c6ef 100644 --- a/netlink.h +++ b/netlink.h @@ -31,6 +31,10 @@ struct netlink_client { struct netlink_client *next; }; +/* options field in 'struct netlink_client' */ +#define OPT_SOFTROUTE 1 +#define OPT_ALLOWROUTE 2 + typedef bool_t netlink_route_fn(void *cst, struct netlink_client *routes); /* Netlink provides one function to the device driver, to call to deliver @@ -41,11 +45,10 @@ struct netlink { closure_t cl; void *dst; /* Pointer to host interface state */ cstring_t name; - int32_t max_start_pad; - int32_t max_end_pad; struct ipset *networks; /* Local networks */ struct subnet_list *subnets; /* Same as networks, for display */ struct ipset *remote_networks; /* Allowable remote networks */ + uint32_t local_address; /* host interface address */ uint32_t secnet_address; /* our own address, or the address of the other end of a point-to-point link */ bool_t ptp;