#include <ipc/services.h>
#include <net/device.h>
#include <net/packet.h>
Go to the source code of this file.
Networking specific message arguments definitions | |
#define | IPC_GET_COUNT(call) ((size_t) IPC_GET_ARG2(call)) |
Return the count message argument. | |
#define | IPC_GET_DEVICE(call) ((device_id_t) IPC_GET_ARG1(call)) |
Return the device identifier message argument. | |
#define | IPC_GET_ERROR(call) ((services_t) IPC_GET_ARG4(call)) |
Return the error service message argument. | |
#define | IPC_GET_MTU(call) ((size_t) IPC_GET_ARG2(call)) |
Return the maximum transmission unit message argument. | |
#define | IPC_GET_PACKET(call) ((packet_id_t) IPC_GET_ARG2(call)) |
Return the packet identifier message argument. | |
#define | IPC_GET_PHONE(call) ((int) IPC_GET_ARG5(call)) |
Return the phone message argument. | |
#define | IPC_GET_SENDER(call) ((services_t) IPC_GET_ARG3(call)) |
Return the sender service message argument. | |
#define | IPC_GET_SERVICE(call) ((services_t) IPC_GET_ARG3(call)) |
Return the device driver service message argument. | |
#define | IPC_GET_STATE(call) ((device_state_t) IPC_GET_ARG2(call)) |
Return the device state message argument. | |
#define | IPC_GET_TARGET(call) ((services_t) IPC_GET_ARG3(call)) |
Return the target service message argument. | |
#define | IPC_SET_ADDR(answer, value) IPC_SET_ARG1(answer, (sysarg_t) (value)) |
Set the minimum address length in the message answer. | |
#define | IPC_SET_CONTENT(answer, value) IPC_SET_ARG3(answer, (sysarg_t) (value)) |
Set the maximum content size in the message answer. | |
#define | IPC_SET_DEVICE(answer, value) IPC_SET_ARG1(answer, (sysarg_t) (value)) |
Set the device identifier in the message answer. | |
#define | IPC_SET_PREFIX(answer, value) IPC_SET_ARG2(answer, (sysarg_t) (value)) |
Set the minimum prefix size in the message answer. | |
#define | IPC_SET_SUFFIX(answer, value) IPC_SET_ARG4(answer, (sysarg_t) (value)) |
Set the minimum suffix size in the message answer. | |
Networking message intervals | |
#define | IS_NET_ARP_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_ARP_FIRST, NET_ARP_LAST) |
Check if the IPC call is an ARP message. | |
#define | IS_NET_ETH_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_ETH_FIRST, NET_ETH_LAST) |
Check if the IPC call is an Ethernet message. | |
#define | IS_NET_ICMP_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_ICMP_FIRST, NET_ICMP_LAST) |
Check if the IPC call is an ICMP message. | |
#define | IS_NET_IL_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_IL_FIRST, NET_IL_LAST) |
Check if the IPC call is an inter-network layer message. | |
#define | IS_NET_IP_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_IP_FIRST, NET_IP_LAST) |
Check if the IPC call is an IP message. | |
#define | IS_NET_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_FIRST, NET_LAST) |
Check if the IPC call is a generic networking message. | |
#define | IS_NET_NET_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_NET_FIRST, NET_NET_LAST) |
Check if the IPC call is a generic networking message. | |
#define | IS_NET_NIL_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_NIL_FIRST, NET_NIL_LAST) |
Check if the IPC call is a network interface layer message. | |
#define | IS_NET_PACKET_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_PACKET_FIRST, NET_PACKET_LAST) |
Check if the IPC call is a packet manaagement system message. | |
#define | IS_NET_SOCKET_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_SOCKET_FIRST, NET_SOCKET_LAST) |
Check if the IPC call is a socket message. | |
#define | IS_NET_TCP_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_TCP_FIRST, NET_TCP_LAST) |
Check if the IPC call is a TCP message. | |
#define | IS_NET_TL_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_TL_FIRST, NET_TL_LAST) |
Check if the IPC call is a transport layer message. | |
#define | IS_NET_UDP_MESSAGE(call) IS_IN_INTERVAL(IPC_GET_IMETHOD(call), NET_UDP_FIRST, NET_UDP_LAST) |
Check if the IPC call is a UDP message. | |
#define | NET_ARP_FIRST (NET_IP_LAST + 0) |
First ARP message. | |
#define | NET_ARP_LAST (NET_ARP_FIRST + NET_ARP_COUNT) |
Last ARP message. | |
#define | NET_COUNT (NET_LAST - NET_FIRST) |
Number of networking messages. | |
#define | NET_ETH_FIRST (NET_NIL_LAST + 0) |
First Ethernet message. | |
#define | NET_ETH_LAST (NET_ETH_FIRST + NET_ETH_COUNT) |
Last Ethernet message. | |
#define | NET_FIRST 2000 |
First networking message. | |
#define | NET_ICMP_FIRST (NET_ARP_LAST + 0) |
First ICMP message. | |
#define | NET_ICMP_LAST (NET_ICMP_FIRST + NET_ICMP_COUNT) |
Last ICMP message. | |
#define | NET_IL_FIRST (NET_ETH_LAST + 0) |
First inter-network message. | |
#define | NET_IL_LAST (NET_IL_FIRST + NET_IL_COUNT) |
Last inter-network message. | |
#define | NET_IP_FIRST (NET_IL_LAST + 0) |
First IP message. | |
#define | NET_IP_LAST (NET_IP_FIRST + NET_IP_COUNT) |
Last IP message. | |
#define | NET_LAST NET_PACKET_LAST |
Last networking message. | |
#define | NET_NET_FIRST (NET_NETIF_LAST + 0) |
First general networking message. | |
#define | NET_NET_LAST (NET_NET_FIRST + NET_NET_COUNT) |
Last general networking message. | |
#define | NET_NETIF_FIRST NET_FIRST |
First network interface layer message. | |
#define | NET_NETIF_LAST (NET_NETIF_FIRST + NET_NETIF_COUNT) |
Last network interface layer message. | |
#define | NET_NIL_FIRST (NET_NET_LAST + 0) |
First network interface layer message. | |
#define | NET_NIL_LAST (NET_NIL_FIRST + NET_NIL_COUNT) |
Last network interface layer message. | |
#define | NET_PACKET_FIRST (NET_SOCKET_LAST + 0) |
First packet management system message. | |
#define | NET_PACKET_LAST (NET_PACKET_FIRST + NET_PACKET_COUNT) |
Last packet management system message. | |
#define | NET_SOCKET_FIRST (NET_TCP_LAST + 0) |
First socket message. | |
#define | NET_SOCKET_LAST (NET_SOCKET_FIRST + NET_SOCKET_COUNT) |
Last socket message. | |
#define | NET_TCP_FIRST (NET_UDP_LAST + 0) |
First TCP message. | |
#define | NET_TCP_LAST (NET_TCP_FIRST + NET_TCP_COUNT) |
Last TCP message. | |
#define | NET_TL_FIRST (NET_ICMP_LAST + 0) |
First ICMP message. | |
#define | NET_TL_LAST (NET_TL_FIRST + NET_TL_COUNT) |
Last ICMP message. | |
#define | NET_UDP_FIRST (NET_TL_LAST + 0) |
First UDP message. | |
#define | NET_UDP_LAST (NET_UDP_FIRST + NET_UDP_COUNT) |
Last UDP message. | |
Networking message counts | |
#define | NET_ARP_COUNT 5 |
Number of ARP messages. | |
#define | NET_ETH_COUNT 0 |
Number of Ethernet messages. | |
#define | NET_ICMP_COUNT 6 |
Number of ICMP messages. | |
#define | NET_IL_COUNT 6 |
Number of inter-network messages. | |
#define | NET_IP_COUNT 4 |
Number of IP messages. | |
#define | NET_NET_COUNT 3 |
Number of general networking messages. | |
#define | NET_NETIF_COUNT 6 |
Number of network interface driver messages. | |
#define | NET_NIL_COUNT 7 |
Number of network interface layer messages. | |
#define | NET_PACKET_COUNT 5 |
Number of packet management system messages. | |
#define | NET_SOCKET_COUNT 14 |
Number of socket messages. | |
#define | NET_TCP_COUNT 0 |
Number of TCP messages. | |
#define | NET_TL_COUNT 1 |
Number of transport layer messages. | |
#define | NET_UDP_COUNT 0 |
Number of UDP messages. | |
Defines | |
#define | IS_IN_INTERVAL(item, first_inclusive, last_exclusive) (((item) >= (first_inclusive)) && ((item) < (last_exclusive))) |
Return a value indicating whether the value is in the interval. |
Definition in file net.h.