Changes in uspace/srv/net/il/ip/ip_messages.h [02d9fec:3db8889] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip_messages.h
r02d9fec r3db8889 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.