1,5 → 1,5 |
/* |
* Copyright (c) 2008 Lukas Mejdrech |
* Copyright (c) 2009 Lukas Mejdrech |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
26,12 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
|
/** @addtogroup net |
/** @addtogroup net_nil |
* @{ |
*/ |
|
/** @file |
* |
* Internetwork layer services - network interface layer service type translation. |
*/ |
|
#ifndef __NET_PROTOCOL_MAP_H__ |
41,6 → 41,12 |
|
#include "ethernet_protocols.h" |
|
/** Maps the internetwork layer service to the network interface layer type. |
* @param nil Network interface layer service. Input parameter. |
* @param il Internetwork layer service. Input parameter. |
* @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 ){ |
switch( nil ){ |
case SERVICE_ETHERNET: |
57,6 → 63,12 |
} |
} |
|
/** Maps the network interface layer type to the internetwork layer service. |
* @param nil Network interface layer service. Input parameter. |
* @param protocol Network interface layer type. Input parameter. |
* @returns Internetwork layer service of the network interface layer type. |
* @returns 0 if mapping is not found. |
*/ |
static inline services_t protocol_unmap( services_t nil, int protocol ){ |
switch( nil ){ |
case SERVICE_ETHERNET: |
Property changes: |
Deleted: svn:eol-style |
-native |
\ No newline at end of property |
Added: svn:mergeinfo |