1*05b00f60SXin Li /* 2*05b00f60SXin Li * Copyright (c) 1988-2002 3*05b00f60SXin Li * The Regents of the University of California. All rights reserved. 4*05b00f60SXin Li * 5*05b00f60SXin Li * Redistribution and use in source and binary forms, with or without 6*05b00f60SXin Li * modification, are permitted provided that: (1) source code distributions 7*05b00f60SXin Li * retain the above copyright notice and this paragraph in its entirety, (2) 8*05b00f60SXin Li * distributions including binary code include the above copyright notice and 9*05b00f60SXin Li * this paragraph in its entirety in the documentation or other materials 10*05b00f60SXin Li * provided with the distribution, and (3) all advertising materials mentioning 11*05b00f60SXin Li * features or use of this software display the following acknowledgement: 12*05b00f60SXin Li * ``This product includes software developed by the University of California, 13*05b00f60SXin Li * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14*05b00f60SXin Li * the University nor the names of its contributors may be used to endorse 15*05b00f60SXin Li * or promote products derived from this software without specific prior 16*05b00f60SXin Li * written permission. 17*05b00f60SXin Li * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18*05b00f60SXin Li * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19*05b00f60SXin Li * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20*05b00f60SXin Li */ 21*05b00f60SXin Li 22*05b00f60SXin Li #ifndef netdissect_pcap_missing_h 23*05b00f60SXin Li #define netdissect_pcap_missing_h 24*05b00f60SXin Li 25*05b00f60SXin Li /* 26*05b00f60SXin Li * Declarations of functions that might be missing from libpcap. 27*05b00f60SXin Li */ 28*05b00f60SXin Li 29*05b00f60SXin Li #ifndef HAVE_PCAP_LIST_DATALINKS 30*05b00f60SXin Li extern int pcap_list_datalinks(pcap_t *, int **); 31*05b00f60SXin Li #endif 32*05b00f60SXin Li 33*05b00f60SXin Li #ifndef HAVE_PCAP_DATALINK_NAME_TO_VAL 34*05b00f60SXin Li /* 35*05b00f60SXin Li * We assume no platform has one but not the other. 36*05b00f60SXin Li */ 37*05b00f60SXin Li extern int pcap_datalink_name_to_val(const char *); 38*05b00f60SXin Li extern const char *pcap_datalink_val_to_name(int); 39*05b00f60SXin Li #endif 40*05b00f60SXin Li 41*05b00f60SXin Li #ifndef HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 42*05b00f60SXin Li extern const char *pcap_datalink_val_to_description(int); 43*05b00f60SXin Li #endif 44*05b00f60SXin Li 45*05b00f60SXin Li #ifndef HAVE_PCAP_DUMP_FTELL 46*05b00f60SXin Li extern long pcap_dump_ftell(pcap_dumper_t *); 47*05b00f60SXin Li #endif 48*05b00f60SXin Li 49*05b00f60SXin Li #endif /* netdissect_pcap_missing_h */ 50