diff options
author | Scott Feldman | 2015-03-14 05:09:25 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2015-05-11 15:49:03 +0200 |
commit | 890ee6abb385d6508bba7f5273c74a8e43bea6af (patch) | |
tree | 39111b90ce5dbf77ca041dace0821377c144e1f2 /include | |
parent | Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (diff) | |
download | qemu-890ee6abb385d6508bba7f5273c74a8e43bea6af.tar.gz qemu-890ee6abb385d6508bba7f5273c74a8e43bea6af.tar.xz qemu-890ee6abb385d6508bba7f5273c74a8e43bea6af.zip |
net: add MAC address string printer
We can use this in virtio-net code as well as new Rocker driver code, so
up-level this.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1426306173-24884-2-git-send-email-sfeldma@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h index 50ffcb9281..e66ca03bf3 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -97,6 +97,7 @@ typedef struct NICState { bool peer_deleted; } NICState; +char *qemu_mac_strdup_printf(const uint8_t *macaddr); NetClientState *qemu_find_netdev(const char *id); int qemu_find_net_clients_except(const char *id, NetClientState **ncs, NetClientOptionsKind type, int max); |