|
Re: Iopkt driver stops reading after six packets
|
03/23/2009 2:31 PM
post25040
|
Re: Iopkt driver stops reading after six packets
> I think 'm' below should be 'm2' but it probably wouldn't cause this
> issue.
>
> //Copy the fragment into the transmit buffer
> memcpy((sam->sc_pkt_buf)+len, m->m_data, m->m_len);
> len+=m2->m_len; //Move the pointer to then end of the data in the buffer
You were right about that, I went through a few different iterations trying to track this down and that got lost in the
shuffle when I tried to create a test case with the sample driver to demonstrate the problem.
>
> I don't see anything obvious. Is the stack still responding
> in general (localhost)? Does the debugger show anything?
>
> -seanb
Pidin shows the same info before and after the mount
364560 1 /boot/io-pkt-v6-hc 21r SIGWAITINFO
364560 2 /boot/io-pkt-v6-hc 21r READY
364560 3 /boot/io-pkt-v6-hc 21r RECEIVE 16
364560 4 /boot/io-pkt-v6-hc 21r RECEIVE 20
The stack is still responding. If I have a telnet client connected while this is going on, it never stops working.
I did notice though, if I have an ftp client connected when I mount the sample driver, the ftp session will disconnect
after doing the mount. This even happens with the original sample driver code with no changes made to it whatsoever.
I can reconnect the ftp client, but after reconnecting, if I try to transfer a file, the transfer will fail, and the
client will disconnect again.
If I do an ifconfig sam0 destroy, I can transfer files with the ftp client again.
It seems this depends too, in whether or not data transfers have taken place. If the ftp client is just connected but I
haven't transferred anything, the connection doesn't get broken. I can move around, do directory listings, etc.. with no
issues.
Even while the ftp client is having these issues, the telnet client has no problems at all.
Since you have verified I am not leaving anything out, I will try the debugger next to see if it will reveal any
additional information.
AG
|
|
|
|
Re: Iopkt driver stops reading after six packets
|
03/25/2009 3:11 PM
post25238
|
Re: Iopkt driver stops reading after six packets
> I don't see anything obvious. Is the stack still responding
> in general (localhost)? Does the debugger show anything?
>
> -seanb
Would it be safe to make the assumption that if you compile and run this exact same sample driver that you don't see it
stop after reading six packets? You see it continually displaying packets to stdout. If this is true, it seems I should
be looking at something other than the driver code to identify the problem.
AG
|
|
|