Changeset aadf01e in mainline for uspace/srv/net/tl/icmp/icmp_messages.h
- Timestamp:
- 2010-03-07T15:13:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 936835e
- Parents:
- aa85487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/icmp/icmp_messages.h
raa85487 raadf01e 82 82 * @param[in] call The message call structure. 83 83 */ 84 #define ICMP_GET_CODE( call ) ( icmp_code_t ) IPC_GET_ARG1( * call)84 #define ICMP_GET_CODE(call) (icmp_code_t) IPC_GET_ARG1(*call) 85 85 86 86 /** Returns the ICMP link MTU message parameter. 87 87 * @param[in] call The message call structure. 88 88 */ 89 #define ICMP_GET_MTU( call ) ( icmp_param_t ) IPC_GET_ARG3( * call)89 #define ICMP_GET_MTU(call) (icmp_param_t) IPC_GET_ARG3(*call) 90 90 91 91 /** Returns the pointer message parameter. 92 92 * @param[in] call The message call structure. 93 93 */ 94 #define ICMP_GET_POINTER( call ) ( icmp_param_t ) IPC_GET_ARG3( * call)94 #define ICMP_GET_POINTER(call) (icmp_param_t) IPC_GET_ARG3(*call) 95 95 96 96 /** Returns the size message parameter. 97 97 * @param[in] call The message call structure. 98 98 */ 99 #define ICMP_GET_SIZE( call ) ( size_t ) IPC_GET_ARG1( call)99 #define ICMP_GET_SIZE(call) (size_t) IPC_GET_ARG1(call) 100 100 101 101 /** Returns the timeout message parameter. 102 102 * @param[in] call The message call structure. 103 103 */ 104 #define ICMP_GET_TIMEOUT( call ) (( suseconds_t ) IPC_GET_ARG2( call))104 #define ICMP_GET_TIMEOUT(call) ((suseconds_t) IPC_GET_ARG2(call)) 105 105 106 106 /** Returns the time to live message parameter. 107 107 * @param[in] call The message call structure. 108 108 */ 109 #define ICMP_GET_TTL( call ) ( ip_ttl_t ) IPC_GET_ARG3( call)109 #define ICMP_GET_TTL(call) (ip_ttl_t) IPC_GET_ARG3(call) 110 110 111 111 /** Returns the type of service message parameter. 112 112 * @param[in] call The message call structure. 113 113 */ 114 #define ICMP_GET_TOS( call ) ( ip_tos_t ) IPC_GET_ARG4( call)114 #define ICMP_GET_TOS(call) (ip_tos_t) IPC_GET_ARG4(call) 115 115 116 116 /** Returns the dont fragment message parameter. 117 117 * @param[in] call The message call structure. 118 118 */ 119 #define ICMP_GET_DONT_FRAGMENT( call ) ( int ) IPC_GET_ARG5( call)119 #define ICMP_GET_DONT_FRAGMENT(call) (int) IPC_GET_ARG5(call) 120 120 121 121 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.