RtnSetDataLong
RtnSetDataLong sets the value at offset index of the network device pointed to by ndp. RtnSetDataLong and RtnGetDataLong allow the driver writer to save driver specific data in the network device data structure.
Syntax
VOID RtnSetDataLong( PVOID ndp, LONG offset, ULONG data );
Parameters
ndp
Network Device Pointer. Opaque network device identifier (pointer).
offset
Offset of data to set.
data
Data to set in the ndp structure
Return Value
None
Remarks
The number of data elements is application-specific. The TCP/IP Stack uses 4 data elements.
RtnSetDataLong must be used to store the index the local configuration data structure into the ndp structure for use in the rest of the driver. This is usually done at the top of the RtndConfigure routine.
Data offset 0 is used to store this index.
Offset 1 is used by the NAL to store the device queue number.
Offset 2 is used by the TCP/IP Stack.
Requirements
Minimum Supported Version |
RTX64 2013 NOTE: RTX64 Network Abstraction Layer (NAL) support requires RTX64 4.0 or later |
Header |
rtnapi.h |
Library |
To use with the NAL: RTX64Nal.lib To use with the TCP/IP Stack: RtTcpip.lib |
See Also: