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

Go to the source code of this file.

Data Structures

struct  eth_Header
 
struct  eth_Packet
 
struct  vlan_Header
 
struct  vlan_Packet
 
struct  tok_Header
 
struct  tok_Packet
 
struct  llc_Header
 
struct  fddi_Header
 
struct  fddi_Packet
 
struct  arcnet_Header
 
struct  arcnet_Packet
 
union  link_Packet
 
struct  _eth_last_info
 

Typedefs

typedef struct eth_Header eth_Header
 
typedef struct eth_Packet eth_Packet
 
typedef struct vlan_Header vlan_Header
 
typedef struct vlan_Packet vlan_Packet
 
typedef struct tok_Header tok_Header
 
typedef struct tok_Packet tok_Packet
 
typedef struct llc_Header llc_Header
 
typedef struct fddi_Header fddi_Header
 
typedef struct fddi_Packet fddi_Packet
 
typedef struct arcnet_Header arcnet_Header
 
typedef struct arcnet_Packet arcnet_Packet
 
typedef union link_Packet link_Packet
 

Functions

BOOL _eth_join_mcast_group (const struct MultiCast *mc)
 Joins a multicast group (at the physical layer). More...
 
BOOL _eth_leave_mcast_group (const struct MultiCast *mc)
 Leaves a multicast group (at the physical layer) More...
 
void_eth_mac_hdr (const in_Header *ip) ATTR_NORETURN()
 Return pointer to MAC header start address of an IP packet.
 
void_eth_mac_dst (const in_Header *ip) ATTR_NORETURN()
 Return pointer to MAC destination address of an IP packet.
 
void_eth_mac_src (const in_Header *ip) ATTR_NORETURN()
 Return pointer to MAC source address of an IP packet.
 
WORD _eth_mac_typ (const in_Header *ip) ATTR_NORETURN()
 Return value of protocol-type given an IP packet.
 

Variables

struct _eth_last_info _eth_last
 Sizes and timestamps of last packet recv/sent.
 
BOOL _ip_recursion
 avoid recursion in arp_resolve()
 
BOOL _eth_is_init
 we are initialised
 
BOOL _eth_ndis3pkt
 for DOS-programs only
 
BOOL _eth_winpcap
 for Win32 using an WinPcap adapter (default)
 
BOOL _eth_airpcap
 for Win32 using the AirPcap adapter
 
BOOL _eth_SwsVpkt
 for DOS and Win32 programs
 
BOOL _eth_wanpacket
 for Win32 using an WanPacket adapter
 
BYTE _eth_mac_len
 Size of a MAC address.
 
const char * _eth_not_init
 
mac_address _eth_addr
 Local link-layer source address.
 
mac_address _eth_real_addr
 Our real MAC address.
 
mac_address _eth_loop_addr
 Link-layer loopback address.
 
mac_address _eth_brdcast
 Link-layer broadcast address.
 

Detailed Description

Link-layer (DIX Ethernet, Token-Ring, ARCnet, FDDI and PPP/SLIP) Interface.

Definition in file pcsed.h.

Function Documentation

BOOL _eth_join_mcast_group ( const struct MultiCast mc)

Joins a multicast group (at the physical layer).

Return values
1The group was joined successfully.
0Attempt failed.

Definition at line 1248 of file pcsed.c.

References _pkt_errno, _pkt_rxmode, MultiCast::ethaddr, pkt_get_multicast_list(), pkt_set_multicast_list(), pkt_set_rcv_mode(), RXMODE_MULTICAST1, RXMODE_MULTICAST2, and RXMODE_PROMISCOUS.

BOOL _eth_leave_mcast_group ( const struct MultiCast mc)

Leaves a multicast group (at the physical layer)

Return values
1The group was left successfully.
0Attempt failed.

Definition at line 1324 of file pcsed.c.

References _pkt_errno, _pkt_rxmode, MultiCast::ethaddr, pkt_get_multicast_list(), pkt_set_multicast_list(), pkt_set_rcv_mode(), and RXMODE_MULTICAST2.