Changes in uspace/lib/net/generic/protocol_map.c [f902d36:465c935] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/generic/protocol_map.c
rf902d36 r465c935 42 42 * @param[in] nil Network interface layer service. 43 43 * @param[in] il Internetwork layer service. 44 * @return Network interface layer type of the internetworking44 * @returns Network interface layer type of the internetworking 45 45 * layer service. 46 * @return Zero if mapping is not found.46 * @returns Zero if mapping is not found. 47 47 */ 48 48 eth_type_t protocol_map(services_t nil, services_t il) … … 50 50 switch (nil) { 51 51 case SERVICE_ETHERNET: 52 case SERVICE_ NE2000:52 case SERVICE_DP8390: 53 53 switch (il) { 54 54 case SERVICE_IP: … … 68 68 * @param[in] nil Network interface layer service. 69 69 * @param[in] protocol Network interface layer type. 70 * @return Internetwork layer service of the network interface70 * @returns Internetwork layer service of the network interface 71 71 * layer type. 72 * @return Zero if mapping is not found.72 * @returns Zero if mapping is not found. 73 73 */ 74 74 services_t protocol_unmap(services_t nil, int protocol) … … 76 76 switch (nil) { 77 77 case SERVICE_ETHERNET: 78 case SERVICE_ NE2000:78 case SERVICE_DP8390: 79 79 switch (protocol) { 80 80 case ETH_P_IP: … … 94 94 * 95 95 * @param[in] lsap Link service access point identifier. 96 * @return Ethernet protocol identifier of the link service access96 * @returns Ethernet protocol identifier of the link service access 97 97 * point identifier. 98 * @return ETH_LSAP_NULL if mapping is not found.98 * @returns ETH_LSAP_NULL if mapping is not found. 99 99 */ 100 100 eth_type_t lsap_map(eth_lsap_t lsap) … … 114 114 * 115 115 * @param[in] ethertype Ethernet protocol identifier. 116 * @return Link service access point identifier.117 * @return Zero if mapping is not found.116 * @returns Link service access point identifier. 117 * @returns Zero if mapping is not found. 118 118 */ 119 119 eth_lsap_t lsap_unmap(eth_type_t ethertype) … … 132 132 * 133 133 * @param[in] nil The network interface service. 134 * @return The hardware type of the network interface service.135 * @return Zero if mapping is not found.134 * @returns The hardware type of the network interface service. 135 * @returns Zero if mapping is not found. 136 136 */ 137 137 hw_type_t hardware_map(services_t nil) … … 139 139 switch (nil) { 140 140 case SERVICE_ETHERNET: 141 case SERVICE_ NE2000:141 case SERVICE_DP8390: 142 142 return HW_ETHER; 143 143 default:
Note:
See TracChangeset
for help on using the changeset viewer.