odd-fw-patch-squashed

This is the squashed commits of former odd-fw-patch and its addition, which will add functions to;
* un-zeropad IP address returned by some odd routers,
* make $ip UNDEF if get_ip('fw') returned a local IP address.