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


#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 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 PCAP_ASSERT(x)


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


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


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.


#define ARGSUSED (   x)    (void) x

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


#define DJGPP   2

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


#define DOS4GW   4

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


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

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


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

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



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


#define ETH_MIN   60

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


#define ETH_MTU   1500

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


#define FALSE   0

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



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


#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.


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

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


#define PHARLAP   1

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


#define TRUE   1

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

Typedef Documentation


typedef int BOOL

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


typedef unsigned char BYTE

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


typedef unsigned long DWORD

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


typedef BYTE ETHER[6]

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


typedef struct net_device_stats NET_STATS


typedef unsigned int UINT

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


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

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

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

◆ probed_dev

struct device* probed_dev

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

Referenced by open_driver(), and pcap_lookupdev().