![]() |
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 IL_GET_PROTO | ( | call | ) | (int) IPC_GET_ARG1(*call) |
Returns the protocol number message parameter.
[in] | call | The message call structure. |
#define IL_GET_SERVICE | ( | call | ) | (services_t) IPC_GET_ARG2(*call) |
Returns the registering service message parameter.
[in] | call | The message call structure. |
enum il_messages |
Internet layer modules messages.
NET_IL_DEVICE |
New device message.
|
NET_IL_DEVICE_STATE |
Device state changed message.
|
NET_IL_MTU_CHANGED |
Device MTU changed message.
|
NET_IL_PACKET_SPACE |
Packet size message.
|
NET_IL_RECEIVED |
Packet received message.
|
NET_IL_SEND |
Packet send message.
|
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.
[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. |
References generic_device_state_msg(), and NET_IL_DEVICE_STATE.
Referenced by nil_device_state_msg().
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.
[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. |
References generic_device_state_msg(), and NET_IL_MTU_CHANGED.
Referenced by eth_device_message(), and nildummy_device_message().
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.
[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. |
References generic_received_msg(), NET_IL_RECEIVED, and packet_get_id().
Referenced by nil_received_msg().