Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4557 → Rev 4558

/branches/network/uspace/srv/net/include/protocol_map.h
49,7 → 49,7
* @returns Network interface layer type of the internetworking layer service.
* @returns 0 if mapping is not found.
*/
static inline int protocol_map( services_t nil, services_t il ){
static inline eth_type_t protocol_map( services_t nil, services_t il ){
switch( nil ){
case SERVICE_ETHERNET:
case SERVICE_DP8390:
94,7 → 94,7
* @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 ){
static inline int lsap_map( eth_lsap_t lsap ){
switch( lsap ){
case ETH_LSAP_IP:
return ETH_P_IP;
110,7 → 110,7
* @returns The hardware type of the network interface service.
* @returns 0 if mapping is not found.
*/
static inline int hardware_map( services_t nil ){
static inline hw_type_t hardware_map( services_t nil ){
switch( nil ){
case SERVICE_ETHERNET:
case SERVICE_DP8390: