Go to the source code of this file.
Defines | |
| #define | ISC_NETSCOPE_H 1 |
Functions | |
| ISC_LANG_BEGINDECLS isc_result_t | isc_netscope_pton (int af, char *scopename, void *addr, isc_uint32_t *zoneid) |
| Convert a string of an IPv6 scope zone to zone index. If the conversion succeeds, 'zoneid' will store the index value. | |
Definition in file netscope.h.
| #define ISC_NETSCOPE_H 1 |
Definition at line 21 of file netscope.h.
| ISC_LANG_BEGINDECLS isc_result_t isc_netscope_pton | ( | int | af, | |
| char * | scopename, | |||
| void * | addr, | |||
| isc_uint32_t * | zoneid | |||
| ) |
Convert a string of an IPv6 scope zone to zone index. If the conversion succeeds, 'zoneid' will store the index value.
XXXJT: when a standard interface for this purpose is defined, we should use it.
Returns:
Definition at line 33 of file netscope.c.
References AF_INET6, IN6_IS_ADDR_LINKLOCAL, ISC_R_FAILURE, ISC_R_SUCCESS, isc_string_touint64(), and zone.
Referenced by bind9_getaddresses(), and token_addr().