This function returns network interface stats.
Individual fields within the stats structure may be returned as -1, which indicates that the hypervisor does not support that particular statistic.
the domain interface
the stats or null in case of error. The returned object should be unreffed with unref when no longer needed.