39,6 → 39,7 |
|
#include <ipc/services.h> |
|
#include "ethernet_lsap.h" |
#include "ethernet_protocols.h" |
|
/** Maps the internetwork layer service to the network interface layer type. |
85,6 → 86,22 |
} |
} |
|
/** Maps the link service access point identifier to the Ethernet protocol identifier. |
* @param lsap Link service access point identifier. Input parameter. |
* @returns Ethernet protocol identifier of the link service access point identifier. |
* @returns ETH_LSAP_NULL if mapping is not found. |
*/ |
static inline int lsap_map( int lsap ){ |
switch( lsap ){ |
case ETH_LSAP_IP: |
return ETH_P_IP; |
case ETH_LSAP_ARP: |
return ETH_P_ARP; |
default: |
return ETH_LSAP_NULL; |
} |
} |
|
#endif |
|
/** @} |