mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
b951cda21d
commit
890ee6abb3
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue