Moved the net addr related stuff into it's own file.