summaryrefslogtreecommitdiff
path: root/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev.c')
-rw-r--r--dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev.c b/dev.c
index c28fa0e..20dfe17 100644
--- a/dev.c
+++ b/dev.c
@@ -14,7 +14,7 @@
#include "link.h"
#include "built_in.h"
-int device_ifindex_get(const char *ifname)
+int __device_ifindex(const char *ifname)
{
int ret, sock, index;
struct ifreq ifr;
@@ -40,7 +40,7 @@ int device_ifindex_get(const char *ifname)
int device_ifindex(const char *ifname)
{
- int index = device_ifindex_get(ifname);
+ int index = __device_ifindex(ifname);
if (unlikely(index < 0))
panic("Cannot get ifindex from device!\n");