~jakub/helenos/ia64-revival

« back to all changes in this revision

Viewing changes to uspace/lib/c/include/net/icmp_common.h

  • Committer: Jakub Jermar
  • Date: 2011-04-13 14:45:41 UTC
  • mfrom: (527.1.397 main-clone)
  • Revision ID: jakub@jermar.eu-20110413144541-x0j3r1zxqhsljx1o
MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
 */
28
28
 
29
 
/** @addtogroup icmp
 
29
/** @addtogroup libc
30
30
 *  @{
31
31
 */
32
32
 
33
33
/** @file
34
 
 *  ICMP module common interface.
 
34
 * ICMP module common interface.
35
35
 */
36
36
 
37
 
#ifndef __NET_ICMP_COMMON_H__
38
 
#define __NET_ICMP_COMMON_H__
 
37
#ifndef LIBC_ICMP_COMMON_H_
 
38
#define LIBC_ICMP_COMMON_H_
39
39
 
40
40
#include <ipc/services.h>
41
 
 
42
41
#include <sys/time.h>
43
42
 
44
 
/** Default timeout for incoming connections in microseconds.
45
 
 */
46
 
#define ICMP_CONNECT_TIMEOUT    (1 * 1000 * 1000)
 
43
/** Default timeout for incoming connections in microseconds (1 sec). */
 
44
#define ICMP_CONNECT_TIMEOUT  1000000
47
45
 
48
 
/** Connects to the ICMP module.
49
 
 *  @param service The ICMP module service. Ignored parameter.
50
 
 *  @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0).
51
 
 *  @returns The ICMP module phone on success.
52
 
 *  @returns The ICMP socket identifier if called by the bundle module.
53
 
 *  @returns ETIMEOUT if the connection timeouted.
54
 
 */
55
 
extern int icmp_connect_module(services_t service, suseconds_t timeout);
 
46
extern int icmp_connect_module(suseconds_t);
56
47
 
57
48
#endif
58
49