libnet: printing IP info only if IP is set