diff options
author | Justus Winter <justus@gnupg.org> | 2017-08-22 19:24:32 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-22 19:43:02 +0200 |
commit | 25de3c52515332b41bf31774ce1ed8f32ee7adbf (patch) | |
tree | c5c84a14efa0e66720ea708ab195260ae3a1557c /eth-multiplexer | |
parent | 9ac9732e27128927d0e24d44d72145be5acfcc28 (diff) | |
download | hurd-25de3c52515332b41bf31774ce1ed8f32ee7adbf.tar.gz hurd-25de3c52515332b41bf31774ce1ed8f32ee7adbf.tar.bz2 hurd-25de3c52515332b41bf31774ce1ed8f32ee7adbf.zip |
eth-multiplexer: Implement getting the devices flags.
* eth-multiplexer/dev_stat.c (dev_getstat): Implement the NET_FLAGS
flavor.
Diffstat (limited to 'eth-multiplexer')
-rw-r--r-- | eth-multiplexer/dev_stat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eth-multiplexer/dev_stat.c b/eth-multiplexer/dev_stat.c index bfbb4331..d15a7d50 100644 --- a/eth-multiplexer/dev_stat.c +++ b/eth-multiplexer/dev_stat.c @@ -47,6 +47,11 @@ dev_getstat(struct vether_device *ifp, dev_flavor_t flavor, dev_status_t status, natural_t *count) { switch (flavor) { + case NET_FLAGS: + if (*count != 1) + return D_INVALID_SIZE; + status[0] = ifp->if_flags; + break; case NET_STATUS: { register struct net_status *ns = (struct net_status *)status; |