/branches/network/uspace/srv/net/include/protocol_map.h |
---|
52,6 → 52,7 |
static inline int protocol_map( services_t nil, services_t il ){ |
switch( nil ){ |
case SERVICE_ETHERNET: |
case SERVICE_DP8390: |
switch( il ){ |
case SERVICE_IP: |
return ETH_P_IP; |
74,6 → 75,7 |
static inline services_t protocol_unmap( services_t nil, int protocol ){ |
switch( nil ){ |
case SERVICE_ETHERNET: |
case SERVICE_DP8390: |
switch( protocol ){ |
case ETH_P_IP: |
return SERVICE_IP; |
/branches/network/uspace/srv/net/include/il_interface.h |
---|
55,10 → 55,11 |
* @param il_phone The internetwork layer module phone used for (semi)remote calls. Input parameter. |
* @param device_id The device identifier. Input parameter. |
* @param state The new device state. Input parameter. |
* @param target The target internetwork module service to be delivered to. Input parameter. |
* @returns EOK on success. |
*/ |
static inline int il_device_state_msg( int il_phone, device_id_t device_id, device_state_t state ){ |
return generic_device_state_msg( il_phone, NET_IL_DEVICE_STATE, device_id, state ); |
static inline int il_device_state_msg( int il_phone, device_id_t device_id, device_state_t state, services_t target ){ |
return generic_device_state_msg( il_phone, NET_IL_DEVICE_STATE, device_id, state, target ); |
} |
/** Notifies the internetwork layer modules about the received packet/s. |
/branches/network/uspace/srv/net/include/ip_interface.h |
---|
68,7 → 68,13 |
*/ |
int ip_device_req( int ip_phone, device_id_t device_id, services_t netif ); |
/** \todo |
/** Sends the packet queue. |
* @param ip_phone The internet protocol phone. Input parameter. |
* @param device_id The device identifier. Input parameter. |
* @param packet The packet queue. Input parameter. |
* @param sender The sending module service. Input parameter. |
* @returns EOK on success. |
* @returns Other error codes as defined for the generic_send_msg() function. |
*/ |
int ip_send_msg( int ip_phone, device_id_t device_id, packet_t packet, services_t sender ); |