Subversion Repositories HelenOS

Rev

Rev 4708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4708 Rev 4743
Line 103... Line 103...
103
        default:
103
        default:
104
            return ETH_LSAP_NULL;
104
            return ETH_LSAP_NULL;
105
    }
105
    }
106
}
106
}
107
 
107
 
-
 
108
/** Maps the Ethernet protocol identifier to the link service access point identifier.
-
 
109
 *  @param ethertype Ethernet protocol identifier. Input parameter.
-
 
110
 *  @returns Link service access point identifier.
-
 
111
 *  @returns 0 if mapping is not found.
-
 
112
 */
-
 
113
static inline eth_lsap_t lsap_unmap( eth_type_t ethertype ){
-
 
114
    switch( ethertype ){
-
 
115
        case ETH_P_IP:
-
 
116
            return ETH_LSAP_IP;
-
 
117
        case ETH_P_ARP:
-
 
118
            return ETH_LSAP_ARP;
-
 
119
        default:
-
 
120
            return 0;
-
 
121
    }
-
 
122
}
-
 
123
 
108
/** Maps the network interface layer services to the hardware types.
124
/** Maps the network interface layer services to the hardware types.
109
 *  @param nil The network interface service. Input parameter.
125
 *  @param nil The network interface service. Input parameter.
110
 *  @returns The hardware type of the network interface service.
126
 *  @returns The hardware type of the network interface service.
111
 *  @returns 0 if mapping is not found.
127
 *  @returns 0 if mapping is not found.
112
 */
128
 */