trafgen: remove timer-based trigger model
[netsniff-ng.git] / dev.h
blob2d5f0569668f37e2902667fe7e5f3ceb0e6471a0
1 #ifndef DEV_H
2 #define DEV_H
4 #include <sys/socket.h>
5 #include "built_in.h"
7 extern size_t device_mtu(const char *ifname);
8 extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
9 extern int device_ifindex(const char *ifname);
10 extern int device_type(const char *ifname);
11 extern short device_get_flags(const char *ifname);
12 extern void device_set_flags(const char *ifname, const short flags);
13 extern int device_up_and_running(const char *ifname);
14 extern u32 device_bitrate(const char *ifname);
15 extern short device_enter_promiscuous_mode(const char *ifname);
16 extern void device_leave_promiscuous_mode(const char *ifname, short oldflags);
18 #endif /* DEV_H */