Changeset 7715994 in mainline for uspace/srv/net/il/ip/ip_messages.h
- Timestamp:
- 2010-03-13T12:17:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ba20a6b
- Parents:
- d0febca (diff), 2070570 (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
rd0febca r7715994 51 51 */ 52 52 NET_IP_ADD_ROUTE = NET_IP_FIRST, 53 /** Sets the default gateway.54 * @see ip_ set_default_gateway()53 /** Gets the actual route information. 54 * @see ip_get_route() 55 55 */ 56 NET_IP_ SET_GATEWAY,56 NET_IP_GET_ROUTE, 57 57 /** Processes the received error notification. 58 58 * @see ip_received_error_msg() 59 59 */ 60 60 NET_IP_RECEIVED_ERROR, 61 /** Gets the actual route information.62 * @see ip_ get_route()61 /** Sets the default gateway. 62 * @see ip_set_default_gateway() 63 63 */ 64 NET_IP_ GET_ROUTE64 NET_IP_SET_GATEWAY 65 65 } ip_messages; 66 66 … … 69 69 /*@{*/ 70 70 71 /** Returns the address message parameter. 72 * @param[in] call The message call structure. 73 */ 74 #define IP_GET_ADDRESS(call) ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;}) 75 71 76 /** Returns the gateway message parameter. 72 77 * @param[in] call The message call structure. 73 78 */ 74 #define IP_GET_GATEWAY( call ) ({ 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;}) 75 80 76 /** Returns the address message parameter.77 * @param[ in] call The message callstructure.81 /** Sets the header length in the message answer. 82 * @param[out] answer The message answer structure. 78 83 */ 79 #define IP_ GET_ADDRESS( call ) ({ in_addr_t addr; addr.s_addr = IPC_GET_ARG3( * call ); addr; })84 #define IP_SET_HEADERLEN(answer) ((size_t *) &IPC_GET_ARG2(*answer)) 80 85 81 86 /** Returns the network mask message parameter. 82 87 * @param[in] call The message call structure. 83 88 */ 84 #define IP_GET_NETMASK( call ) ({ 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;}) 85 90 86 91 /** Returns the protocol message parameter. 87 92 * @param[in] call The message call structure. 88 93 */ 89 #define IP_GET_PROTOCOL( call ) (( ip_protocol_t ) IPC_GET_ARG1( * call )) 90 91 /** Sets the header length in the message answer. 92 * @param[out] answer The message answer structure. 93 */ 94 #define IP_SET_HEADERLEN( answer ) (( size_t * ) & IPC_GET_ARG2( * answer )) 94 #define IP_GET_PROTOCOL(call) ((ip_protocol_t) IPC_GET_ARG1(*call)) 95 95 96 96 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.