Permalink
Browse files

Add the netlink family

  • Loading branch information...
1 parent b2c425f commit 9b0336dfda0962eeb619972d30e0821eeb25c957 @msantos committed Apr 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/procket.erl
View
@@ -304,6 +304,7 @@ family(inet6) ->
{unix, darwin} -> 30;
{unix, freebsd} -> 28
end;
+family(netlink) -> 16;
family(packet) -> 17;
family(Proto) when Proto == local; Proto == unix; Proto == file -> 1;
@@ -315,6 +316,7 @@ family(10) ->
{unix, linux} -> inet6;
{unix, _} -> ccitt
end;
+family(16) -> netlink;
family(17) ->
case os:type() of
{unix, linux} -> packet;

0 comments on commit 9b0336d

Please sign in to comment.