diff options
author | Marc-André Lureau | 2018-11-21 23:06:28 +0100 |
---|---|---|
committer | Samuel Thibault | 2019-01-14 00:44:29 +0100 |
commit | e6dbff3fb8d2d7ce6cfad54b0c1d767d908bd791 (patch) | |
tree | 24475af73df02e8e7439d546fb11106dec7f7a41 /net | |
parent | slirp: factor out guestfwd addition checks (diff) | |
download | qemu-e6dbff3fb8d2d7ce6cfad54b0c1d767d908bd791.tar.gz qemu-e6dbff3fb8d2d7ce6cfad54b0c1d767d908bd791.tar.xz qemu-e6dbff3fb8d2d7ce6cfad54b0c1d767d908bd791.zip |
slirp: add clock_get_ns() callback
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/slirp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/slirp.c b/net/slirp.c index 2d5337da04..f98425ee9f 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -146,9 +146,15 @@ static void net_slirp_guest_error(const char *msg) qemu_log_mask(LOG_GUEST_ERROR, "%s", msg); } +static int64_t net_slirp_clock_get_ns(void) +{ + return qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); +} + static const SlirpCb slirp_cb = { .output = net_slirp_output, .guest_error = net_slirp_guest_error, + .clock_get_ns = net_slirp_clock_get_ns, }; static int net_slirp_init(NetClientState *peer, const char *model, |