105,6 → 105,22 |
} |
} |
|
/** Maps the Ethernet protocol identifier to the link service access point identifier. |
* @param ethertype Ethernet protocol identifier. Input parameter. |
* @returns Link service access point identifier. |
* @returns 0 if mapping is not found. |
*/ |
static inline eth_lsap_t lsap_unmap( eth_type_t ethertype ){ |
switch( ethertype ){ |
case ETH_P_IP: |
return ETH_LSAP_IP; |
case ETH_P_ARP: |
return ETH_LSAP_ARP; |
default: |
return 0; |
} |
} |
|
/** Maps the network interface layer services to the hardware types. |
* @param nil The network interface service. Input parameter. |
* @returns The hardware type of the network interface service. |