NetBurner 3.5.8
PDF Version
Toggle main menu visibility
etherswitch.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
5
6
7
#ifndef __ETHERSWITCH_H
8
#define __ETHERSWITCH_H
9
10
#define ESW_PER_FULL_EN 0x00070007
11
void
EtherSwitchInit();
12
void
DoMacTableMaint();
13
// Returns the port that received a frame from the MAC address
14
uint8_t GetSwitchSourcePort(
MACADR
mac);
15
// Updates the Address table entry for a given address
16
bool
UpdateMacTable(
bool
dynamic, int32_t block_index,
unsigned
char
* mac_addr,
17
unsigned
int
portMask,
unsigned
int
priority, uint8_t sourcePort);
18
// Remove the Address table entry for a given address
19
void
RemoveMacTableEntry(
MACADR
mac);
20
21
22
#endif
/* ----- #ifndef __ETHERSWITCH_H ----- */
23
MACADR
Used to store and manipulate MAC addresses.
Definition
nettypes.h:69
arch
coldfire
cpu
MCF5441X
include
etherswitch.h
Generated by
1.18.0