Changes in uspace/srv/net/include/protocol_map.h [21580dd:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/include/protocol_map.h
r21580dd raadf01e 50 50 * @returns 0 if mapping is not found. 51 51 */ 52 static inline eth_type_t protocol_map( services_t nil, services_t il){53 switch( nil){52 static inline eth_type_t protocol_map(services_t nil, services_t il){ 53 switch(nil){ 54 54 case SERVICE_ETHERNET: 55 55 case SERVICE_DP8390: 56 switch( il){56 switch(il){ 57 57 case SERVICE_IP: 58 58 return ETH_P_IP; … … 73 73 * @returns 0 if mapping is not found. 74 74 */ 75 static inline services_t protocol_unmap( services_t nil, int protocol){76 switch( nil){75 static inline services_t protocol_unmap(services_t nil, int protocol){ 76 switch(nil){ 77 77 case SERVICE_ETHERNET: 78 78 case SERVICE_DP8390: 79 switch( protocol){79 switch(protocol){ 80 80 case ETH_P_IP: 81 81 return SERVICE_IP; … … 95 95 * @returns ETH_LSAP_NULL if mapping is not found. 96 96 */ 97 static inline eth_type_t lsap_map( eth_lsap_t lsap){98 switch( lsap){97 static inline eth_type_t lsap_map(eth_lsap_t lsap){ 98 switch(lsap){ 99 99 case ETH_LSAP_IP: 100 100 return ETH_P_IP; … … 111 111 * @returns 0 if mapping is not found. 112 112 */ 113 static inline eth_lsap_t lsap_unmap( eth_type_t ethertype){114 switch( ethertype){113 static inline eth_lsap_t lsap_unmap(eth_type_t ethertype){ 114 switch(ethertype){ 115 115 case ETH_P_IP: 116 116 return ETH_LSAP_IP; … … 127 127 * @returns 0 if mapping is not found. 128 128 */ 129 static inline hw_type_t hardware_map( services_t nil){130 switch( nil){129 static inline hw_type_t hardware_map(services_t nil){ 130 switch(nil){ 131 131 case SERVICE_ETHERNET: 132 132 case SERVICE_DP8390:
Note:
See TracChangeset
for help on using the changeset viewer.