1 #ifndef IPTRAF_NG_IFACES_H
2 #define IPTRAF_NG_IFACES_H
4 #define dev_set_promisc(dev) dev_set_flags((dev), IFF_PROMISC)
5 #define dev_clr_promisc(dev) dev_clear_flags((dev), IFF_PROMISC)
7 FILE *open_procnetdev(void);
8 int get_next_iface(FILE * fd
, char *ifname
, int n
);
9 int dev_up(char *iface
);
10 void err_iface_down(void);
11 int dev_get_ifindex(const char *iface
);
12 int dev_get_mtu(const char *iface
);
13 int dev_get_flags(const char *iface
);
14 int dev_set_flags(const char *iface
, int flags
);
15 int dev_clear_flags(const char *iface
, int flags
);
16 int dev_get_ifname(int ifindex
, char *ifname
);
17 int dev_bind_ifname(const int fd
, const char * const ifname
);
18 int dev_promisc_flag(const char *dev_name
);
20 #endif /* IPTRAF_NG_IFACES_H */