Subversion Repositories HelenOS

Rev

Rev 4743 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4743 Rev 4756
Line 77... Line 77...
77
/** @name ICMP specific message parameters definitions
77
/** @name ICMP specific message parameters definitions
78
 */
78
 */
79
/*@{*/
79
/*@{*/
80
 
80
 
81
/** Returns the ICMP code message parameter.
81
/** Returns the ICMP code message parameter.
82
 *  @param call The message call structure. Input parameter.
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
/** Returns the ICMP link MTU message parameter.
86
/** Returns the ICMP link MTU message parameter.
87
 *  @param call The message call structure. Input parameter.
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
/** Returns the pointer message parameter.
91
/** Returns the pointer message parameter.
92
 *  @param call The message call structure. Input parameter.
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
/** Returns the size message parameter.
96
/** Returns the size message parameter.
97
 *  @param call The message call structure. Input parameter.
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
/** Returns the timeout message parameter.
101
/** Returns the timeout message parameter.
102
 *  @param call The message call structure. Input parameter.
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
/** Returns the time to live message parameter.
106
/** Returns the time to live message parameter.
107
 *  @param call The message call structure. Input parameter.
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
/** Returns the type of service message parameter.
111
/** Returns the type of service message parameter.
112
 *  @param call The message call structure. Input parameter.
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
/** Returns the dont fragment message parameter.
116
/** Returns the dont fragment message parameter.
117
 *  @param call The message call structure. Input parameter.
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
/*@}*/
122
 
122