Subversion Repositories HelenOS

Rev

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

Rev 4350 Rev 4351
Line 50... Line 50...
50
 *  @returns 0 if mapping is not found.
50
 *  @returns 0 if mapping is not found.
51
 */
51
 */
52
static inline int protocol_map( services_t nil, services_t il ){
52
static inline int protocol_map( services_t nil, services_t il ){
53
    switch( nil ){
53
    switch( nil ){
54
        case SERVICE_ETHERNET:
54
        case SERVICE_ETHERNET:
-
 
55
        case SERVICE_DP8390:
55
            switch( il ){
56
            switch( il ){
56
                case SERVICE_IP:
57
                case SERVICE_IP:
57
                    return ETH_P_IP;
58
                    return ETH_P_IP;
58
                case SERVICE_ARP:
59
                case SERVICE_ARP:
59
                    return ETH_P_ARP;
60
                    return ETH_P_ARP;
Line 72... Line 73...
72
 *  @returns 0 if mapping is not found.
73
 *  @returns 0 if mapping is not found.
73
 */
74
 */
74
static inline services_t protocol_unmap( services_t nil, int protocol ){
75
static inline services_t protocol_unmap( services_t nil, int protocol ){
75
    switch( nil ){
76
    switch( nil ){
76
        case SERVICE_ETHERNET:
77
        case SERVICE_ETHERNET:
-
 
78
        case SERVICE_DP8390:
77
            switch( protocol ){
79
            switch( protocol ){
78
                case ETH_P_IP:
80
                case ETH_P_IP:
79
                    return SERVICE_IP;
81
                    return SERVICE_IP;
80
                case ETH_P_ARP:
82
                case ETH_P_ARP:
81
                    return SERVICE_ARP;
83
                    return SERVICE_ARP;