update socinfo.c from kk_2.7 to fix compilation