"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/lib/isc/include/isc/netscope.h" (4 Sep 2020, 965 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "netscope.h" see the Fossies "Dox" file reference documentation.

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