NetBurner 3.5.6
PDF Version
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
11void EtherSwitchInit();
12void DoMacTableMaint();
13// Returns the port that received a frame from the MAC address
14uint8_t GetSwitchSourcePort(MACADR mac);
15// Updates the Address table entry for a given address
16bool 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
19void RemoveMacTableEntry(MACADR mac);
20
21
22#endif /* ----- #ifndef __ETHERSWITCH_H ----- */
23
Used to store and manipulate MAC addresses.
Definition nettypes.h:69