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