15b0fe478SBruce M Simpson /* 25b0fe478SBruce M Simpson * Copyright (c) 1988-2002 35b0fe478SBruce M Simpson * The Regents of the University of California. All rights reserved. 45b0fe478SBruce M Simpson * 55b0fe478SBruce M Simpson * Redistribution and use in source and binary forms, with or without 65b0fe478SBruce M Simpson * modification, are permitted provided that: (1) source code distributions 75b0fe478SBruce M Simpson * retain the above copyright notice and this paragraph in its entirety, (2) 85b0fe478SBruce M Simpson * distributions including binary code include the above copyright notice and 95b0fe478SBruce M Simpson * this paragraph in its entirety in the documentation or other materials 105b0fe478SBruce M Simpson * provided with the distribution, and (3) all advertising materials mentioning 115b0fe478SBruce M Simpson * features or use of this software display the following acknowledgement: 125b0fe478SBruce M Simpson * ``This product includes software developed by the University of California, 135b0fe478SBruce M Simpson * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 145b0fe478SBruce M Simpson * the University nor the names of its contributors may be used to endorse 155b0fe478SBruce M Simpson * or promote products derived from this software without specific prior 165b0fe478SBruce M Simpson * written permission. 175b0fe478SBruce M Simpson * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 185b0fe478SBruce M Simpson * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 195b0fe478SBruce M Simpson * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 205b0fe478SBruce M Simpson */ 215b0fe478SBruce M Simpson 22*3340d773SGleb Smirnoff #ifndef netdissect_pcap_missing_h 23*3340d773SGleb Smirnoff #define netdissect_pcap_missing_h 245b0fe478SBruce M Simpson 255b0fe478SBruce M Simpson /* 265b0fe478SBruce M Simpson * Declarations of functions that might be missing from libpcap. 275b0fe478SBruce M Simpson */ 285b0fe478SBruce M Simpson 295b0fe478SBruce M Simpson #ifndef HAVE_PCAP_LIST_DATALINKS 305b0fe478SBruce M Simpson extern int pcap_list_datalinks(pcap_t *, int **); 315b0fe478SBruce M Simpson #endif 325b0fe478SBruce M Simpson 335b0fe478SBruce M Simpson #ifndef HAVE_PCAP_DATALINK_NAME_TO_VAL 345b0fe478SBruce M Simpson /* 355b0fe478SBruce M Simpson * We assume no platform has one but not the other. 365b0fe478SBruce M Simpson */ 375b0fe478SBruce M Simpson extern int pcap_datalink_name_to_val(const char *); 385b0fe478SBruce M Simpson extern const char *pcap_datalink_val_to_name(int); 395b0fe478SBruce M Simpson #endif 405b0fe478SBruce M Simpson 415b0fe478SBruce M Simpson #ifndef HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 425b0fe478SBruce M Simpson extern const char *pcap_datalink_val_to_description(int); 435b0fe478SBruce M Simpson #endif 445b0fe478SBruce M Simpson 45f4d0c64aSSam Leffler #ifndef HAVE_PCAP_DUMP_FTELL 46f4d0c64aSSam Leffler extern long pcap_dump_ftell(pcap_dumper_t *); 47f4d0c64aSSam Leffler #endif 48f4d0c64aSSam Leffler 49*3340d773SGleb Smirnoff #endif /* netdissect_pcap_missing_h */ 50