TUN_OPEN
if (sc->tun_flags & TUN_OPEN)
sc->tun_flags |= TUN_OPEN;
sc->tun_flags &= ~TUN_OPEN;
#define TUN_READY (TUN_OPEN | TUN_INITED)