RtnSetLinkAddress

RtnSetLinkAddress sets the hardware address (in the stack) for an instance of the driver. RtnSetLinkAddress is normally called in the RtndConfigure routine to notify the stack of the hardware (Ethernet) address of an instance of the network device. The hardware address is normally read directly from the NIC. The address may be set in the INI file, however, and then matched to the NIC to determine which NIC to use if more than one NIC of the same type exists in the system.

Syntax

void RtnSetLinkAddress(
     void *ndp,
     unsigned char *addr,
     long lLength,
     int txpendlimit
);

Parameters

ndp

Network Device Pointer. Opaque network device identifier (pointer).

addr

Pointer to a byte array indicating the hardware address for this NIC

length

Length of the hardware address (normally 6 for Ethernet)

txpendlimit

The maximum number of packets that the driver is capable of internally queuing transmit completion.

Return Values

None

Requirements

Header Drvutl.h
Library Rtxtcpip.lib
IntervalZero.com | Support | Give Feedback