Skip to contentSkip to conversation

interesting tftp experiments

Qemu-devel Christian MICHON 2 participants 2 messages Jun 27, 2005 – Jun 29, 2005

lore
Share & tools
lore
#0 lore raw

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.

Signature · 1 line
Christian
#1 lore raw
Quoted 7 lines · Christian MICHON

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

You shouldn't need to do this if you tftp to the hosts real address, only if you insists on using the virtual slirp tftp address..

Regards
Henrik