Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

LibnetNT.h

Go to the documentation of this file.
00001 #include "snort.h"
00002 #include <winsock2.h>
00003 #include "packet_types.h"
00004 #include <time.h>
00005 #define LIBNET_LIL_ENDIAN 1
00006 #include <windows.h>
00007 #include <Winbase.h>
00008 #include <assert.h>
00009 #include <iphlpapi.h>
00010 #include <iptypes.h>
00011 #include <stdlib.h>
00012 #include <malloc.h>
00013 #include <stdio.h>
00014 #include <string.h>
00015 #include <limits.h>
00016 
00017 #define        DOSNAMEPREFIX   TEXT("Packet_")
00018 #define        MAX_LINK_NAME_LENGTH   64
00019 #define        NMAX_PACKET 65535  
00020 
00021 typedef struct _ADAPTER  { 
00022                                                    HANDLE hFile;
00023                            TCHAR  SymbolicLink[MAX_LINK_NAME_LENGTH];
00024                                                    int NumWrites;
00025                                                  }  ADAPTER, *LPADAPTER;
00026 
00027 typedef struct GlobalInfo
00028 {
00029         LPADAPTER  lpAdapter;
00030         BYTE MAC[6];
00031         char Aname[512];
00032         DWORD LocalIp,DefaultGateway;
00033 }GINFO, *LPGINFO;
00034 
00035 #ifdef __cplusplus
00036    extern "C"{
00037 #endif
00038 
00039 BOOL libnet_win32_shutdown();
00040 BOOL libnet_win32_init(int AdapterNum);
00041 BOOL libnet_win32_open_adapter(int Open);
00042 void libnet_win32_get_hw_addr();
00043 void libnet_win32_get_local_ip();
00044 BYTE * libnet_win32_FindMAC(DWORD IP);
00045 BOOL libnet_win32_send_arp(DWORD IP);
00046 BYTE * libnet_win32_get_remote_mac(DWORD IP);

Generated on Sun May 14 14:51:19 2006 by  doxygen 1.4.2