Extensible Firmware Interface Specification
442 12/12/00 Version 1.02
G.4.12 Station AddressThis command is used to get current station and broadcast MAC addresses and, if supported, to
change the current station MAC address.
G.4.12.1 Issuing the CommandTo issue a Station Address command, create a CDB and fill it in as shows in the table below:
CDB Field How to initialize the CDB structure for a Station Address command
OpCode PXE_OPCODE_STATION_ADDRESS
OpFlags Set as needed.
CPBsize sizeof(PXE_CPB_STATION_ADDRESS)
DBsize sizeof(PXE_DB_STATION_ADDRESS)
CPBaddr Address of PXE_CPB_STATION_ADDRESS structure.
DBaddr Address of PXE_DB_STATION_ADDRESS structure.
StatCode PXE_STATCODE_INITIALIZE
StatFlags PXE_STATFLAGS_INITIALIZE
IFnum A valid interface number from zero to !PXE.IFcnt.
Control Set as needed.
OpFlags
To read current station and broadcast MAC addresses set the OpFlags field to:
• PXE_OPFLAGS_STATION_ADDRESS_READ
To change the current station to the address given in the CPB set the OpFlags field to:
• PXE_OPFLAGS_STATION_ADDRESS_WRITE
To reset the current station address back to the power on default, set the OpFlags field to:
• PXE_OPFLAGS_STATION_ADDRESS_RESET
Preparing the CPB
To change the current station MAC address the CDB.CPBsize and CDB.CPBaddr fields must
be set.
typedef struct s_pxe_cpb_station_address {
// If supplied and supported, the current station MAC address
// will be changed.
PXE_MAC_ADDR StationAddr;
} PXE_CPB_STATION_ADDRESS;