Re: FTP server
- From: "John Spaith [MS]" <jspaith@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 14 Aug 2006 11:58:48 -0700
For the TCP checksum being off, either this is your
netmon/etherreal/whatever lying to you (I've seen some of them lie about
this) in which case it's not a big deal. If it is a real problem (maybe use
an alternate net sniffer to double check) then it could explain packets not
being received correctly.
For the SVS problems you mentioned before, have you made any other source
changes to the FTP server by any chance? I've never heard of issues with
these utilities, we test (indirectly) the daylights out of them so I don't
know off the top of my head what the problem could be.
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation
Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
"Ricco" <eric.dejonc@xxxxxxxxx> wrote in message
news:1155289162.781842.274590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
With the original ftpd, here is what i get by analysing :
(we can see different connection attempt with time)
The tcp checksum error is just because I think the checksum is
generated by the hardware.
No. Time Source Destination
Protocol Info
97 2.847478 191.0.48.94 255.255.255.255 UDP
Source port: 1025 Destination port: 65000
108 2.964454 191.0.48.94 255.255.255.255 UDP
Source port: 1026 Destination port: 60100
110 2.974422 191.0.48.94 255.255.255.255 UDP
Source port: 1027 Destination port: 65521
111 3.004583 191.0.48.94 255.255.255.255 UDP
Source port: 1028 Destination port: 60200
124 3.224177 191.0.48.94 255.255.255.255 UDP
Source port: 1029 Destination port: 60300
174 4.730031 191.0.132.13 191.0.48.94 TCP
3176 > ftp [SYN] Seq=0 Len=0 MSS=1460
175 4.731471 191.0.48.94 191.0.132.13 TCP
ftp > 3176 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
176 4.731501 191.0.132.13 191.0.48.94 TCP
3176 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT] Len=0
500 12.848110 191.0.48.94 255.255.255.255 UDP
Source port: 1025 Destination port: 65000
505 12.966786 191.0.48.94 255.255.255.255 UDP
Source port: 1026 Destination port: 60100
506 12.969947 191.0.48.94 255.255.255.255 UDP
Source port: 1027 Destination port: 65521
507 12.999867 191.0.48.94 255.255.255.255 UDP
Source port: 1028 Destination port: 60200
521 13.219715 191.0.48.94 255.255.255.255 UDP
Source port: 1029 Destination port: 60300
883 22.847040 191.0.48.94 255.255.255.255 UDP
Source port: 1025 Destination port: 65000
896 22.965720 191.0.48.94 255.255.255.255 UDP
Source port: 1026 Destination port: 60100
897 22.975443 191.0.48.94 255.255.255.255 UDP
Source port: 1027 Destination port: 65521
899 22.995628 191.0.48.94 255.255.255.255 UDP
Source port: 1028 Destination port: 60200
907 23.215239 191.0.48.94 255.255.255.255 UDP
Source port: 1029 Destination port: 60300
1199 32.847672 191.0.48.94 255.255.255.255 UDP
Source port: 1025 Destination port: 65000
1201 32.961253 191.0.48.94 255.255.255.255 UDP
Source port: 1026 Destination port: 60100
1202 32.971213 191.0.48.94 255.255.255.255 UDP
Source port: 1027 Destination port: 65521
1203 32.991157 191.0.48.94 255.255.255.255 UDP
Source port: 1028 Destination port: 60200
1213 33.210768 191.0.48.94 255.255.255.255 UDP
Source port: 1029 Destination port: 60300
1259 34.738141 191.0.132.13 191.0.48.94 TCP
3176 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
1260 34.739196 191.0.48.94 191.0.132.13 TCP
ftp > 3176 [ACK] Seq=1 Ack=2 Win=32768 Len=0
1297 35.733577 191.0.132.13 191.0.48.94 TCP
3178 > ftp [SYN] Seq=0 Len=0 MSS=1460
1298 35.734812 191.0.48.94 191.0.132.13 TCP
ftp > 3178 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
1299 35.734840 191.0.132.13 191.0.48.94 TCP
3178 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT] Len=0
2425 66.032591 191.0.132.13 191.0.48.94 TCP
3178 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
2426 66.033650 191.0.48.94 191.0.132.13 TCP
ftp > 3178 [ACK] Seq=1 Ack=2 Win=32768 Len=0
2513 66.733413 191.0.132.13 191.0.48.94 TCP
3182 > ftp [SYN] Seq=0 Len=0 MSS=1460
2514 66.734748 191.0.48.94 191.0.132.13 TCP
ftp > 3182 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
2515 66.734764 191.0.132.13 191.0.48.94 TCP
3182 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT] Len=0
2559 67.208733 191.0.48.94 191.0.132.13 FTP
Response: 220 Service ready for new user.
2560 67.208789 191.0.132.13 191.0.48.94 TCP
[TCP ACKed lost segment] 3176 > ftp [RST] Seq=2 Len=0
4315 96.736137 191.0.132.13 191.0.48.94 TCP
3182 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
4316 96.737131 191.0.48.94 191.0.132.13 TCP
ftp > 3182 [ACK] Seq=1 Ack=2 Win=32768 Len=0
4349 97.745731 191.0.132.13 191.0.48.94 TCP
3185 > ftp [SYN] Seq=0 Len=0 MSS=1460
4350 97.747098 191.0.48.94 191.0.132.13 TCP
ftp > 3185 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
4351 97.747126 191.0.132.13 191.0.48.94 TCP
3185 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT] Len=0
4367 98.262176 191.0.48.94 191.0.132.13 FTP
Response: 220 Service ready for new user.
4368 98.262230 191.0.132.13 191.0.48.94 TCP
3182 > ftp [RST] Seq=2 Len=0
5802 127.740286 191.0.132.13 191.0.48.94 TCP
3185 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
5803 127.741216 191.0.48.94 191.0.132.13 TCP
ftp > 3185 [ACK] Seq=1 Ack=2 Win=32768 Len=0
5846 128.734222 191.0.132.13 191.0.48.94 TCP
3192 > ftp [SYN] Seq=0 Len=0 MSS=1460
5847 128.735373 191.0.48.94 191.0.132.13 TCP
ftp > 3192 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
5848 128.735404 191.0.132.13 191.0.48.94 TCP
3192 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT] Len=0
7036 158.893356 191.0.132.13 191.0.48.94 TCP
3192 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
7037 158.894606 191.0.48.94 191.0.132.13 TCP
ftp > 3192 [ACK] Seq=1 Ack=2 Win=32768 Len=0
7080 159.893516 191.0.132.13 191.0.48.94 TCP
3193 > ftp [SYN] Seq=0 Len=0 MSS=1460
7081 159.894833 191.0.48.94 191.0.132.13 TCP
ftp > 3193 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
7082 159.894848 191.0.132.13 191.0.48.94 TCP
3193 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT] Len=0
7098 160.353496 191.0.48.94 191.0.132.13 FTP
Response: 220 Service ready for new user.
7099 160.353551 191.0.132.13 191.0.48.94 TCP
[TCP ACKed lost segment] 3185 > ftp [RST] Seq=2 Len=0
7943 189.898987 191.0.132.13 191.0.48.94 TCP
3193 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
7944 189.900135 191.0.48.94 191.0.132.13 TCP
ftp > 3193 [ACK] Seq=1 Ack=2 Win=32768 Len=0
20015 645.683149 191.0.132.13 191.0.48.94 TCP
sapdp12 > ftp [SYN] Seq=0 Len=0 MSS=1460
20016 645.684342 191.0.48.94 191.0.132.13 TCP
ftp > sapdp12 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=1460
20017 645.684374 191.0.132.13 191.0.48.94 TCP
sapdp12 > ftp [ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM INCORRECT]
Len=0
20439 663.362256 191.0.132.13 191.0.48.94 TCP
sapdp12 > ftp [FIN, ACK] Seq=1 Ack=1 Win=17520 [TCP CHECKSUM
INCORRECT] Len=0
20440 663.363406 191.0.48.94 191.0.132.13 TCP
ftp > sapdp12 [ACK] Seq=1 Ack=2 Win=32768 Len=0
Ricco wrote:
Hi,
In ftpd.cpp, I replaced
//cookie = ScheduleEvent(CFtpSession::ClientThreadProc, pFtpSession);
by
CFtpSession::ClientThreadProc(pFtpSession);
cookie = 1;
and that seems to work (for 1connection simultaneously). It's like I'm
having a problem with svs util. Strange, but I'm having problems also
with other applications I made, crashing for unknown reasons.
Thanks if somebody have a suggestion.
Eric
Ricco wrote:
This is the traces I got (with some traces from me)
TELNETD: DllMain attached
TELNETD: Caller executable = 1
TEL_Init(1)
TEL_IOControl(0x1F41158, 17039404, 0x0, 0, 0x0, 0, 0xC02EFB4)
TEL_IOControl(0x1F41158, 17039404, 0xC02F238, 16, 0x0, 0, 0xC02ED4C)
TEL_IOControl(0x1F41158, 17039416, 0xC02F570, 4, 0x0, 0, 0xC02EFB4)
TELNETD:TEL_IOControl(IOCTL_SERVICE_STARTED), setting state =
SERVICE_STATE_ON
FTPD: DllMain attached
FTP_Init(0)
FTPD: Starting Ftp server
Starting ftp server
Added virtual root \Temp for alias /Temp
FTPD: Calling select()....
Then I try to connect :
FTPD: Received 1 incoming connections!!
loop j = 0
i = 0
CFtpSession()
FTPD: FtpSession created - pointer = 335e0
SetVroots()
FTPD: ScheduleEvent() - cookie = 1
FTPD: Calling select()....
Then I try to connect again :
FTPD: Received 1 incoming connections!!
loop j = 0
i = 1
CFtpSession()
FTPD: FtpSession created - pointer = 34a50
SetVroots()
FTPD: ScheduleEvent() - cookie = 2
FTPD: Calling select()....
ClientThreadProc()
HandleSession()
READY_FOR_NEW_USER message replied to sock 5
ASSERT(gpFtpd) OK
for(;;)
Connection not closed abruptly
Received commands
nCount= -1
done
CloseConnection()
Connection closed
~CFtpSession()
Ricco wrote:
Hi,
I have a lot of difficulties to have a connection:
I:\>ftp 191.0.48.94
Connecté à 191.0.48.94.
Connexion fermée par l'hôte distant.
After some investigations, it seems that after the ScheduleEvent()
call, very often, the function is not scheduled, and sometimes, it is.
If the function is scheduled, it seems that in HandleSession() when a
command is received, the nCount value is equal to -1.
Has somebody already got a problem related to ScheduleEvent? I
could'nt
find any documentation.
Thahks in advance.
John Spaith [MS] wrote:
FYI, the way you'd do this is via the registry [HKLM\COMM\FTPD]
IsEnabled:
DWORD 1.
--
John Spaith
Development Lead, Windows CE
Microsoft Corporation
Check out the CE Networking Team Blog at
http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All
rights
reserved.
"Ulrich Eckhardt" <eckhardt@xxxxxxxxxxxxxx> wrote in message
news:j7dho3-t6u.ln1@xxxxxxxxxxxxxxxxxxxxxxxxx
ash wrote:
I am tried to acess the FTP server on my Windows 2000 based PC.it
shows
me the " Connection refused".
Pls tell me anybody how to connect the FTP server on Windows CE.
By default, it doesn't accept any connections because FTP is an
inherently
insecure service. You need to configure it to accept connections
first.
Uli
.
- Follow-Ups:
- Re: FTP server
- From: Ricco
- Re: FTP server
- References:
- Re: FTP server
- From: Ricco
- Re: FTP server
- From: Ricco
- Re: FTP server
- From: Ricco
- Re: FTP server
- From: Ricco
- Re: FTP server
- Prev by Date: Re: XSLT function document() not supported?
- Next by Date: Not getting my interrupt service routine called
- Previous by thread: Re: FTP server
- Next by thread: Re: FTP server
- Index(es):
Relevant Pages
|