Linux Net program in C