Subversion Repositories HelenOS

Rev

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

Rev 4721 Rev 4756
Line 39... Line 39...
39
 
39
 
40
#include "icmp_codes.h"
40
#include "icmp_codes.h"
41
#include "../structures/packet/packet.h"
41
#include "../structures/packet/packet.h"
42
 
42
 
43
/** Processes the received packet prefixed with an ICMP header.
43
/** Processes the received packet prefixed with an ICMP header.
44
 *  @param packet The received packet. Input parameter.
44
 *  @param[in] packet The received packet.
45
 *  @param type The ICMP header type. Output parameter.
45
 *  @param[out] type The ICMP header type.
46
 *  @param code The ICMP header code. Output parameter.
46
 *  @param[out] code The ICMP header code.
47
 *  @param pointer The ICMP header pointer. Output parameter.
47
 *  @param[out] pointer The ICMP header pointer.
48
 *  @param mtu The ICMP header MTU. Output parameter.
48
 *  @param[out] mtu The ICMP header MTU.
49
 *  @returns The ICMP header length.
49
 *  @returns The ICMP header length.
50
 *  @returns Zero (0) if the packet contains no data.
50
 *  @returns Zero (0) if the packet contains no data.
51
 */
51
 */
52
int icmp_client_process_packet( packet_t packet, icmp_type_t * type, icmp_code_t * code, icmp_param_t * pointer, icmp_param_t * mtu );
52
int icmp_client_process_packet( packet_t packet, icmp_type_t * type, icmp_code_t * code, icmp_param_t * pointer, icmp_param_t * mtu );
53
 
53
 
54
/** Returns the ICMP header length.
54
/** Returns the ICMP header length.
55
 *  @param packet The packet. Input parameter.
55
 *  @param[in] packet The packet.
56
 *  @returns The ICMP header length in bytes.
56
 *  @returns The ICMP header length in bytes.
57
 */
57
 */
58
size_t  icmp_client_header_length( packet_t packet );
58
size_t  icmp_client_header_length( packet_t packet );
59
 
59
 
60
#endif
60
#endif