Changes in uspace/srv/net/il/ip/ip_messages.h [3db8889:02d9fec] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip_messages.h
r3db8889 r02d9fec 72 72 * @param[in] call The message call structure. 73 73 */ 74 #define IP_GET_ADDRESS(call) \ 75 ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;}) 74 #define IP_GET_ADDRESS(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;}) 76 75 77 76 /** Returns the gateway message parameter. 78 77 * @param[in] call The message call structure. 79 78 */ 80 #define IP_GET_GATEWAY(call) \ 81 ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;}) 79 #define IP_GET_GATEWAY(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;}) 82 80 83 81 /** Sets the header length in the message answer. 84 82 * @param[out] answer The message answer structure. 85 83 */ 86 #define IP_SET_HEADERLEN(answer, value) \ 87 {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);} 84 #define IP_SET_HEADERLEN(answer) (&IPC_GET_ARG2(*answer)) 88 85 89 86 /** Returns the network mask message parameter. 90 87 * @param[in] call The message call structure. 91 88 */ 92 #define IP_GET_NETMASK(call) \ 93 ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;}) 89 #define IP_GET_NETMASK(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;}) 94 90 95 91 /** Returns the protocol message parameter. 96 92 * @param[in] call The message call structure. 97 93 */ 98 #define IP_GET_PROTOCOL(call) \ 99 ({ip_protocol_t protocol = (ip_protocol_t) IPC_GET_ARG1(*call); protocol;}) 94 #define IP_GET_PROTOCOL(call) ((ip_protocol_t) IPC_GET_ARG1(*call)) 100 95 101 96 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.