Implement the PacketGetVersion() routine, which is used in

the 0.4.x versions of wpa_supplicant.
This commit is contained in:
wpaul 2005-10-20 16:49:31 +00:00
parent f568b9c967
commit bcc6df344c
3 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,12 @@ struct adapter {
char name[IFNAMSIZ];
};
PCHAR
PacketGetVersion(void)
{
return("FreeBSD WinPcap compatibility shim v1.0");
}
void *
PacketOpenAdapter(iface)
CHAR *iface;

View File

@ -47,6 +47,7 @@ struct PACKET_OID_DATA {
typedef struct PACKET_OID_DATA PACKET_OID_DATA;
extern PCHAR PacketGetVersion(void);
extern void *PacketOpenAdapter(CHAR *);
extern int PacketRequest(void *, BOOLEAN, PACKET_OID_DATA *);
extern int PacketGetAdapterNames(CHAR *, ULONG *);

View File

@ -21,6 +21,7 @@
#define BOOLEAN uint8_t
typedef void * LPADAPTER;
typedef char * PTSTR;
typedef char * PCHAR;
#define TRUE 1
#define FALSE 0