1146773Ssam/*
2146773Ssam * Copyright (C) 1999 WIDE Project.
3146773Ssam * All rights reserved.
4146773Ssam *
5146773Ssam * Redistribution and use in source and binary forms, with or without
6146773Ssam * modification, are permitted provided that the following conditions
7146773Ssam * are met:
8146773Ssam * 1. Redistributions of source code must retain the above copyright
9146773Ssam *    notice, this list of conditions and the following disclaimer.
10146773Ssam * 2. Redistributions in binary form must reproduce the above copyright
11146773Ssam *    notice, this list of conditions and the following disclaimer in the
12146773Ssam *    documentation and/or other materials provided with the distribution.
13146773Ssam * 3. Neither the name of the project nor the names of its contributors
14146773Ssam *    may be used to endorse or promote products derived from this software
15146773Ssam *    without specific prior written permission.
16146773Ssam *
17146773Ssam * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18146773Ssam * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19146773Ssam * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20146773Ssam * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21146773Ssam * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22146773Ssam * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23146773Ssam * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24146773Ssam * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25146773Ssam * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26146773Ssam * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27146773Ssam * SUCH DAMAGE.
28146773Ssam *
29146773Ssam * Extensively modified by Hannes Gredler (hannes@juniper.net) for more
30146773Ssam * complete BGP support.
31146773Ssam */
32146773Ssam
33146773Ssam#ifndef tcpdump_decode_prefix_h
34146773Ssam#define tcpdump_decode_prefix_h
35146773Ssam
36241235Sdelphijextern int decode_prefix4(const u_char *pptr, u_int itemlen, char *buf, u_int buflen);
37146773Ssam#ifdef INET6
38241235Sdelphijextern int decode_prefix6(const u_char *pd, u_int itemlen, char *buf, u_int buflen);
39146773Ssam#endif
40146773Ssam
41146773Ssam#endif
42