trafgen: fixed '--in -' to work again with STDIN
[netsniff-ng-new.git] / dev.h
blob633ac8cba31e1b13fbf9f0959bd5923806ddc78b
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_hw_address(const char *ifname, uint8_t *addr, size_t len);
11 extern int device_ifindex(const char *ifname);
12 extern int device_type(const char *ifname);
13 extern short device_get_flags(const char *ifname);
14 extern void device_set_flags(const char *ifname, const short flags);
15 extern int device_up_and_running(const char *ifname);
16 extern uint32_t device_bitrate(const char *ifname);
17 extern short device_enter_promiscuous_mode(const char *ifname);
18 extern void device_leave_promiscuous_mode(const char *ifname, short oldflags);
19 extern const char *device_type2str(uint16_t type);
20 extern const char *device_addr2str(const unsigned char *addr, int alen, int type,
21 char *buf, int blen);
22 #endif /* DEV_H */