refine enet.c