1127668Sbms/*
2127668Sbms * Copyright (c) 1988-2002
3127668Sbms *	The Regents of the University of California.  All rights reserved.
4127668Sbms *
5127668Sbms * Redistribution and use in source and binary forms, with or without
6127668Sbms * modification, are permitted provided that: (1) source code distributions
7127668Sbms * retain the above copyright notice and this paragraph in its entirety, (2)
8127668Sbms * distributions including binary code include the above copyright notice and
9127668Sbms * this paragraph in its entirety in the documentation or other materials
10127668Sbms * provided with the distribution, and (3) all advertising materials mentioning
11127668Sbms * features or use of this software display the following acknowledgement:
12127668Sbms * ``This product includes software developed by the University of California,
13127668Sbms * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14127668Sbms * the University nor the names of its contributors may be used to endorse
15127668Sbms * or promote products derived from this software without specific prior
16127668Sbms * written permission.
17127668Sbms * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18127668Sbms * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19127668Sbms * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20127668Sbms *
21190207Srpaulo * @(#) $Header: /tcpdump/master/tcpdump/pcap-missing.h,v 1.3 2005-06-03 22:08:52 guy Exp $ (LBL)
22127668Sbms */
23127668Sbms
24127668Sbms#ifndef tcpdump_pcap_missing_h
25127668Sbms#define tcpdump_pcap_missing_h
26127668Sbms
27127668Sbms/*
28127668Sbms * Declarations of functions that might be missing from libpcap.
29127668Sbms */
30127668Sbms
31127668Sbms#ifndef HAVE_PCAP_LIST_DATALINKS
32127668Sbmsextern int pcap_list_datalinks(pcap_t *, int **);
33127668Sbms#endif
34127668Sbms
35127668Sbms#ifndef HAVE_PCAP_DATALINK_NAME_TO_VAL
36127668Sbms/*
37127668Sbms * We assume no platform has one but not the other.
38127668Sbms */
39127668Sbmsextern int pcap_datalink_name_to_val(const char *);
40127668Sbmsextern const char *pcap_datalink_val_to_name(int);
41127668Sbms#endif
42127668Sbms
43127668Sbms#ifndef HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
44127668Sbmsextern const char *pcap_datalink_val_to_description(int);
45127668Sbms#endif
46127668Sbms
47147899Ssam#ifndef HAVE_PCAP_DUMP_FTELL
48147899Ssamextern long pcap_dump_ftell(pcap_dumper_t *);
49127668Sbms#endif
50127668Sbms
51147899Ssam#endif
52127668Sbms
53127668Sbms
54127668Sbms
55127668Sbms
56127668Sbms
57127668Sbms
58127668Sbms
59127668Sbms
60147899Ssam
61