On Monday 28 February 2005 06:25, Jim Carter wrote: > On Mon, 28 Feb 2005, Adil Mujeeb, Noida wrote: > > > But if I telnet with : > > > telnet ::1 9001 > > > it gives message connection refused. > > > > > >>> I have mentioned that "I have built the UML binary with ipv6 > > >>> support". > > > > When compiling the UML, i have selected the option ipv6 support and add > > it in the binary itself. Iam telneting on the host's port 9001. > > If you execute "telnet ::1 9001" on the guest, it will talk to the guest's > port. > > > To test ipv6 on the guest, you could configure inetd or xinetd on the > > guest to serve telnet. > > > > >> How to configure inetd or xinetd on the guest os for ipv6?? > > If you don't have one of these installed already on the guest, the > man page says you can test in.telnetd in debug mode with a command > line like this: > > in.telnetd -debug -6 23 & > > -debug to make it independent of inetd; -6 for ipv6 (or -4 for ipv4); 23 is > the port (which has to be specified explicitly in debug mode).
Ok, found the problem. When using the port transport, UML starts in.telnetd which will wait for connections. The user has no possibility to specify the command line used to start in.telnetd, so your answer, while leading to the good road, is not applicable. The connection is done in port_connection() inside arch/um/drivers/port_user.c. The default options don't include IPV6 settings. Probably, adding -6 to them will make it work (or anyway, the solution will be based on this idea). I.e., I guess, you must modify this: char *argv[] = { "/usr/sbin/in.telnetd", "-L", "/usr/lib/uml/port-helper", NULL }; to get this: char *argv[] = { "/usr/sbin/in.telnetd", "-6", "-L", "/usr/lib/uml/port-helper", NULL }; (even if it's passed to run_helper, the semantics for argv are the same ones to call execve). -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user