summaryrefslogtreecommitdiff
path: root/dev.h
blob: 87751c62e86abdb3c69b7853382cf0e9ff94b206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef DEV_H
#define DEV_H

#include <sys/socket.h>
#include "built_in.h"

extern int device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
extern int device_up_and_running(char *ifname);
extern u32 device_bitrate(const char *ifname);

#endif /* DEV_H */
orm.submit();'>
Diffstat (limited to 'tools/testing/selftests/zram')