Rev 4722 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4722 | Rev 4756 | ||
|---|---|---|---|
| Line 67... | Line 67... | ||
| 67 | /** @name IP specific message parameters definitions |
67 | /** @name IP specific message parameters definitions |
| 68 | */ |
68 | */ |
| 69 | /*@{*/ |
69 | /*@{*/ |
| 70 | 70 | ||
| 71 | /** Returns the gateway message parameter. |
71 | /** Returns the gateway message parameter. |
| 72 | * @param call The message call structure. Input parameter. |
72 | * @param[in] call The message call structure. |
| 73 | */ |
73 | */ |
| 74 | #define IP_GET_GATEWAY( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG2( * call ); addr; }) |
74 | #define IP_GET_GATEWAY( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG2( * call ); addr; }) |
| 75 | 75 | ||
| 76 | /** Returns the address message parameter. |
76 | /** Returns the address message parameter. |
| 77 | * @param call The message call structure. Input parameter. |
77 | * @param[in] call The message call structure. |
| 78 | */ |
78 | */ |
| 79 | #define IP_GET_ADDRESS( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG3( * call ); addr; }) |
79 | #define IP_GET_ADDRESS( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG3( * call ); addr; }) |
| 80 | 80 | ||
| 81 | /** Returns the network mask message parameter. |
81 | /** Returns the network mask message parameter. |
| 82 | * @param call The message call structure. Input parameter. |
82 | * @param[in] call The message call structure. |
| 83 | */ |
83 | */ |
| 84 | #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; }) |
| 85 | 85 | ||
| 86 | /** Returns the protocol message parameter. |
86 | /** Returns the protocol message parameter. |
| 87 | * @param call The message call structure. Input parameter. |
87 | * @param[in] call The message call structure. |
| 88 | */ |
88 | */ |
| 89 | #define IP_GET_PROTOCOL( call ) (( ip_protocol_t ) IPC_GET_ARG1( * call )) |
89 | #define IP_GET_PROTOCOL( call ) (( ip_protocol_t ) IPC_GET_ARG1( * call )) |
| 90 | 90 | ||
| 91 | /** Sets the header length in the message answer. |
91 | /** Sets the header length in the message answer. |
| 92 | * @param answer The message answer structure. Output parameter. |
92 | * @param[out] answer The message answer structure. |
| 93 | */ |
93 | */ |
| 94 | #define IP_SET_HEADERLEN( answer ) (( size_t * ) & IPC_GET_ARG2( * answer )) |
94 | #define IP_SET_HEADERLEN( answer ) (( size_t * ) & IPC_GET_ARG2( * answer )) |
| 95 | 95 | ||
| 96 | - | ||
| 97 | /*@}*/ |
96 | /*@}*/ |
| 98 | 97 | ||
| 99 | #endif |
98 | #endif |
| 100 | 99 | ||
| 101 | /** @} |
100 | /** @} |