summaryrefslogtreecommitdiffstats
path: root/ffd/netif.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-09-26 19:16:53 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-09-26 19:16:53 +0200
commitc5a1d00fc40a9c55024cfc7f92b0a455975ba503 (patch)
treefc75f5b07b8fa696e5270de2b79ca12683351343 /ffd/netif.h
parent9eeec649fb91784d26cbfcad876cff1d6b950408 (diff)
downloadffd-c5a1d00fc40a9c55024cfc7f92b0a455975ba503.tar
ffd-c5a1d00fc40a9c55024cfc7f92b0a455975ba503.zip
Keep track of interfaces
Diffstat (limited to 'ffd/netif.h')
-rw-r--r--ffd/netif.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffd/netif.h b/ffd/netif.h
index 8dc5b94..cc723ba 100644
--- a/ffd/netif.h
+++ b/ffd/netif.h
@@ -33,7 +33,8 @@
typedef enum _netif_type_t {
- IF_UNKNOWN = 0,
+ IF_UNSPEC = 0,
+ IF_UNKNOWN,
IF_WIRED,
IF_WIRELESS,
IF_VIRTUAL,
@@ -45,6 +46,7 @@ typedef enum _netif_type_t {
typedef void (*netif_cb)(const char *ifname, unsigned ifindex, void *arg);
+netif_type_t netif_get_type(const char *ifname);
bool netif_is_mesh(const char *ifname);
char* netif_get_mesh(const char *ifname);
char* netif_get_bridge(const char *ifname);