aboutsummaryrefslogtreecommitdiff
path: root/eth-multiplexer/device_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'eth-multiplexer/device_impl.c')
-rw-r--r--eth-multiplexer/device_impl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eth-multiplexer/device_impl.c b/eth-multiplexer/device_impl.c
index 18ebf07e..f23738a1 100644
--- a/eth-multiplexer/device_impl.c
+++ b/eth-multiplexer/device_impl.c
@@ -108,6 +108,9 @@ ds_device_write (struct vether_device *vdev, mach_port_t reply_port,
if (vdev == NULL)
return D_NO_SUCH_DEVICE;
+ if ((vdev->if_flags & IFF_UP) == 0)
+ return D_DEVICE_DOWN;
+
/* The packet is forwarded to all virtual interfaces and
* the interface which the multiplexer connects to. */
broadcast_pack (data, datalen, vdev);