xref: /netbsd-src/external/bsd/tcpdump/dist/pcap-missing.h (revision 784088dff93feed731e49a3deb54442dad68add1)
10f74e101Schristos /*
20f74e101Schristos  * Copyright (c) 1988-2002
30f74e101Schristos  *	The Regents of the University of California.  All rights reserved.
40f74e101Schristos  *
50f74e101Schristos  * Redistribution and use in source and binary forms, with or without
60f74e101Schristos  * modification, are permitted provided that: (1) source code distributions
70f74e101Schristos  * retain the above copyright notice and this paragraph in its entirety, (2)
80f74e101Schristos  * distributions including binary code include the above copyright notice and
90f74e101Schristos  * this paragraph in its entirety in the documentation or other materials
100f74e101Schristos  * provided with the distribution, and (3) all advertising materials mentioning
110f74e101Schristos  * features or use of this software display the following acknowledgement:
120f74e101Schristos  * ``This product includes software developed by the University of California,
130f74e101Schristos  * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
140f74e101Schristos  * the University nor the names of its contributors may be used to endorse
150f74e101Schristos  * or promote products derived from this software without specific prior
160f74e101Schristos  * written permission.
170f74e101Schristos  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
180f74e101Schristos  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
190f74e101Schristos  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
200f74e101Schristos  */
210f74e101Schristos 
22*784088dfSchristos #ifndef netdissect_pcap_missing_h
23*784088dfSchristos #define netdissect_pcap_missing_h
240f74e101Schristos 
250f74e101Schristos /*
260f74e101Schristos  * Declarations of functions that might be missing from libpcap.
270f74e101Schristos  */
280f74e101Schristos 
290f74e101Schristos #ifndef HAVE_PCAP_LIST_DATALINKS
300f74e101Schristos extern int pcap_list_datalinks(pcap_t *, int **);
310f74e101Schristos #endif
320f74e101Schristos 
330f74e101Schristos #ifndef HAVE_PCAP_DATALINK_NAME_TO_VAL
340f74e101Schristos /*
350f74e101Schristos  * We assume no platform has one but not the other.
360f74e101Schristos  */
370f74e101Schristos extern int pcap_datalink_name_to_val(const char *);
380f74e101Schristos extern const char *pcap_datalink_val_to_name(int);
390f74e101Schristos #endif
400f74e101Schristos 
410f74e101Schristos #ifndef HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION
420f74e101Schristos extern const char *pcap_datalink_val_to_description(int);
430f74e101Schristos #endif
440f74e101Schristos 
450f74e101Schristos #ifndef HAVE_PCAP_DUMP_FTELL
460f74e101Schristos extern long pcap_dump_ftell(pcap_dumper_t *);
470f74e101Schristos #endif
480f74e101Schristos 
49*784088dfSchristos #endif /* netdissect_pcap_missing_h */
50