Substituted u_int with unsigned int to avoid posix dependencies