svn commit: [26153] trunk/uClibc/libc/inet

vda at uclibc.org vda at uclibc.org
Sat Apr 18 23:12:41 UTC 2009


Author: vda
Date: 2009-04-18 23:12:40 +0000 (Sat, 18 Apr 2009)
New Revision: 26153

Log:
libc/inet/resolv.c:

Collapse __length_dotted into __length_question (the sole user of it).
Make __length_question and __decode_answer static, they are used only once
  by only one function.
Delete __decode_question, it is unused.
All in all, four less .o files in libc.a.
Document what __dns_lookup returns (length of the packet).
Propagate packet len into __decode_answer, __length_question, __decode_dotted
  and check that we do not use data past the end of the packet.
Rename some variables/parameters to better names (len -> packet_len,
  data -> packet etc).
Add mini-doc how DNS packets look like.
Style cleanup.



Modified:
   trunk/uClibc/libc/inet/Makefile.in
   trunk/uClibc/libc/inet/resolv.c


Changeset:

Sorry, the patch is too large to include (1131 lines).
Please use ViewCVS to see it!

http://uclibc.org/cgi-bin/viewcvs.cgi?view=rev&root=svn&rev=26153


More information about the uClibc-cvs mailing list