[net] add ip addr info method