1*411677aeSAaron LI /* 2*411677aeSAaron LI * Copyright (c) 1999 Kungliga Tekniska Högskolan 3*411677aeSAaron LI * (Royal Institute of Technology, Stockholm, Sweden). 4*411677aeSAaron LI * All rights reserved. 5*411677aeSAaron LI * 6*411677aeSAaron LI * Redistribution and use in source and binary forms, with or without 7*411677aeSAaron LI * modification, are permitted provided that the following conditions 8*411677aeSAaron LI * are met: 9*411677aeSAaron LI * 10*411677aeSAaron LI * 1. Redistributions of source code must retain the above copyright 11*411677aeSAaron LI * notice, this list of conditions and the following disclaimer. 12*411677aeSAaron LI * 13*411677aeSAaron LI * 2. Redistributions in binary form must reproduce the above copyright 14*411677aeSAaron LI * notice, this list of conditions and the following disclaimer in the 15*411677aeSAaron LI * documentation and/or other materials provided with the distribution. 16*411677aeSAaron LI * 17*411677aeSAaron LI * 3. All advertising materials mentioning features or use of this software 18*411677aeSAaron LI * must display the following acknowledgement: 19*411677aeSAaron LI * This product includes software developed by the Kungliga Tekniska 20*411677aeSAaron LI * Högskolan and its contributors. 21*411677aeSAaron LI * 22*411677aeSAaron LI * 4. Neither the name of the Institute nor the names of its contributors 23*411677aeSAaron LI * may be used to endorse or promote products derived from this software 24*411677aeSAaron LI * without specific prior written permission. 25*411677aeSAaron LI * 26*411677aeSAaron LI * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 27*411677aeSAaron LI * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28*411677aeSAaron LI * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29*411677aeSAaron LI * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 30*411677aeSAaron LI * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31*411677aeSAaron LI * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32*411677aeSAaron LI * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33*411677aeSAaron LI * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34*411677aeSAaron LI * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35*411677aeSAaron LI * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36*411677aeSAaron LI * SUCH DAMAGE. 37*411677aeSAaron LI */ 38*411677aeSAaron LI 39*411677aeSAaron LI /* Address to printable string translation routines. */ 40*411677aeSAaron LI 41*411677aeSAaron LI extern const char *addrtostr(const void *src, char *dst, size_t size); 42*411677aeSAaron LI extern const char *addrtostr6(const void *src, char *dst, size_t size); 43