summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorJuanJo Ciarlante <jjo@google.com>2009-11-11 15:35:31 +0100
committerJuanJo Ciarlante <juanjosec@gmail.com>2011-03-25 13:30:30 +0100
commit9d4c64b584173789780431e5fd5acf977cf72e9d (patch)
tree2ded8f89e663eacce051a30f5a353ebba7bd5cd6 /socket.h
parentefa85c8b086121dc5df0e07b110751077e3d1ec4 (diff)
downloadopenvpn-9d4c64b584173789780431e5fd5acf977cf72e9d.tar.gz
openvpn-9d4c64b584173789780431e5fd5acf977cf72e9d.tar.xz
openvpn-9d4c64b584173789780431e5fd5acf977cf72e9d.zip
* polished redirect-gateway (ipv4 on ipv6 endpoints) support
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index f864ab1..5f1e800 100644
--- a/socket.h
+++ b/socket.h
@@ -383,6 +383,12 @@ void setenv_link_socket_actual (struct env_set *es,
void bad_address_length (int actual, int expected);
+#ifdef USE_PF_INET6
+/* IPV4_INVALID_ADDR: returned by link_socket_current_remote()
+ * to ease redirect-gateway logic for ipv4 tunnels on ipv6 endpoints
+ */
+#define IPV4_INVALID_ADDR 0xffffffff
+#endif
in_addr_t link_socket_current_remote (const struct link_socket_info *info);
void link_socket_connection_initiated (const struct buffer *buf,