Rev 4707 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4707 | Rev 4722 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #ifndef __NET_IP_MESSAGES_H__ |
38 | #ifndef __NET_IP_MESSAGES_H__ |
39 | #define __NET_IP_MESSAGES_H__ |
39 | #define __NET_IP_MESSAGES_H__ |
40 | 40 | ||
41 | #include <ipc/ipc.h> |
41 | #include <ipc/ipc.h> |
42 | 42 | ||
- | 43 | #include "../../include/in.h" |
|
- | 44 | #include "../../include/ip_codes.h" |
|
- | 45 | ||
43 | /** IP module messages. |
46 | /** IP module messages. |
44 | */ |
47 | */ |
45 | typedef enum{ |
48 | typedef enum{ |
46 | /** Adds the routing entry. |
49 | /** Adds the routing entry. |
47 | * @see ip_add_route() |
50 | * @see ip_add_route() |
Line 52... | Line 55... | ||
52 | */ |
55 | */ |
53 | NET_IP_SET_GATEWAY, |
56 | NET_IP_SET_GATEWAY, |
54 | /** Processes the received error notification. |
57 | /** Processes the received error notification. |
55 | * @see ip_received_error_msg() |
58 | * @see ip_received_error_msg() |
56 | */ |
59 | */ |
57 | NET_IP_RECEIVED_ERROR |
60 | NET_IP_RECEIVED_ERROR, |
- | 61 | /** Gets the actual route information. |
|
- | 62 | * @see ip_get_route() |
|
- | 63 | */ |
|
- | 64 | NET_IP_GET_ROUTE |
|
58 | } ip_messages; |
65 | } ip_messages; |
59 | 66 | ||
60 | /** @name IP specific message parameters definitions |
67 | /** @name IP specific message parameters definitions |
61 | */ |
68 | */ |
62 | /*@{*/ |
69 | /*@{*/ |
Line 74... | Line 81... | ||
74 | /** Returns the network mask message parameter. |
81 | /** Returns the network mask message parameter. |
75 | * @param call The message call structure. Input parameter. |
82 | * @param call The message call structure. Input parameter. |
76 | */ |
83 | */ |
77 | #define IP_GET_NETMASK( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG4( * call ); addr; }) |
84 | #define IP_GET_NETMASK( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG4( * call ); addr; }) |
78 | 85 | ||
- | 86 | /** Returns the protocol message parameter. |
|
- | 87 | * @param call The message call structure. Input parameter. |
|
- | 88 | */ |
|
- | 89 | #define IP_GET_PROTOCOL( call ) (( ip_protocol_t ) IPC_GET_ARG1( * call )) |
|
- | 90 | ||
- | 91 | /** Sets the header length in the message answer. |
|
- | 92 | * @param answer The message answer structure. Output parameter. |
|
- | 93 | */ |
|
- | 94 | #define IP_SET_HEADERLEN( answer ) (( size_t * ) & IPC_GET_ARG2( * answer )) |
|
- | 95 | ||
- | 96 | ||
79 | /*@}*/ |
97 | /*@}*/ |
80 | 98 | ||
81 | #endif |
99 | #endif |
82 | 100 | ||
83 | /** @} |
101 | /** @} |