Fix compiler warnings:
declaration of 'ipaddr' shadows a global declaration [-Wshadow]
'tmp_ipaddr' defined but not used [-Wunused-variable]