From 34b25ca74eab49cedf994193dc7727e3f2613219 Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 8 Jan 2009 19:45:03 +0000 Subject: Allow devices be notified of link status change (Mark McLoughlin) Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6248 c046a42c-6fe2-441c-8c8c-71466251a162 --- net.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net.c') diff --git a/net.c b/net.c index bae8bef..fa9fa94 100644 --- a/net.c +++ b/net.c @@ -1718,6 +1718,9 @@ int do_set_link(const char *name, const char *up_or_down) term_printf("invalid link status '%s'; only 'up' or 'down' valid\n", up_or_down); + if (vc->link_status_changed) + vc->link_status_changed(vc); + return 1; } -- cgit v1.1