This is a followup to #8105.
Networking code contains several shadowed variables. Fixes use underscore prefix with the only exception - IPv6 address called for adding 6 to the variable name. I'm open for suggestions. @theuni Please review if it conflicts with your code.
For review, compare binaries or compile with -Wshadow and compare complete logs.