libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pcap-dos.h File Reference
#include <conio.h>
Include dependency graph for pcap-dos.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  device
 
struct  net_device_stats
 

Macros

#define ETH_ALEN   sizeof(ETHER) /* Ether address length */
 
#define ETH_HLEN   (2*ETH_ALEN+2) /* Ether header length */
 
#define ETH_MTU   1500
 
#define ETH_MIN   60
 
#define ETH_MAX   (ETH_MTU+ETH_HLEN)
 
#define TRUE   1
 
#define FALSE   0
 
#define PHARLAP   1
 
#define DJGPP   2
 
#define DOS4GW   4
 
#define ARGSUSED(x)   (void) x
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 
#define max(a, b)   ((a) < (b) ? (b) : (a))
 
#define _U_
 
#define LOCKED_VAR
 
#define LOCKED_FUNC
 
#define PCAP_ASSERT(x)
 

Typedefs

typedef int BOOL
 
typedef unsigned char BYTE
 
typedef unsigned short WORD
 
typedef unsigned long DWORD
 
typedef BYTE ETHER[6]
 
typedef unsigned int UINT
 
typedef struct net_device_stats NET_STATS
 

Functions

void _w32_os_yield (void)
 
void pcap_assert (const char *what, const char *file, unsigned line)
 

Variables

struct deviceactive_dev
 
const struct devicedev_base
 
struct deviceprobed_dev
 
int pcap_pkt_debug
 

Macro Definition Documentation

◆ _U_

#define _U_

Definition at line 93 of file pcap-dos.h.

◆ ARGSUSED

#define ARGSUSED (   x)    (void) x

Definition at line 66 of file pcap-dos.h.

◆ DJGPP

#define DJGPP   2

Definition at line 33 of file pcap-dos.h.

◆ DOS4GW

#define DOS4GW   4

Definition at line 34 of file pcap-dos.h.

◆ ETH_ALEN

#define ETH_ALEN   sizeof(ETHER) /* Ether address length */

Definition at line 21 of file pcap-dos.h.

◆ ETH_HLEN

#define ETH_HLEN   (2*ETH_ALEN+2) /* Ether header length */

Definition at line 22 of file pcap-dos.h.

◆ ETH_MAX

#define ETH_MAX   (ETH_MTU+ETH_HLEN)

Definition at line 25 of file pcap-dos.h.

◆ ETH_MIN

#define ETH_MIN   60

Definition at line 24 of file pcap-dos.h.

◆ ETH_MTU

#define ETH_MTU   1500

Definition at line 23 of file pcap-dos.h.

◆ FALSE

#define FALSE   0

Definition at line 29 of file pcap-dos.h.

◆ LOCKED_FUNC

#define LOCKED_FUNC

Definition at line 138 of file pcap-dos.h.

◆ LOCKED_VAR

#define LOCKED_VAR

Definition at line 137 of file pcap-dos.h.

◆ max

#define max (   a,
 
)    ((a) < (b) ? (b) : (a))

Definition at line 85 of file pcap-dos.h.

◆ min

#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

Definition at line 81 of file pcap-dos.h.

◆ PCAP_ASSERT

#define PCAP_ASSERT (   x)
Value:
do { \
if (!(x)) \
pcap_assert (#x, __FILE__, __LINE__); \
} while (0)

Definition at line 219 of file pcap-dos.h.

◆ PHARLAP

#define PHARLAP   1

Definition at line 32 of file pcap-dos.h.

◆ TRUE

#define TRUE   1

Definition at line 28 of file pcap-dos.h.

Typedef Documentation

◆ BOOL

typedef int BOOL

Definition at line 15 of file pcap-dos.h.

◆ BYTE

typedef unsigned char BYTE

Definition at line 16 of file pcap-dos.h.

◆ DWORD

typedef unsigned long DWORD

Definition at line 18 of file pcap-dos.h.

◆ ETHER

typedef BYTE ETHER[6]

Definition at line 19 of file pcap-dos.h.

◆ NET_STATS

typedef struct net_device_stats NET_STATS

◆ UINT

typedef unsigned int UINT

Definition at line 52 of file pcap-dos.h.

◆ WORD

typedef unsigned short WORD

Definition at line 17 of file pcap-dos.h.

Function Documentation

◆ _w32_os_yield()

void _w32_os_yield ( void  )

Referenced by pcap_read_dos().

◆ pcap_assert()

void pcap_assert ( const char *  what,
const char *  file,
unsigned  line 
)

Definition at line 625 of file pcap-dos.c.

References close_driver(), and FLUSHK.

Variable Documentation

◆ active_dev

struct device* active_dev
extern

Definition at line 1094 of file pcap-dos.c.

Referenced by close_driver(), open_driver(), and pcap_activate_dos().

◆ dev_base

const struct device* dev_base
extern

Definition at line 1096 of file pcap-dos.c.

Referenced by open_driver(), pcap_lookupdev(), and pcap_platform_finddevs().

◆ pcap_pkt_debug

int pcap_pkt_debug
extern

◆ probed_dev

struct device* probed_dev
extern

Definition at line 1095 of file pcap-dos.c.

Referenced by open_driver(), and pcap_lookupdev().