Rev 4558 | Rev 4743 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4558 | Rev 4708 | ||
|---|---|---|---|
| Line 92... | Line 92... | ||
| 92 | /** Maps the link service access point identifier to the Ethernet protocol identifier. |
92 | /** Maps the link service access point identifier to the Ethernet protocol identifier. |
| 93 | * @param lsap Link service access point identifier. Input parameter. |
93 | * @param lsap Link service access point identifier. Input parameter. |
| 94 | * @returns Ethernet protocol identifier of the link service access point identifier. |
94 | * @returns Ethernet protocol identifier of the link service access point identifier. |
| 95 | * @returns ETH_LSAP_NULL if mapping is not found. |
95 | * @returns ETH_LSAP_NULL if mapping is not found. |
| 96 | */ |
96 | */ |
| 97 | static inline int lsap_map( eth_lsap_t lsap ){ |
97 | static inline eth_type_t lsap_map( eth_lsap_t lsap ){ |
| 98 | switch( lsap ){ |
98 | switch( lsap ){ |
| 99 | case ETH_LSAP_IP: |
99 | case ETH_LSAP_IP: |
| 100 | return ETH_P_IP; |
100 | return ETH_P_IP; |
| 101 | case ETH_LSAP_ARP: |
101 | case ETH_LSAP_ARP: |
| 102 | return ETH_P_ARP; |
102 | return ETH_P_ARP; |