Changeset 22873 in vbox for trunk/src/VBox/Devices/Network/slirp/libalias
- Timestamp:
- Sep 9, 2009 6:38:18 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 52129
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/libalias/alias_ftp.c
r22452 r22873 676 676 if (ftp_message_type == FTP_PORT_COMMAND) { 677 677 /* Generate PORT command string. */ 678 #ifndef VBOX 678 679 sprintf(stemp, "PORT %d,%d,%d,%d,%d,%d\r\n", 679 680 a1, a2, a3, a4, p1, p2); 681 #else 682 RTStrPrintf(stemp, sizeof(stemp), "PORT %d,%d,%d,%d,%d,%d\r\n", 683 a1, a2, a3, a4, p1, p2); 684 #endif 680 685 } else { 681 686 /* Generate 227 reply string. */ 687 #ifndef VBOX 682 688 sprintf(stemp, 683 689 "227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)\r\n", 684 690 a1, a2, a3, a4, p1, p2); 691 #else 692 RTStrPrintf(stemp, sizeof(stemp), 693 "227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)\r\n", 694 a1, a2, a3, a4, p1, p2); 695 #endif 685 696 } 686 697 break; 687 698 case FTP_EPRT_COMMAND: 688 699 /* Generate EPRT command string. */ 700 #ifndef VBOX 689 701 sprintf(stemp, "EPRT |1|%d.%d.%d.%d|%d|\r\n", 690 702 a1, a2, a3, a4, ntohs(alias_port)); 703 #else 704 RTStrPrintf(stemp, sizeof(stemp), "EPRT |1|%d.%d.%d.%d|%d|\r\n", 705 a1, a2, a3, a4, ntohs(alias_port)); 706 #endif 691 707 break; 692 708 case FTP_229_REPLY: 693 709 /* Generate 229 reply string. */ 710 #ifndef VBOX 694 711 sprintf(stemp, "229 Entering Extended Passive Mode (|||%d|)\r\n", 695 712 ntohs(alias_port)); 713 #else 714 RTStrPrintf(stemp, sizeof(stemp), "229 Entering Extended Passive Mode (|||%d|)\r\n", 715 ntohs(alias_port)); 716 #endif 696 717 break; 697 718 }
Note:
See TracChangeset
for help on using the changeset viewer.