Method Initialize
Initialize(ref NetworkSettings, ref int)
Initialize the network interface with the given settings.
Declaration
public int Initialize(ref NetworkSettings settings, ref int packetPadding)
Parameters
Type | Name | Description |
---|---|---|
NetworkSettings | settings | Configuration settings provided to the driver. |
int | packetPadding | Return value parameter for how much padding the interface adds to packets. Note that this parameter is only concerned about padding that would be added directly in the packets stored in the send and receive queues, not to padding that would be added by lower levels of the network stack (e.g. IP headers). |
Returns
Type | Description |
---|---|
int | 0 on success, a negative number on error. |