Changeset 12d7710 in mainline for uspace/srv/net/il/ip/ip_messages.h
- Timestamp:
- 2010-03-26T22:01:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1faa995
- Parents:
- 4204ad9 (diff), eaf22d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip_messages.h
r4204ad9 r12d7710 72 72 * @param[in] call The message call structure. 73 73 */ 74 #define IP_GET_ADDRESS(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;}) 74 #define IP_GET_ADDRESS(call) \ 75 ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;}) 75 76 76 77 /** Returns the gateway message parameter. 77 78 * @param[in] call The message call structure. 78 79 */ 79 #define IP_GET_GATEWAY(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;}) 80 #define IP_GET_GATEWAY(call) \ 81 ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;}) 80 82 81 83 /** Sets the header length in the message answer. 82 84 * @param[out] answer The message answer structure. 83 85 */ 84 #define IP_SET_HEADERLEN(answer) (&IPC_GET_ARG2(*answer)) 86 #define IP_SET_HEADERLEN(answer, value) \ 87 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);} 85 88 86 89 /** Returns the network mask message parameter. 87 90 * @param[in] call The message call structure. 88 91 */ 89 #define IP_GET_NETMASK(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;}) 92 #define IP_GET_NETMASK(call) \ 93 ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;}) 90 94 91 95 /** Returns the protocol message parameter. 92 96 * @param[in] call The message call structure. 93 97 */ 94 #define IP_GET_PROTOCOL(call) ((ip_protocol_t) IPC_GET_ARG1(*call)) 98 #define IP_GET_PROTOCOL(call) \ 99 ({ip_protocol_t protocol = (ip_protocol_t) IPC_GET_ARG1(*call); protocol;}) 95 100 96 101 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.