netscope.c File Reference

#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.


Detailed Description

Definition in file netscope.c.


Function Documentation

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().


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha