summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-07 01:17:39 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-07 01:17:39 +0100
commit6833d97a2314ddce5a7a65402c0afba37e8913c4 (patch)
tree992ec62fc1ab94c031dc9afcbeb89a5cd32bffed /include
parentbcf809779eb43adfc598746e02d522751d9aaeac (diff)
iftable: add nlif_get_ifflags to get the network interface flags
This patch adds the nlif_get_ifflags to get the interface flags. This patch also modifies the example file to display if a network interface is running or not. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnfnetlink/libnfnetlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index 83874e3..b2f3652 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -205,6 +205,9 @@ int nlif_catch(struct nlif_handle *nlif_handle);
int nlif_index2name(struct nlif_handle *nlif_handle,
unsigned int if_index,
char *name);
+int nlif_get_ifflags(const struct nlif_handle *h,
+ unsigned int index,
+ unsigned int *flags);
#ifdef __cplusplus
} /* extern "C" */