summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2015-09-11 17:33:40 +0200
committerGert Doering <gert@greenie.muc.de>2015-09-14 13:09:44 +0200
commitc0da18cd7cca481fd918620331540e565f11ce23 (patch)
tree98989551e6662aa4a5b7f6dee8f2e458c478fdfc
parent0ad73859420379ec45e159e5e7bd5bb7be9382fe (diff)
downloadopenvpn-c0da18cd7cca481fd918620331540e565f11ce23.zip
openvpn-c0da18cd7cca481fd918620331540e565f11ce23.tar.gz
openvpn-c0da18cd7cca481fd918620331540e565f11ce23.tar.xz
Add route_ipv6_gateway* data structures for rgi6 support.
route_gateway_address -> route_ipv6_gateway_address route_gateway_info -> route_ipv6_gateway_info Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Arne Schwabe <arne@rfc2549.org> Message-Id: <1441985627-14822-4-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/10088
-rw-r--r--src/openvpn/route.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/openvpn/route.h b/src/openvpn/route.h
index 7e96a2f..5ab5f98 100644
--- a/src/openvpn/route.h
+++ b/src/openvpn/route.h
@@ -177,6 +177,34 @@ struct route_gateway_info {
struct route_gateway_address addrs[RGI_N_ADDRESSES]; /* local addresses attached to iface */
};
+struct route_ipv6_gateway_address {
+ struct in6_addr addr_ipv6;
+ int netbits_ipv6;
+};
+
+struct route_ipv6_gateway_info {
+/* RGI_ flags used as in route_gateway_info */
+ unsigned int flags;
+
+ /* gateway interface */
+# ifdef WIN32
+ DWORD adapter_index; /* interface or ~0 if undefined */
+#else
+ char iface[16]; /* interface name (null terminated), may be empty */
+#endif
+
+ /* gateway interface hardware address */
+ uint8_t hwaddr[6];
+
+ /* gateway/router address */
+ struct route_ipv6_gateway_address gateway;
+
+ /* address/netmask pairs bound to interface */
+# define RGI_N_ADDRESSES 8
+ int n_addrs; /* len of addrs, may be 0 */
+ struct route_ipv6_gateway_address addrs[RGI_N_ADDRESSES]; /* local addresses attached to iface */
+};
+
struct route_list {
# define RL_DID_REDIRECT_DEFAULT_GATEWAY (1<<0)
# define RL_DID_LOCAL (1<<1)