[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] uIP: writev() and tap
From: |
Felipe Massia Pereira |
Subject: |
[lwip-users] Re: [lwip] uIP: writev() and tap |
Date: |
Wed, 08 Jan 2003 23:09:59 -0000 |
Hello, Adam!
On Fri, 22 Feb 2002, Adam Dunkels wrote:
> The writev will gather the two pieces of data in a single write() since the
> headers and data can be from different places in memory. There is a bug in
> Linux < 2.4.18 that makes writev() on a tapdev misbehave. Eddie C. Dost
> reported this uIP bug a few days ago and also sent in a bug report to Linus
> so that upcoming Linux versions will work better with writev() and the tap
> device.
I'm sorry for the duplicate report.
> The simplest workaround is just to copy the data into a new buffer and do a
> write() on that buffer:
>
> #ifdef linux
> {
> char tmpbuf[UIP_BUFSIZE];
> int i;
I did something like this and it's working perfectly now!
thanks!
Felipe
[This message was sent through the lwip discussion list.]