From 5a1154d8c241130f506cf6f65b5e97ec197b28c9 Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Mon, 16 Apr 2012 14:17:31 +0100 Subject: eprotonosupport support. --- src/rabbit_networking.erl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl index 825d1bb1..f0c75d23 100644 --- a/src/rabbit_networking.erl +++ b/src/rabbit_networking.erl @@ -446,16 +446,19 @@ ipv6_status(TestPort) -> {ok, LSock4} -> gen_tcp:close(LSock4), single_stack; %% IPv6-only machine. Welcome to the future. - {error, eafnosupport} -> ipv6_only; + {error, eafnosupport} -> ipv6_only; %% Linux + {error, eprotonosupport}-> ipv6_only; %% FreeBSD %% Dual stack machine with something already %% on IPv4. {error, _} -> ipv6_status(TestPort + 1) end end; - {error, eafnosupport} -> - %% IPv4-only machine. Welcome to the 90s. + %% IPv4-only machine. Welcome to the 90s. + {error, eafnosupport} -> %% Linux ipv4_only; + {error, eprotonosupport} -> %% FreeBSD + ipv4_only; + %% Port in use {error, _} -> - %% Port in use ipv6_status(TestPort + 1) end. -- cgit v1.2.1