On Thu, Mar 20, 2008 at 09:10:10PM +0100, vincent-perrier wrote:
> I am doing a network simulator replacing all the cables between
> network machine interfaces by a logical switch in a single process.
> I would need also to simulate serial cables between /dev/ttyx of a
> machine and /dev/ttyz of another machine, how is it possible?
> (a machine is an uml machine, of course)

You can use a host pts device for this.  Have one UML hook itself up
to the master side (conx=pts) and have the the other hook itself up to
the slave side (I think it's a tty, so conx=tty:/dev/pts/n once you've
asked the first UML what pts device it got).  Host devices aren't
opened until something inside the UML opens the UML /dev/ttyx, so
there will have to be a getty or something running on it before you
ask about what host pts device it got.

                    Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to