diff options
author | wpaul <wpaul@FreeBSD.org> | 2005-10-20 16:49:31 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2005-10-20 16:49:31 +0000 |
commit | bcc6df344cf0d6e1d64028df0e75c816c6813873 (patch) | |
tree | e22715191dbf3677c082559dacb38ca0275254ad | |
parent | f568b9c967356d076be0c5f390558595db5be11e (diff) | |
download | FreeBSD-src-bcc6df344cf0d6e1d64028df0e75c816c6813873.zip FreeBSD-src-bcc6df344cf0d6e1d64028df0e75c816c6813873.tar.gz |
Implement the PacketGetVersion() routine, which is used in
the 0.4.x versions of wpa_supplicant.
-rw-r--r-- | usr.sbin/wpa/wpa_supplicant/Packet32.c | 6 | ||||
-rw-r--r-- | usr.sbin/wpa/wpa_supplicant/Packet32.h | 1 | ||||
-rw-r--r-- | usr.sbin/wpa/wpa_supplicant/ntddndis.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/wpa/wpa_supplicant/Packet32.c b/usr.sbin/wpa/wpa_supplicant/Packet32.c index dafa6b9..3334bbf 100644 --- a/usr.sbin/wpa/wpa_supplicant/Packet32.c +++ b/usr.sbin/wpa/wpa_supplicant/Packet32.c @@ -99,6 +99,12 @@ struct adapter { char name[IFNAMSIZ]; }; +PCHAR +PacketGetVersion(void) +{ + return("FreeBSD WinPcap compatibility shim v1.0"); +} + void * PacketOpenAdapter(iface) CHAR *iface; diff --git a/usr.sbin/wpa/wpa_supplicant/Packet32.h b/usr.sbin/wpa/wpa_supplicant/Packet32.h index a3f715d..e0598e7 100644 --- a/usr.sbin/wpa/wpa_supplicant/Packet32.h +++ b/usr.sbin/wpa/wpa_supplicant/Packet32.h @@ -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 *); diff --git a/usr.sbin/wpa/wpa_supplicant/ntddndis.h b/usr.sbin/wpa/wpa_supplicant/ntddndis.h index 97dd608..42e403d 100644 --- a/usr.sbin/wpa/wpa_supplicant/ntddndis.h +++ b/usr.sbin/wpa/wpa_supplicant/ntddndis.h @@ -21,6 +21,7 @@ #define BOOLEAN uint8_t typedef void * LPADAPTER; typedef char * PTSTR; +typedef char * PCHAR; #define TRUE 1 #define FALSE 0 |