Watt-32 tcp/ip  2.2 dev-rel.10
Data Structures | Enumerations | Functions | Variables
pcpkt.h File Reference

Go to the source code of this file.

Data Structures

struct  cstate
 
struct  slcompress
 
struct  async_iocb
 
struct  pkt_info
 Placeholder for vital data accessed by capture thread. More...
 

Enumerations

enum  ReceiveModes {
  RXMODE_OFF = 1,
  RXMODE_DIRECT = 2,
  RXMODE_BROADCAST = 3,
  RXMODE_MULTICAST1 = 4,
  RXMODE_MULTICAST2 = 5,
  RXMODE_PROMISCOUS = 6,
  RXMODE_OFF = 0x00,
  RXMODE_DIRECT = 0x01,
  RXMODE_MULTICAST1 = 0x02,
  RXMODE_MULTICAST2 = 0x04,
  RXMODE_BROADCAST = 0x08,
  RXMODE_PROMISCOUS = 0x20,
  RXMODE_ALL_LOCAL = 0x80
}
 

Functions

int pkt_get_multicast_list (mac_address *listbuf, int *len)
 Gets the current list of multicast addresses from the PKTDRVR. More...
 
int pkt_set_multicast_list (const void *listbuf, int len)
 Sets the list of multicast addresses for which the PKTDRVR is responsible. More...
 
int pkt_get_vjstats (struct slcompress *vjstats)
 
int pkt_get_cstate (struct cstate *cs, WORD cstate_ofs)
 
voidpkt_tx_buf (void)
 Return address of DOS memory Tx-buffer. More...
 
int pkt_append_recv (const void *tx, unsigned len)
 
int pkt_buffers_used (void)
 
int pkt_test_upcall (void)
 
void pkt_dump_real_mem (void)
 
struct pkt_rx_elementpkt_poll_recv (void)
 
void __dj_movedata (void)
 
void __movedata (unsigned src_sel, unsigned src_ofs, unsigned dst_sel, unsigned dst_ofs, size_t bytes)
 

Variables

WORD _pktdevclass
 Driver class; <tcp.h> for values. More...
 
WORD _pkt_ip_ofs
 Offset from MAC-header to IP-header. More...
 
BOOL _pktserial
 Driver is a serial (SLIP/PPP) driver. More...
 
char _pktdrvrname []
 Name of PKDRVR.
 
int _pkt_rxmode
 Current PKTDRVR/WinPcap Rx-mode. More...
 
int _pkt_rxmode0
 Startup receive mode. More...
 
int _pkt_forced_rxmode
 Forced Rx-mode via WATTCP.CFG. More...
 
int _pkt_errno
 Last PKTDRVR error code. More...
 
BYTE _pktdevlevel
 Device level. More...
 
struct pkt_info_pkt_inf
 module data that will be locked
 

Enumeration Type Documentation

Enumerator
RXMODE_OFF 

turn off receiver

RXMODE_DIRECT 

receive only to this interface

RXMODE_BROADCAST 

DIRECT + broadcast packets.

RXMODE_MULTICAST1 

BROADCAST + limited multicast.

RXMODE_MULTICAST2 

BROADCAST + all multicast.

RXMODE_PROMISCOUS 

receive all packets on network

RXMODE_OFF 

possible to turn off?

RXMODE_DIRECT 

NDIS_PACKET_TYPE_DIRECTED.

RXMODE_MULTICAST1 

NDIS_PACKET_TYPE_MULTICAST.

RXMODE_MULTICAST2 

NDIS_PACKET_TYPE_ALL_MULTICAST.

RXMODE_BROADCAST 

NDIS_PACKET_TYPE_BROADCAST.

RXMODE_PROMISCOUS 

NDIS_PACKET_TYPE_PROMISCUOUS.

RXMODE_ALL_LOCAL 

NDIS_PACKET_TYPE_ALL_LOCAL (direct+bc+mc1)

Definition at line 108 of file pcpkt.h.

Function Documentation

int pkt_get_multicast_list ( mac_address *  listbuf,
int *  lenp 
)

Gets the current list of multicast addresses from the PKTDRVR.

  • listbuf is the buffer into which the list is placed
  • len on input: length of listbuf on output: length of list returned
Return values
0upon error - _pkt_errno is set
1if retrieval was successful,

Definition at line 2037 of file pcpkt.c.

int pkt_set_multicast_list ( const void listbuf,
int  len 
)

Sets the list of multicast addresses for which the PKTDRVR is responsible.

  • listbuf is the buffer containing the list
  • len is the length of listbuf
Return values
0upon error - _pkt_errno is set
1if set was successful

Definition at line 2084 of file pcpkt.c.

void* pkt_tx_buf ( void  )

Return address of DOS memory Tx-buffer.

For DOS4GW/X32VM (and djgpp with near-ptrs) targets, return near address of transmit buffer located in DOS memory.

Definition at line 302 of file pcpkt.c.

Variable Documentation

int _pkt_errno

Last PKTDRVR error code.

Last PKTDRVR error code.

Definition at line 58 of file pcpkt.c.

int _pkt_forced_rxmode

Forced Rx-mode via WATTCP.CFG.

Forced Rx-mode via WATTCP.CFG.

Definition at line 61 of file pcpkt.c.

WORD _pkt_ip_ofs

Offset from MAC-header to IP-header.

Offset from MAC-header to IP-header.

Definition at line 52 of file pcpkt.c.

int _pkt_rxmode

Current PKTDRVR/WinPcap Rx-mode.

Current PKTDRVR/WinPcap Rx-mode.

Definition at line 56 of file pcpkt.c.

int _pkt_rxmode0

Startup receive mode.

Startup receive mode.

Definition at line 57 of file pcpkt.c.

WORD _pktdevclass

Driver class; <tcp.h> for values.

Driver class; <tcp.h> for values.

Definition at line 51 of file pcpkt.c.

BYTE _pktdevlevel

Device level.

Device level.

Definition at line 55 of file pcpkt.c.

BOOL _pktserial

Driver is a serial (SLIP/PPP) driver.

Driver is a serial (SLIP/PPP) driver.

Definition at line 54 of file pcpkt.c.