Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/ifaces.c | 2 +-
src/ifaces.h | 2 +-
src/ifstats.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ifaces.c b/src/ifaces.c
index eb3160b..1daff52 100644
--- a/src/ifaces.c
+++ b/src/ifaces.c
@@ -100,7 +100,7 @@ void err_iface_down(void)
write_error("Specified interface not active");
}
-int iface_get_ifindex(const char *iface)
+int dev_get_ifindex(const char *iface)
{
int fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
if (fd == -1)
diff --git a/src/ifaces.h b/src/ifaces.h
index d800c51..23b9a5e 100644
--- a/src/ifaces.h
+++ b/src/ifaces.h
@@ -12,7 +12,7 @@ FILE *open_procnetdev(void);
int get_next_iface(FILE * fd, char *ifname, int n);
int dev_up(char *iface);
void err_iface_down(void);
-int iface_get_ifindex(const char *iface);
+int dev_get_ifindex(const char *iface);
int iface_get_mtu(const char *iface);
int iface_get_flags(const char *iface);
int iface_set_flags(const char *iface, int flags);
diff --git a/src/ifstats.c b/src/ifstats.c
index 81cbd14..a3e2214 100644
--- a/src/ifstats.c
+++ b/src/ifstats.c
@@ -155,7 +155,7 @@ static void initiflist(struct iflist **list)
if (!dev_up(ifname))
continue;
- int ifindex = iface_get_ifindex(ifname);
+ int ifindex = dev_get_ifindex(ifname);
if (ifindex < 0)
continue;
/*
--
1.7.8.4