This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] New getifaddrs implementation


Hi,

here is the next try of a IPv6 ready getifaddrs() implementation.
I make only one calloc for the whole struct given back to the caller,
but it is impossible to replace the internal used mallocs with alloca.
I have a version using alloca, but on most of my machines it will
overwrite the stack because I get too much data from the kernel.

And I will fallback to Rolands implementation, if netlink support
is missing from running kernel.

  Thorsten
-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk at suse dot de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

Attachment: glibc-2.3.ifaddrs.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]