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