Re: ctl_enqueuedata bug?
Re: ctl_enqueuedata bug?
- Subject: Re: ctl_enqueuedata bug?
- From: Vincent Lubet <email@hidden>
- Date: Mon, 21 Mar 2005 09:12:08 -0800
Vinnie,
We won't discuss Tiger on a public mailing list, remember that Tiger
is under NDA
Thanks,
Vincent
On Mar 21, 2005, at 9:05 AM, Vinnie Moscaritolo wrote:
I came across what looks like a bug in calling tl_enqueuedata()
from an NKE .
(in build 8A414)
My NKE communicates with my App via a custom protocol , the second
longword of the protocol is the length of the data that follows. I
use
this length to determine how much more data to read from my App.
for example the message
0000 0000 0000 000F
indicates that I need to read 15 more bytes.
I assemble the complete message from my NKE and send it using
tl_enqueuedata()
but on the Application side, whe I do a read/rcv I get what looks
like buffer
corruption.. for example, If I send the following six messages.
0: 0000 0000 0000 000F 5261 6262 6974 2046 ........Rabbit.FOO.FOO.
0: 0000 0001 0000 000F 5262 6262 6974 2046 ........Rbbbit.FOO.FOO.
0: 0000 0002 0000 000F 5263 6262 6974 2046 ........Rcbbit.FOO.FOO.
0: 0000 0003 0000 000F 5264 6262 6974 2046 ........Rdbbit.FOO.FOO.
0: 0000 0006 0000 000F 5265 6262 6974 2046 ........Rebbit.FOO.FOO.
0: 0000 0007 0000 000F 5266 6262 6974 2046 ........Rfbbit.FOO.FOO.
on the receive side I see
rcv 8 bytes
0: 0000 0000 0000 000F ........
rcv 15 bytes
0: 0000 0001 0000 000F 5262 6262 6974 20 ........Rbbbit.
rcv 8 bytes
0: 0000 0002 0000 000F ........
rcv 15 bytes
0: 0000 0003 0000 000F 5264 6262 6974 20 ........Rdbbit.
rcv 8 bytes
0: 0000 0006 0000 000F ........
rcv 15 bytes
0: 0000 0007 0000 000F 5266 6262 6974 20 ........Rfbbit.
It almost looks as if the recv/read is throwing away the rest
of the mbuf after I read the first 8 bytes..
I noticed that on the list a few years ago.. could it be that this
function was
never fixed..?
http://lists.apple.com/archives/darwin-kernel/2002/Oct/msg00029.html
If so, I will file a bug this morning..
--
Vinnie Moscaritolo ITCB-IMSH
PGP: 3F903472C3AF622D5D918D9BD8B100090B3EF042
-------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden