197403Sobrien/* 297403Sobrien * Copyright (c) 1988-2002 3169691Skan * The Regents of the University of California. All rights reserved. 4169691Skan * 597403Sobrien * Redistribution and use in source and binary forms, with or without 697403Sobrien * modification, are permitted provided that: (1) source code distributions 7132720Skan * retain the above copyright notice and this paragraph in its entirety, (2) 897403Sobrien * distributions including binary code include the above copyright notice and 9132720Skan * this paragraph in its entirety in the documentation or other materials 1097403Sobrien * provided with the distribution, and (3) all advertising materials mentioning 1197403Sobrien * features or use of this software display the following acknowledgement: 1297403Sobrien * ``This product includes software developed by the University of California, 1397403Sobrien * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14132720Skan * the University nor the names of its contributors may be used to endorse 1597403Sobrien * or promote products derived from this software without specific prior 1697403Sobrien * written permission. 1797403Sobrien * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1897403Sobrien * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1997403Sobrien * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20132720Skan */ 21169691Skan 22169691Skan#ifndef netdissect_pcap_missing_h 2397403Sobrien#define netdissect_pcap_missing_h 2497403Sobrien 2597403Sobrien/* 2697403Sobrien * Declarations of functions that might be missing from libpcap. 2797403Sobrien */ 2897403Sobrien 2997403Sobrien#ifndef HAVE_PCAP_LIST_DATALINKS 3097403Sobrienextern int pcap_list_datalinks(pcap_t *, int **); 3197403Sobrien#endif 3297403Sobrien 3397403Sobrien#ifndef HAVE_PCAP_DATALINK_NAME_TO_VAL 34169691Skan/* 35169691Skan * We assume no platform has one but not the other. 3697403Sobrien */ 3797403Sobrienextern int pcap_datalink_name_to_val(const char *); 3897403Sobrienextern const char *pcap_datalink_val_to_name(int); 3997403Sobrien#endif 4097403Sobrien 41132720Skan#ifndef HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 42132720Skanextern const char *pcap_datalink_val_to_description(int); 4397403Sobrien#endif 4497403Sobrien 4597403Sobrien#ifndef HAVE_PCAP_DUMP_FTELL 4697403Sobrienextern long pcap_dump_ftell(pcap_dumper_t *); 47169691Skan#endif 48169691Skan 4997403Sobrien#endif /* netdissect_pcap_missing_h */ 5097403Sobrien