summaryrefslogtreecommitdiff
path: root/PACE/pace/posix/inet.inl
blob: 4df3dc421444bfc4a3172b7c30e9253c3c7c46af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* $Id$ -*- C -*-

 * =============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    inet.inl
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================= */


#include "pace/sys/socket.h"
#include "pace/sys/types.h"
#include "pace/netinet/in.h"


PACE_INLINE
unsigned long
pace_inet_addr (const char * cp)
{
  return inet_addr (cp);
}

PACE_INLINE
unsigned long
pace_inet_network (const char * cp)
{
  return inet_network (cp);
}

PACE_INLINE
struct in_addr
pace_inet_makeaddr (const int net, const int lna)
{
  return inet_makeaddr (net, lna);
}

PACE_INLINE
int
pace_inet_lnaof (const struct in_addr in)
{
  return inet_lnaof (in);
}

PACE_INLINE
int
pace_inet_netof (const struct in_addr in)
{
  return inet_netof (in);
}

PACE_INLINE
char *
pace_inet_ntoa (const struct in_addr in)
{
  return inet_ntoa (in);
}

PACE_INLINE
int
pace_inet_aton (const char * str, struct in_addr * addr)
{
  return inet_aton (str, addr);
}