MINOR: tproxy: add support for FreeBSD
FreeBSD uses (IPPROTO_IP, IP_BINDANY) and (IPPROTO_IPV6, IPV6_BINDANY)
to enable transparent proxy on a socket.
This patch adds support for the relevant setsockopt() calls.
diff --git a/src/haproxy.c b/src/haproxy.c
index d5606fa..ee0bd65 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -327,6 +327,12 @@
#if defined(IP_FREEBIND)
" IP_FREEBIND"
#endif
+#if defined(IP_BINDANY)
+ " IP_BINDANY"
+#endif
+#if defined(IPV6_BINDANY)
+ " IPV6_BINDANY"
+#endif
"\n");
#endif
putchar('\n');