1135446Strhodes/*
2204619Sdougb * Copyright (C) 2004-2007, 2009  Internet Systems Consortium, Inc. ("ISC")
3135446Strhodes * Copyright (C) 2002  Internet Software Consortium.
4135446Strhodes *
5193149Sdougb * Permission to use, copy, modify, and/or distribute this software for any
6135446Strhodes * purpose with or without fee is hereby granted, provided that the above
7135446Strhodes * copyright notice and this permission notice appear in all copies.
8135446Strhodes *
9135446Strhodes * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10135446Strhodes * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11135446Strhodes * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12135446Strhodes * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13135446Strhodes * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14135446Strhodes * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15135446Strhodes * PERFORMANCE OF THIS SOFTWARE.
16135446Strhodes */
17135446Strhodes
18234010Sdougb/* $Id: netscope.h,v 1.13 2009/06/25 23:48:02 tbox Exp $ */
19135446Strhodes
20135446Strhodes#ifndef ISC_NETSCOPE_H
21135446Strhodes#define ISC_NETSCOPE_H 1
22135446Strhodes
23193149Sdougb/*! \file isc/netscope.h */
24170222Sdougb
25135446StrhodesISC_LANG_BEGINDECLS
26135446Strhodes
27170222Sdougb/*%
28135446Strhodes * Convert a string of an IPv6 scope zone to zone index.  If the conversion
29135446Strhodes * succeeds, 'zoneid' will store the index value.
30170222Sdougb *
31135446Strhodes * XXXJT: when a standard interface for this purpose is defined,
32135446Strhodes * we should use it.
33135446Strhodes *
34135446Strhodes * Returns:
35170222Sdougb * \li	ISC_R_SUCCESS: conversion succeeds
36170222Sdougb * \li	ISC_R_FAILURE: conversion fails
37135446Strhodes */
38135446Strhodesisc_result_t
39135446Strhodesisc_netscope_pton(int af, char *scopename, void *addr, isc_uint32_t *zoneid);
40135446Strhodes
41135446StrhodesISC_LANG_ENDDECLS
42135446Strhodes
43204619Sdougb#endif /* ISC_NETSCOPE_H */
44