Inter-networking layer
[Networking Stack]

Collaboration diagram for Inter-networking layer:

Modules

 Address Resolution Protocol (ARP) Service
 Internet Protocol (IP) Service

Files

file  il_messages.h
 

Internetwork layer modules messages.


file  il_interface.h
 

Internetwork layer module interface for the underlying network interface layer.


Enumerations

enum  il_messages {
  NET_IL_DEVICE = NET_IL_FIRST, NET_IL_DEVICE_STATE, NET_IL_MTU_CHANGED, NET_IL_PACKET_SPACE,
  NET_IL_RECEIVED, NET_IL_SEND
}
 

Internet layer modules messages.

More...

Internetwork layer module interface

This interface is used by other modules.



static int il_device_state_msg (int il_phone, device_id_t device_id, device_state_t state, services_t target)
 Notifies the internetwork layer modules about the device state change.
static int il_received_msg (int il_phone, device_id_t device_id, packet_t packet, services_t target)
 Notifies the internetwork layer modules about the received packet/s.
static int il_mtu_changed_msg (int il_phone, device_id_t device_id, size_t mtu, services_t target)
 Notifies the internetwork layer modules about the mtu change.

Internetwork layer specific message parameters definitions



#define IL_GET_PROTO(call)   (int) IPC_GET_ARG1(*call)
 Returns the protocol number message parameter.
#define IL_GET_SERVICE(call)   (services_t) IPC_GET_ARG2(*call)
 Returns the registering service message parameter.

Define Documentation

#define IL_GET_PROTO ( call   )     (int) IPC_GET_ARG1(*call)

Returns the protocol number message parameter.

Parameters:
[in] call The message call structure.
#define IL_GET_SERVICE ( call   )     (services_t) IPC_GET_ARG2(*call)

Returns the registering service message parameter.

Parameters:
[in] call The message call structure.

Enumeration Type Documentation

Internet layer modules messages.

Enumerator:
NET_IL_DEVICE 

New device message.

See also:
ip_device_req()
NET_IL_DEVICE_STATE 

Device state changed message.

See also:
il_device_state_msg()
NET_IL_MTU_CHANGED 

Device MTU changed message.

See also:
il_mtu_changed_msg()
NET_IL_PACKET_SPACE 

Packet size message.

See also:
il_packet_size_req()
NET_IL_RECEIVED 

Packet received message.

See also:
il_received_msg()
NET_IL_SEND 

Packet send message.

See also:
il_send_msg()

Function Documentation

static int il_device_state_msg ( int  il_phone,
device_id_t  device_id,
device_state_t  state,
services_t  target 
) [inline, static]

Notifies the internetwork layer modules about the device state change.

Parameters:
[in] il_phone The internetwork layer module phone used for (semi)remote calls.
[in] device_id The device identifier.
[in] state The new device state.
[in] target The target internetwork module service to be delivered to.
Returns:
EOK on success.

References generic_device_state_msg(), and NET_IL_DEVICE_STATE.

Referenced by nil_device_state_msg().

Here is the call graph for this function:

Here is the caller graph for this function:

static int il_mtu_changed_msg ( int  il_phone,
device_id_t  device_id,
size_t  mtu,
services_t  target 
) [inline, static]

Notifies the internetwork layer modules about the mtu change.

Parameters:
[in] il_phone The internetwork layer module phone used for (semi)remote calls.
[in] device_id The device identifier.
[in] mtu The new mtu value.
[in] target The target internetwork module service to be delivered to.
Returns:
EOK on success.

References generic_device_state_msg(), and NET_IL_MTU_CHANGED.

Referenced by eth_device_message(), and nildummy_device_message().

Here is the call graph for this function:

Here is the caller graph for this function:

static int il_received_msg ( int  il_phone,
device_id_t  device_id,
packet_t  packet,
services_t  target 
) [inline, static]

Notifies the internetwork layer modules about the received packet/s.

Parameters:
[in] il_phone The internetwork layer module phone used for (semi)remote calls.
[in] device_id The device identifier.
[in] packet The received packet or the received packet queue.
[in] target The target internetwork module service to be delivered to.
Returns:
EOK on success.

References generic_received_msg(), NET_IL_RECEIVED, and packet_get_id().

Referenced by nil_received_msg().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu Mar 11 20:46:44 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1