Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reverse the order of the interfaces

Return the interfaces in the same order as pcap. Also mimics the order
returned by inet:getifaddrs.
  • Loading branch information...
commit 1b5f094e36d25f66e08848cb89b0097112de75a7 1 parent 9019c01
@msantos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/ewpcap.erl
View
2  src/ewpcap.erl
@@ -154,7 +154,7 @@ dev() ->
getifaddrs() ->
case pcap_findalldevs() of
{ok, Iflist} ->
- {ok, [ iface(N) || N <- Iflist ]};
+ {ok, [ iface(N) || N <- lists:reverse(Iflist) ]};
Error ->
Error
end.
Please sign in to comment.
Something went wrong with that request. Please try again.