summaryrefslogtreecommitdiff
path: root/src/network
AgeCommit message (Collapse)AuthorLines
2011-04-12optimize ntohl etc. in terms of bswap functionsRich Felker-20/+12
we can do this without violating the namespace now that they are macros/inline functions rather than extern functions. the motivation is that gcc was generating giant, slow, horrible code for the old functions, and now generates a single byte-swapping instruction.
2011-04-08workaround broken msghdr struct on 64bit linuxRich Felker-0/+21
POSIX clearly specifies the type of msg_iovlen and msg_controllen, and Linux ignores it and makes them both size_t instead. to work around this we add padding (instead of just using the wrong types like glibc does), but we also need to patch-up the struct before passing it to the kernel in case the caller did not zero-fill it. if i could trust the kernel to just ignore the upper 32 bits, this would not be necessary, but i don't think it will ignore them...
2011-04-08fix ipv6 address printing: 2001 appeared as 201, etc.Rich Felker-3/+5
2011-04-08fix broken dns response parsing code that made most ipv6 lookups failRich Felker-4/+6
2011-04-08return the requested string as the "canonical name" for numeric addressesRich Felker-0/+1
previously NULL was returned in ai_canonname, resulting in crashes in some callers. this behavior was incorrect. note however that the new behavior differs from glibc, which performs reverse dns lookups. POSIX is very clear that a reverse DNS lookup must not be performed for numeric addresses.
2011-04-07fix uninitialized variables in dns lookup codeRich Felker-2/+2
2011-04-06add _res (__res_state()) dummyRich Felker-0/+9
2011-04-05implement if_indextoname and if_nametoindex functionsRich Felker-0/+36
2011-03-25fix all implicit conversion between signed/unsigned pointersRich Felker-1/+1
sadly the C language does not specify any such implicit conversion, so this is not a matter of just fixing warnings (as gcc treats it) but actual errors. i would like to revisit a number of these changes and possibly revise the types used to reduce the number of casts required.
2011-02-15cleanup socketcall syscall interface to ease porting to sane(r) archsRich Felker-94/+17
2011-02-14another pointer signedness fixRich Felker-1/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+1570