All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] interesting tftp experiments
@ 2005-06-27 14:25 Christian MICHON
  2005-06-29 23:45 ` Henrik Nordstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Christian MICHON @ 2005-06-27 14:25 UTC (permalink / raw)
  To: qemu-devel

Hi,

since I was able on a windows host to connect (but no transfer)
on a ftp server over slirp, I thought I could do the same:
over slirp, connect to a true tftp server, not the layer provided
in slirp/tftp.c

In order to do so, I had to do minor patches to v0.7.0
- remove reference to tftp in vl.c
- remove reference to tftp in slirp/udp.c
- remove tftp.o linkage

By doing so, I have a ~true~ tftp-over-slirp qemu. I tried it
and yes I can READ & WRITE to a small tftp server I
found for windows host (http://tftpd32.jounin.net).

I still have some problems though. When the read or
write command is sent, it apparently somehow jams
the slirp channel. The read or write happens, but
not immediately (around 2 sec delay). 

The bad news is that so far, I've manage per session
of qemu either one write, or one read. If someone
has the knowledge of what could be wrong in this
part of slirp, please correct the flaws of what I just
found out.

At least, we should be able to transfer back and
forth files lesser than 32M.

-- 
Christian

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [Qemu-devel] interesting tftp experiments
@ 2005-06-28 10:46 CoMiKe
  2005-06-28 11:40 ` Christian MICHON
  2005-06-29 23:43 ` Henrik Nordstrom
  0 siblings, 2 replies; 5+ messages in thread
From: CoMiKe @ 2005-06-28 10:46 UTC (permalink / raw)
  To: qemu-devel

> since I was able on a windows host to connect (but no transfer)
> on a ftp server over slirp, I thought I could do the same:
> over slirp, connect to a true tftp server, not the layer provided
> in slirp/tftp.c

Hi!

I've never got problems connecting to an FTP server placed on my host computer.

Probably your problem is a port problem.
You have to options:

- If connecting on PORT mode in your FTP client, port 20 should be
redirected to your QEmu session through the -redir option.
- If you use passive mode on your FTP client (PASV) you don't need to
redirect any ports to QEmu, because in passive mode, the server is the
one that opens the port for data communication.

I'm using an small FTP server for Windows (SlimFTPd,
http://www.whitsoftdev.com/slimftpd/). It has an Apache like config
file, and total size is 51 Kb. It supports both PORT and PASV mode.

Probably you already knew about all this FTP topics, excuse me in that case.

Best Regards.
CoMiKe

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-30  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 14:25 [Qemu-devel] interesting tftp experiments Christian MICHON
2005-06-29 23:45 ` Henrik Nordstrom
  -- strict thread matches above, loose matches on Subject: below --
2005-06-28 10:46 CoMiKe
2005-06-28 11:40 ` Christian MICHON
2005-06-29 23:43 ` Henrik Nordstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.