#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <arpa/inet.h>
#include <errno.h>
typedef long LONG;
typedef char CHAR;
#define CONST const
#ifndef SUCCESS
#define SUCCESS 0
#endif
#ifndef FAIL
#define FAIL -1
#endif
LONG GetMac(CONST CHAR *pcIfName, CHAR *pcMac)
{
if (NULL == pcIfName || NULL == pcMac)
{
printf("NULL == pcIfName || NULL == pcMac\n");
return FAIL;
}
LONG lFd &
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <arpa/inet.h>
#include <errno.h>
typedef long LONG;
typedef char CHAR;
#define CONST const
#ifndef SUCCESS
#define SUCCESS 0
#endif
#ifndef FAIL
#define FAIL -1
#endif
LONG GetMac(CONST CHAR *pcIfName, CHAR *pcMac)
{
if (NULL == pcIfName || NULL == pcMac)
{
printf("NULL == pcIfName || NULL == pcMac\n");
return FAIL;
}
LONG lFd &