[Patch v2 2/2] idiag: add a copy of linux/tcp.h

Thomas Graf tgraf at suug.ch
Mon Nov 24 03:22:51 PST 2014


On 11/20/14 at 04:00pm, Cong Wang wrote:
> (Sorry for the delay, I missed this email)
> 
> On Fri, Nov 7, 2014 at 3:28 AM, Thomas Graf <tgraf at suug.ch> wrote:
> > We should provide a new API though which takes a pointer to a tcp_info
> > plus length, initializes it properly and copies what is available.
> >
> > The new API should be referred to in the doc of the old API.
> 
> Yeah, we should have a better API, but we still have to keep
> ABI compatibility.

Yes. What I'm saying is to keep the old API for compatibility and
introduce a new function and encourage users to switch over to the
safe function.



More information about the libnl mailing list