mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 02:49:58 +00:00
27 lines
500 B
C
27 lines
500 B
C
#ifndef LINUXINTERFACES_H_
|
|
#define LINUXINTERFACES_H_
|
|
|
|
#include <arpa/inet.h>
|
|
#include <dirent.h>
|
|
#include <linux/limits.h>
|
|
#include <linux/wireless.h>
|
|
#include <netinet/in.h>
|
|
#include <string.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/socket.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
|
|
/* Fetch the MACAddress of a network interface */
|
|
#define MACBUFSIZE 32
|
|
#define WAKEUPTIMEOUT 15
|
|
|
|
typedef struct
|
|
{
|
|
char macAddress[MACBUFSIZE];
|
|
}NetInterface;
|
|
|
|
NetInterface getDefaultNetworkInterfaces();
|
|
|
|
#endif
|