Skip to content

Commit

Permalink
Fix IP family match
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Feb 19, 2017
1 parent 96d256f commit 7480f33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pkt.erl
Expand Up @@ -392,10 +392,10 @@ ipproto(N) ->
family(?PF_INET) -> ipv4;
family(Family) ->
case {os:type(), Family} of
{{unix,darwin}, 30} -> inet6;
{{unix,freebsd}, 28} -> inet6;
{{unix,netbsd}, 24} -> inet6;
{{unix,openbsd}, 24} -> inet6
{{unix,darwin}, 30} -> ipv6;
{{unix,freebsd}, 28} -> ipv6;
{{unix,netbsd}, 24} -> ipv6;
{{unix,openbsd}, 24} -> ipv6
end.

%%
Expand Down

0 comments on commit 7480f33

Please sign in to comment.