40,6 → 40,9 |
|
#include <ipc/ipc.h> |
|
#include "../../include/in.h" |
#include "../../include/ip_codes.h" |
|
/** IP module messages. |
*/ |
typedef enum{ |
54,7 → 57,11 |
/** Processes the received error notification. |
* @see ip_received_error_msg() |
*/ |
NET_IP_RECEIVED_ERROR |
NET_IP_RECEIVED_ERROR, |
/** Gets the actual route information. |
* @see ip_get_route() |
*/ |
NET_IP_GET_ROUTE |
} ip_messages; |
|
/** @name IP specific message parameters definitions |
76,6 → 83,17 |
*/ |
#define IP_GET_NETMASK( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG4( * call ); addr; }) |
|
/** Returns the protocol message parameter. |
* @param call The message call structure. Input parameter. |
*/ |
#define IP_GET_PROTOCOL( call ) (( ip_protocol_t ) IPC_GET_ARG1( * call )) |
|
/** Sets the header length in the message answer. |
* @param answer The message answer structure. Output parameter. |
*/ |
#define IP_SET_HEADERLEN( answer ) (( size_t * ) & IPC_GET_ARG2( * answer )) |
|
|
/*@}*/ |
|
#endif |