From fd3b0bc1b318a2cc95ac1f85e308708c4bb8999a Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Sat, 5 Nov 2016 18:05:06 +0100 Subject: eth-multiplexer: Fix retrieving status of virtual interfaces. Previously, the ethernet multiplexer returned the status of the real network device if one was configured. This had the unfortunate consequence that all virtual devices shared the same ethernet address. * eth-multiplexer/device_impl.c (ds_device_get_status): Always return the information for the virtual device. * eth-multiplexer/vdev.h (dev_getstat): Add prototype. --- eth-multiplexer/vdev.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'eth-multiplexer/vdev.h') diff --git a/eth-multiplexer/vdev.h b/eth-multiplexer/vdev.h index c8696785..c98c4418 100644 --- a/eth-multiplexer/vdev.h +++ b/eth-multiplexer/vdev.h @@ -76,4 +76,9 @@ int broadcast_msg (struct net_rcv_msg *msg); int get_dev_num (); int foreach_dev_do (dev_act_func func); +/* dev_stat.c */ +io_return_t dev_getstat (struct vether_device *, dev_flavor_t, + dev_status_t, natural_t *); + + #endif -- cgit v1.2.3