#include <config.h>
#include <isc/string.h>
#include <isc/net.h>
#include <isc/netscope.h>
#include <isc/result.h>
Go to the source code of this file.
Functions | |
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.c.
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().