IP module messages. More...
#include <ipc/ipc.h>
#include "../../include/in.h"
#include "../../include/ip_codes.h"
Defines | |
IP specific message parameters definitions | |
#define | IP_GET_ADDRESS(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;}) |
Returns the address message parameter. | |
#define | IP_GET_GATEWAY(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;}) |
Returns the gateway message parameter. | |
#define | IP_SET_HEADERLEN(answer) ((size_t *) &IPC_GET_ARG2(*answer)) |
Sets the header length in the message answer. | |
#define | IP_GET_NETMASK(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;}) |
Returns the network mask message parameter. | |
#define | IP_GET_PROTOCOL(call) ((ip_protocol_t) IPC_GET_ARG1(*call)) |
Returns the protocol message parameter. | |
Enumerations | |
enum | ip_messages { NET_IP_ADD_ROUTE = NET_IP_FIRST, NET_IP_GET_ROUTE, NET_IP_RECEIVED_ERROR, NET_IP_SET_GATEWAY } |
IP module messages. More... |
IP module messages.