decode_prefix.h revision 146773
1235537Sgber/*
2235537Sgber * Copyright (C) 1999 WIDE Project.
3235537Sgber * All rights reserved.
4235537Sgber *
5235537Sgber * Redistribution and use in source and binary forms, with or without
6235537Sgber * modification, are permitted provided that the following conditions
7235537Sgber * are met:
8235537Sgber * 1. Redistributions of source code must retain the above copyright
9235537Sgber *    notice, this list of conditions and the following disclaimer.
10235537Sgber * 2. Redistributions in binary form must reproduce the above copyright
11235537Sgber *    notice, this list of conditions and the following disclaimer in the
12235537Sgber *    documentation and/or other materials provided with the distribution.
13235537Sgber * 3. Neither the name of the project nor the names of its contributors
14235537Sgber *    may be used to endorse or promote products derived from this software
15235537Sgber *    without specific prior written permission.
16235537Sgber *
17235537Sgber * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
18235537Sgber * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19235537Sgber * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20235537Sgber * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
21235537Sgber * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22235537Sgber * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23235537Sgber * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24235537Sgber * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25235537Sgber * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26235537Sgber * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27235537Sgber * SUCH DAMAGE.
28235537Sgber *
29235537Sgber * Extensively modified by Hannes Gredler (hannes@juniper.net) for more
30235537Sgber * complete BGP support.
31235537Sgber */
32235537Sgber
33235537Sgber#ifndef tcpdump_decode_prefix_h
34235537Sgber#define tcpdump_decode_prefix_h
35235537Sgber
36235537Sgberextern int decode_prefix4(const u_char *pptr, char *buf, u_int buflen);
37235537Sgber#ifdef INET6
38235537Sgberextern int decode_prefix6(const u_char *pd, char *buf, u_int buflen);
39235537Sgber#endif
40245953Sian
41245953Sian#endif
42266065Sian