beautypg.com

E.4.12 station address, E.4.12.1 issuing the command – Intel Extensible Firmware Interface User Manual

Page 935

background image

32/64-Bit UNDI Specification

Version 1.10

12/01/02

E-69

E.4.12 Station

Address

This command is used to get current station and broadcast MAC addresses and, if supported, to
change the current station MAC address.

E.4.12.1

Issuing the Command

To 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;