1feb4ecdbSBruce M Simpson /* 2c8c6d70eSXin LI * Copyright (c) 1994, 1996 3feb4ecdbSBruce M Simpson * The Regents of the University of California. All rights reserved. 4feb4ecdbSBruce M Simpson * 5feb4ecdbSBruce M Simpson * Redistribution and use in source and binary forms, with or without 6feb4ecdbSBruce M Simpson * modification, are permitted provided that the following conditions 7feb4ecdbSBruce M Simpson * are met: 8feb4ecdbSBruce M Simpson * 1. Redistributions of source code must retain the above copyright 9feb4ecdbSBruce M Simpson * notice, this list of conditions and the following disclaimer. 10feb4ecdbSBruce M Simpson * 2. Redistributions in binary form must reproduce the above copyright 11feb4ecdbSBruce M Simpson * notice, this list of conditions and the following disclaimer in the 12feb4ecdbSBruce M Simpson * documentation and/or other materials provided with the distribution. 13feb4ecdbSBruce M Simpson * 3. All advertising materials mentioning features or use of this software 14feb4ecdbSBruce M Simpson * must display the following acknowledgement: 15feb4ecdbSBruce M Simpson * This product includes software developed by the Computer Systems 16feb4ecdbSBruce M Simpson * Engineering Group at Lawrence Berkeley Laboratory. 17feb4ecdbSBruce M Simpson * 4. Neither the name of the University nor of the Laboratory may be used 18feb4ecdbSBruce M Simpson * to endorse or promote products derived from this software without 19feb4ecdbSBruce M Simpson * specific prior written permission. 20feb4ecdbSBruce M Simpson * 21feb4ecdbSBruce M Simpson * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22feb4ecdbSBruce M Simpson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23feb4ecdbSBruce M Simpson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24feb4ecdbSBruce M Simpson * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25feb4ecdbSBruce M Simpson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26feb4ecdbSBruce M Simpson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27feb4ecdbSBruce M Simpson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28feb4ecdbSBruce M Simpson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29feb4ecdbSBruce M Simpson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30feb4ecdbSBruce M Simpson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31feb4ecdbSBruce M Simpson * SUCH DAMAGE. 32feb4ecdbSBruce M Simpson */ 33feb4ecdbSBruce M Simpson 34c8c6d70eSXin LI #ifdef __cplusplus 35c8c6d70eSXin LI extern "C" { 36feb4ecdbSBruce M Simpson #endif 37feb4ecdbSBruce M Simpson 38c8c6d70eSXin LI /* 39c8c6d70eSXin LI * Routines used for name-or-address-string-to-address resolution 40c8c6d70eSXin LI * that are *not* exported to code using libpcap. 41c8c6d70eSXin LI */ 42c8c6d70eSXin LI int __pcap_atodn(const char *, bpf_u_int32 *); 43c8c6d70eSXin LI int __pcap_atoin(const char *, bpf_u_int32 *); 44c8c6d70eSXin LI int __pcap_nametodnaddr(const char *, u_short *); 450a1fbf4cSJoseph Mingrone extern int pcapint_atoan(const char *, uint8_t *); 46feb4ecdbSBruce M Simpson 47c8c6d70eSXin LI #ifdef __cplusplus 48feb4ecdbSBruce M Simpson } 49c8c6d70eSXin LI #endif 50