Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/detstats.c | 2 +-
src/hostmon.c | 2 +-
src/ifaces.c | 2 +-
src/ifaces.h | 2 +-
src/ifstats.c | 2 +-
src/itrafmon.c | 2 +-
src/pktsize.c | 2 +-
src/serv.c | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/detstats.c b/src/detstats.c
index 7d57d3c..9b54759 100644
--- a/src/detstats.c
+++ b/src/detstats.c
@@ -346,7 +346,7 @@ void detstats(char *iface, const struct OPTIONS *options, time_t
facilitytime,
return;
}
- if (!iface_up(iface)) {
+ if (!dev_up(iface)) {
err_iface_down();
unmark_facility(DSTATIDFILE, iface);
return;
diff --git a/src/hostmon.c b/src/hostmon.c
index 60888f4..9262afc 100644
--- a/src/hostmon.c
+++ b/src/hostmon.c
@@ -770,7 +770,7 @@ void hostmon(const struct OPTIONS *options, time_t facilitytime, char
*ifptr,
}
if (ifptr != NULL) {
- if (!iface_up(ifptr)) {
+ if (!dev_up(ifptr)) {
err_iface_down();
unmark_facility(LANMONIDFILE, ifptr);
return;
diff --git a/src/ifaces.c b/src/ifaces.c
index 7b6846e..eb3160b 100644
--- a/src/ifaces.c
+++ b/src/ifaces.c
@@ -76,7 +76,7 @@ int get_next_iface(FILE * fd, char *ifname, int n)
return 0;
}
-int iface_up(char *iface)
+int dev_up(char *iface)
{
int fd;
int ir;
diff --git a/src/ifaces.h b/src/ifaces.h
index 618a2b9..d800c51 100644
--- a/src/ifaces.h
+++ b/src/ifaces.h
@@ -10,7 +10,7 @@ ifaces.h - prototype declaration for interface support determination
FILE *open_procnetdev(void);
int get_next_iface(FILE * fd, char *ifname, int n);
-int iface_up(char *iface);
+int dev_up(char *iface);
void err_iface_down(void);
int iface_get_ifindex(const char *iface);
int iface_get_mtu(const char *iface);
diff --git a/src/ifstats.c b/src/ifstats.c
index aec3e1a..81cbd14 100644
--- a/src/ifstats.c
+++ b/src/ifstats.c
@@ -152,7 +152,7 @@ static void initiflist(struct iflist **list)
* interface lists used by IPTraf.
*/
- if (!iface_up(ifname))
+ if (!dev_up(ifname))
continue;
int ifindex = iface_get_ifindex(ifname);
diff --git a/src/itrafmon.c b/src/itrafmon.c
index 0e82517..e1ffae1 100644
--- a/src/itrafmon.c
+++ b/src/itrafmon.c
@@ -648,7 +648,7 @@ void ipmon(struct OPTIONS *options, struct filterstate *ofilter,
}
if (ifptr != NULL) {
- if (!iface_up(ifptr)) {
+ if (!dev_up(ifptr)) {
err_iface_down();
unmark_facility(IPMONIDFILE, ifptr);
return;
diff --git a/src/pktsize.c b/src/pktsize.c
index a800b37..80019aa 100644
--- a/src/pktsize.c
+++ b/src/pktsize.c
@@ -182,7 +182,7 @@ void packet_size_breakdown(struct OPTIONS *options, char *ifname,
return;
}
- if (!iface_up(ifname)) {
+ if (!dev_up(ifname)) {
err_iface_down();
goto err_unmark;
}
diff --git a/src/serv.c b/src/serv.c
index b326e90..92fb09e 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -812,7 +812,7 @@ void servmon(char *ifname, struct porttab *ports, const struct OPTIONS
*options,
return;
}
- if (!iface_up(ifname)) {
+ if (!dev_up(ifname)) {
err_iface_down();
unmark_facility(TCPUDPIDFILE, ifname);
return;
--
1.7.8.4