Fixed bug in illumos tun adapter