00001 /* 00002 * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC") 00003 * Copyright (C) 2002 Internet Software Consortium. 00004 * 00005 * Permission to use, copy, modify, and/or distribute this software for any 00006 * purpose with or without fee is hereby granted, provided that the above 00007 * copyright notice and this permission notice appear in all copies. 00008 * 00009 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 00010 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 00011 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 00012 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 00013 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 00014 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00015 * PERFORMANCE OF THIS SOFTWARE. 00016 */ 00017 00018 /* $Id: netscope.h,v 1.13 2009/06/25 23:48:02 tbox Exp $ */ 00019 00020 #ifndef ISC_NETSCOPE_H 00021 #define ISC_NETSCOPE_H 1 00022 00023 /*! \file isc/netscope.h */ 00024 00025 ISC_LANG_BEGINDECLS 00026 00027 /*% 00028 * Convert a string of an IPv6 scope zone to zone index. If the conversion 00029 * succeeds, 'zoneid' will store the index value. 00030 * 00031 * XXXJT: when a standard interface for this purpose is defined, 00032 * we should use it. 00033 * 00034 * Returns: 00035 * \li ISC_R_SUCCESS: conversion succeeds 00036 * \li ISC_R_FAILURE: conversion fails 00037 */ 00038 isc_result_t 00039 isc_netscope_pton(int af, char *scopename, void *addr, isc_uint32_t *zoneid); 00040 00041 ISC_LANG_ENDDECLS 00042 00043 #endif /* ISC_NETSCOPE_H */