summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/iftest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/iftest.c b/utils/iftest.c
index 523a17a..40825a3 100644
--- a/utils/iftest.c
+++ b/utils/iftest.c
@@ -28,8 +28,9 @@ int main(void)
continue;
if (nlif_get_ifflags(h, i, &flags) == -1)
continue;
- printf("index (%d) is %s (%s)\n", i, name,
- flags & IFF_RUNNING ? "RUNNING" : "NOT RUNNING");
+ printf("index (%d) is %s (%s) (%s)\n", i, name,
+ flags & IFF_RUNNING ? "RUNNING" : "NOT RUNNING",
+ flags & IFF_UP ? "UP" : "DOWN");
}
nlif_close(h);