1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * SPDX-License-Identifier: MPL-2.0
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9  *
10  * See the COPYRIGHT file distributed with this work for additional
11  * information regarding copyright ownership.
12  */
13 
14 #ifndef ISC_NETSCOPE_H
15 #define ISC_NETSCOPE_H 1
16 
17 /*! \file isc/netscope.h */
18 
19 #include <inttypes.h>
20 
21 ISC_LANG_BEGINDECLS
22 
23 /*%
24  * Convert a string of an IPv6 scope zone to zone index.  If the conversion
25  * succeeds, 'zoneid' will store the index value.
26  *
27  * XXXJT: when a standard interface for this purpose is defined,
28  * we should use it.
29  *
30  * Returns:
31  * \li	ISC_R_SUCCESS: conversion succeeds
32  * \li	ISC_R_FAILURE: conversion fails
33  */
34 isc_result_t
35 isc_netscope_pton(int af, char *scopename, void *addr, uint32_t *zoneid);
36 
37 ISC_LANG_ENDDECLS
38 
39 #endif /* ISC_NETSCOPE_H */
40