commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 25/43: eth-multiplexer: Implement getting the devices flags.


From: Samuel Thibault
Subject: [hurd] 25/43: eth-multiplexer: Implement getting the devices flags.
Date: Mon, 11 Sep 2017 07:10:11 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 25de3c52515332b41bf31774ce1ed8f32ee7adbf
Author: Justus Winter <address@hidden>
Date:   Tue Aug 22 19:24:32 2017 +0200

    eth-multiplexer: Implement getting the devices flags.
    
    * eth-multiplexer/dev_stat.c (dev_getstat): Implement the NET_FLAGS
    flavor.
---
 eth-multiplexer/dev_stat.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eth-multiplexer/dev_stat.c b/eth-multiplexer/dev_stat.c
index bfbb433..d15a7d5 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]