[PATCH] getipnodebyXXX() via gethostbyXXX() patch

Michael Bushkov bushman at freebsd.org
Thu May 10 23:35:47 UTC 2007


Hi,
During my Summer Of Code 2006 work I've done a lot of refactoring in 
libc's nsswitch, which was basically needed to separate libc and 
nsswitch modules. One part of that refactoring was reimplementation of 
getipnodebyXXX() family of functions through gethostbyXXX() family of 
functions. Actually both of these groups of functions had a lot of 
duplicated (or very similar) code, so such reimplementation seems to be 
quite logic to me.

The patch is here:
http://rsu.ru/~bushman/name6.patch

It would be great to have it tested (maybe with nsswitch regression 
tests - /tools/regresion/lib/libc/nss) and to hear comments about it.

-- 
With best regards,
Michael Bushkov
Southern Federal University


More information about the freebsd-net mailing list