original files of m241
This commit is contained in:
@@ -0,0 +1,103 @@
|
||||
/* bridge.h - simple learning bridge declarations */
|
||||
|
||||
/* Copyright 2000-2005 Wind River Systems, Inc. */
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01h,21nov07,tlu Move BRIDGE_PORT_INFO structure here
|
||||
01g,07sep06,tlu Increment version number
|
||||
01f,21jul05,svk Increment version number for Service Pack 1
|
||||
01e,07feb05,svk Increment version number
|
||||
01d,19jul04,svk Increment version number
|
||||
01c,07may03,svk Add support for static mac addresses in bridge station cache
|
||||
01b,17apr03,svk Implement version number, update copyright
|
||||
01a,27sep00,jhl created
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __INCbridgeh
|
||||
#define __INCbridgeh
|
||||
|
||||
|
||||
#ifdef INCLUDE_IPFIREWALL_SUPPORT
|
||||
#include <ipnet_netif.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define BRIDGE_VERSION "1.3.3"
|
||||
|
||||
#define BRIDGE_STATIC_FLAG 0x00000001 /* Station cache entry is static */
|
||||
|
||||
#ifdef _WRS_CONFIG_BRIDGE_DEBUG
|
||||
#ifndef BRIDGE_DEBUG
|
||||
#define BRIDGE_DEBUG
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef INCLUDE_DHCP_RELAY_AGENT
|
||||
typedef struct
|
||||
{
|
||||
NODE node; /* for list */
|
||||
char *circuitID; /* circuit identifier */
|
||||
char *remoteID; /* remote identifier */
|
||||
|
||||
/* statistics */
|
||||
int giaddrZeroWithOption82;
|
||||
|
||||
/* list for relay identifier */
|
||||
char *shareKey; /* share key for AUTH */
|
||||
int relayID; /* relay identifier */
|
||||
/* current send Replay Detection count value */
|
||||
UINT curSendRDCount;
|
||||
/* current received Replay Detection count value */
|
||||
UINT lastRecvRDCount;
|
||||
BOOL notFirstPacket;
|
||||
} BRIDGE_DHCPR_INFO;
|
||||
#endif
|
||||
|
||||
/* bridge port information */
|
||||
typedef struct
|
||||
{
|
||||
NODE node; /* must be first member in the structure */
|
||||
char name[END_NAME_MAX];
|
||||
int unitNum;
|
||||
#ifdef INCLUDE_IPFIREWALL_SUPPORT
|
||||
Ipnet_netif *netif;
|
||||
#endif
|
||||
void* pMuxBindCookie;
|
||||
char portType;
|
||||
#ifdef INCLUDE_DHCP_RELAY_AGENT
|
||||
BOOL trustFlag;
|
||||
BRIDGE_DHCPR_INFO DhcpR;
|
||||
#endif
|
||||
struct ifqueue errSndq;
|
||||
#ifdef INCLUDE_IPFIREWALL_SUPPORT
|
||||
Ipcom_pkt *firewallPkt;
|
||||
#endif
|
||||
} BRIDGE_PORT_INFO;
|
||||
|
||||
|
||||
IMPORT const char * bridgeVersion;
|
||||
|
||||
IMPORT STATUS bridgeInit(void);
|
||||
IMPORT STATUS bridgePortAdd(char* pDevName, int unitNum);
|
||||
IMPORT STATUS bridgePortRemove(char* pDevName, int unitNum);
|
||||
IMPORT STATUS bridgeMacAdd(char* pDevName, int unitNum, char* pMacAddr,
|
||||
UINT32 flags);
|
||||
IMPORT STATUS bridgeMacRemove(char* pMacAddr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCbridgeh */
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* END OF FILE
|
||||
***************************************************************************/
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/* mirrorEnd.h - Mirroring END device driver declarations */
|
||||
|
||||
/* Copyright 2000-2003 Wind River Systems, Inc. */
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01c,21nov07,tlu Add function proto to set interface RUNNING state
|
||||
01b,17apr03,svk Update copyright
|
||||
01a,10oct00,jhl created
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __INCmirrorEndh
|
||||
#define __INCmirrorEndh
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
IMPORT void mirrorEnetAddrGet (char *);
|
||||
IMPORT STATUS mirrorEndRunningState(void);
|
||||
|
||||
|
||||
/* defines */
|
||||
|
||||
#define MIRROR_END_OBJ_STRING "Mirroring Enhanced Network Driver"
|
||||
#define MIRROR_DEV_NAME "mirror"
|
||||
#define MIRROR_DEV_NAME_LEN 7
|
||||
|
||||
#define MIRROR_STACK_UNIT_NUM 0
|
||||
#define MIRROR_BRIDGE_UNIT_NUM 1
|
||||
|
||||
#define ENDERRBLOCK 2000 /* for END_ERR_BLOCK */
|
||||
|
||||
#define MIRROR_END_ERR_UNBLOCK 0x666
|
||||
#define MIRROR_END_ERR_BLOCK 0x888
|
||||
#define MIRROR_END_ERR_BLOCK_CHECK 0x999
|
||||
|
||||
|
||||
#define MIRROR_END_ERR_BLOCK_TRUE 100
|
||||
#define MIRROR_END_ERR_BLOCK_FALSE 200
|
||||
|
||||
#define SYS_ENET_ADDR_GET(address) mirrorEnetAddrGet (address);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __INCmirrorEndh */
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* END OF FILE
|
||||
***************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user