mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-11 19:59:59 +00:00
dial spec 2.0
This commit is contained in:
26
server/LinuxInterfaces.h
Normal file
26
server/LinuxInterfaces.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user