Revision 03ff3ca3 slirp/misc.c
b/slirp/misc.c | ||
---|---|---|
66 | 66 |
} |
67 | 67 |
#endif |
68 | 68 |
|
69 |
#ifndef HAVE_INET_ATON |
|
70 |
int |
|
71 |
inet_aton(cp, ia) |
|
72 |
const char *cp; |
|
73 |
struct in_addr *ia; |
|
74 |
{ |
|
75 |
u_int32_t addr = inet_addr(cp); |
|
76 |
if (addr == 0xffffffff) |
|
77 |
return 0; |
|
78 |
ia->s_addr = addr; |
|
79 |
return 1; |
|
80 |
} |
|
81 |
#endif |
|
82 |
|
|
83 | 69 |
/* |
84 | 70 |
* Get our IP address and put it in our_addr |
85 | 71 |
*/ |
Also available in: Unified diff