use uint32 instead of u_long