Finally found netconfig.c which solves all my problems