tfUseE8023

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


ttUserLinkLayer tfUseE8023 (int llMode);


Function Description

This function is used to initialize the IEEE 802.3 Ethernet link layer. The link layer must be initialized to operate in one of three possible modes:

  1. Priority (using TM_E8023_MODE_PRIORITY),
  2. Secondary (using TM_E8023_MODE_SECONDARY),
  3. or Only (using TM_E8023_MODE_ONLY).

In Priority mode, ARP requests will be initially sent using the IEEE 802.3 standard. If no response is received, an ARP request will be sent using Ethernet Type 2. Conversely in Secondary mode, Ethernet Type 2 will be attempted before resorting to the IEEE 802.3 standard. Finally in Only mode, the stack will only communicate using the IEEE 802.3 standard.

The IEEE 802.3 Ethernet link layer will automatically adjust to the standard of the reply message. In other words, if an Ethernet Type 2 reply is received in response to an IEEE 802.3 request, the stack will continue to operate using Ethernet Type 2 and vice versa.


Parameters

  • llMode
    A constant defining the mode in which the IEEE 802.3 Ethernet link layer will operate.


Returns

  • ttUserLinkLayer
    The IEEE 802.3 link layer handle.
  • NULL
    Failure


Table of Contents >> Programmer's Reference