Definition in file netaddr.h.
Go to the source code of this file.
Functions | |
| W32_FUNC DWORD | aton (const char *str) |
| Converts [a.b.c.d] or a.b.c.d to 32 bit IPv4 address. | |
| W32_FUNC BOOL | isaddr (const char *text) |
| Check if 'str' is simply an ip address. | |
| W32_FUNC int | priv_addr (DWORD ip) |
| W32_FUNC DWORD | aton_dotless (const char *str) |
| Converts `[dotless]' or `dotless' to 32 bit long (host order). | |
| W32_FUNC BOOL | isaddr_dotless (const char *str, DWORD *ip) |
| Check if 'str' is a dotless ip address. | |
| W32_FUNC char * | _inet_ntoa (char *s, DWORD x) |
| Convert an IP-address 'ip' into a string. | |
| W32_FUNC DWORD | _inet_addr (const char *s) |
| Convert a string into an IP-address. | |
| W32_FUNC const char * | _inet_atoeth (const char *src, eth_address *eth) |
| Parse string "ether-addr, ip-addr". | |
| W32_FUNC const char * | _inet6_ntoa (const void *ip) |
| Convert an IPv6-address 'ip' into a string. | |
| W32_FUNC const ip6_address * | _inet6_addr (const char *str) |
| Convert a string 'str' into an IPv6-address. | |
|
|
Convert a string 'str' into an IPv6-address.
References inet_pton(), and ip6_address. |
|
|
Convert an IPv6-address 'ip' into a string.
References inet_ntop(). |
|
|
Convert a string into an IP-address.
|
|
||||||||||||
|
Parse string "ether-addr, ip-addr". DOSX == 0: Assumes 'src' contain only legal hex-codes and ':' separators. Doesn't waste precious memory using sscanf() if DOSX==0. Read 'src', dump to ethernet buffer ('*p_eth') and return pointer to "ip-addr". Definition at line 202 of file netaddr.c. References atox(), BYTE, eth_address, and strltrim(). |
|
||||||||||||
|
Convert an IP-address 'ip' into a string.
|
|
|
Converts [a.b.c.d] or a.b.c.d to 32 bit IPv4 address.
|
|
|
Converts `[dotless]' or `dotless' to 32 bit long (host order).
References DWORD, and isaddr_dotless(). |
|
|
Check if 'str' is simply an ip address. Accepts 'a.b.c.d' or '[a.b.c.d]' forms.
|
|
||||||||||||
|
Check if 'str' is a dotless ip address. Accept "[ 0-9\[\]]+". Doesn't accept octal base.
References DWORD. |
1.3.8