Sorry, the report came out without an explanatory text. It follows now: Below is the log of an FTP connection started from the GUEST (qemu started with -net user):
Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "230 Login successful." Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "SYST" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "215 UNIX Type: L8" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "PWD" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "257 "/"" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "TYPE I" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "200 Switching to Binary mode." Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "REST 0" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "350 Restart position accepted (0)." Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "PORT 10,0,2,2,12,146" Thu Jan 4 18:10:18 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "500 Illegal PORT command." Thu Jan 4 18:10:29 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "PWD" Thu Jan 4 18:10:29 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "257 "/"" Thu Jan 4 18:10:29 2007 [pid 14469] [ftp] FTP command: Client "X.X.X.X", "PORT 10,0,2,2,15,107" Thu Jan 4 18:10:29 2007 [pid 14469] [ftp] FTP response: Client "X.X.X.X", "500 Illegal PORT command." It is seen that the virtual address 10.0.2.2 is used in the PORT command instead of the host address. The attached patch enables FTP emulation on 21 port in the slirp code. It also corrects a couple of slirp bugs with obtaining the right host IP. TODO: add a command line option. ========================================= The patch itself is in the original report. -- Stanislav -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]