Permalink
Browse files

Linux: ignore unknown tun/tap flags

  • Loading branch information...
1 parent dd58326 commit cfb4edc99d1d7b545ebcaef5222479d58476a374 @msantos committed Jun 20, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/tunctl_linux.erl
View
3 src/tunctl_linux.erl
@@ -143,7 +143,8 @@ flag(tap) -> ?IFF_TAP;
flag(no_pi) -> ?IFF_NO_PI;
flag(one_queue) -> ?IFF_ONE_QUEUE;
flag(vnet_hdr) -> ?IFF_VNET_HDR;
-flag(tun_excl) -> ?IFF_TUN_EXCL.
+flag(tun_excl) -> ?IFF_TUN_EXCL;
+flag(_) -> 0.
set_flag(FD, Dev, Flag) ->
tunctl:ioctl(FD, ?SIOCSIFFLAGS,

0 comments on commit cfb4edc

Please sign in to comment.