Changeset 71b00dcc in mainline for uspace/srv/net/il/ip/ip_messages.h
- Timestamp:
- 2010-03-07T22:51:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60ab6c3
- Parents:
- b5cbff4 (diff), 31c80a5 (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
rb5cbff4 r71b00dcc 72 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 76 /** Returns the address message parameter. 77 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 81 /** Returns the network mask message parameter. 82 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 86 /** Returns the protocol message parameter. 87 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 91 /** Sets the header length in the message answer. 92 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 96 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.