add net.c
merge modification