[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remoteadd
From: |
Goldschmidt Simon |
Subject: |
RE: [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remoteaddr/port connection state |
Date: |
Fri, 20 Apr 2007 13:25:55 +0200 |
> > We have already talk about that, but I think that two sequential
api,
> > with one based on the other one, is not a good idea: I think it will
> > be better to
> > keep the BSD one, and to add some extra functions for zero-copy. So,
> > most of
> > the code will be the same, footprint will be reduced (for BSD users,
> > of course :) ), less code will have to be maintain, keep source code
> > compatibility with most of open source applications...). But this
last
> > comment is another subject (and a bigger task)... (if you want to
> > continue to
> > talk about that, I propose to continue on the forum).
>
> As you probably know I disagree :-). I don't think you can
> sensibly add zero copy to a BSD socket API. At the very
> least, once you try, you haven't got a BSD socket API. There
As only the send/recv functions would have to be changed so that
zero-copy can be
included, this wouldn't break BSD-compatibility but just add additional
functions to it.
> might be an argument for implementing BSD directly over the
> raw API, but if it's doing largely the same things as the
> netconn API, that wouldn't give much benefits and makes
It could speed up BSD performance! Anyway, it would break the existing
netconn api,
of course, so no way to get that soon.
Although I'd like to know what the performance gain would be for the
sockets API,
maybe I'll test that one day :)
> things larger if anyone uses both APIs at the same time.
Hm, does anyone do that? An if we'd add zero-copy functions to BSD. You
wouldn't
need 2 similar APIs that only differ in zero-copy or not.
Simon
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Frédéric Bernon, 2007/04/05
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Frédéric Bernon, 2007/04/09
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Jonathan Larmour, 2007/04/11
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Frédéric Bernon, 2007/04/11
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Jonathan Larmour, 2007/04/11
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Frédéric Bernon, 2007/04/12
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Jonathan Larmour, 2007/04/12
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Frédéric Bernon, 2007/04/12
- [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remote addr/port connection state, Simon Goldschmidt, 2007/04/20
- RE: [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remoteaddr/port connection state,
Goldschmidt Simon <=
- RE: [lwip-devel] [bug #19162] lwip_sendto: possible to corrupt remoteaddr/port connection state, Kieran Mansley, 2007/04/20
- RE: [lwip-devel] [bug #19162] lwip_sendto: possible to corruptremoteaddr/port connection state, Goldschmidt Simon, 2007/04/20
- Re: [lwip-devel] [bug #19162] lwip_sendto: possible to corruptremoteaddr/port connection state, Jonathan Larmour, 2007/04/20