Skip to content
Browse files

Retrieve BIOCGSEESENT status

  • Loading branch information...
1 parent 687f8aa commit d24b8b5638de616125f8f36ffc923031324b2a21 @msantos committed Apr 19, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/bpf.erl
View
8 src/bpf.erl
@@ -118,6 +118,14 @@ ctl(Socket, hdrcmplt) ->
Error
end;
+ctl(Socket, seesent) ->
+ case procket:ioctl(Socket, ?BIOCGSEESENT, <<1:32/native>>) of
+ {ok, Bool} ->
+ {ok, bool(Bool)};
+ Error ->
+ Error
+ end;
+
%ctl(Socket, timeout) ->
% Size = sizeof(timeval),
% procket:ioctl(Socket, ?BIOCGRTIMEOUT, <<0:Size/bytes>>);

0 comments on commit d24b8b5

Please sign in to comment.
Something went wrong with that request. Please try again.