pcap-missing.h revision 190207
150476Speter/* 215903Swosch * Copyright (c) 1988-2002 315903Swosch * The Regents of the University of California. All rights reserved. 415903Swosch * 515903Swosch * Redistribution and use in source and binary forms, with or without 615903Swosch * modification, are permitted provided that: (1) source code distributions 715903Swosch * retain the above copyright notice and this paragraph in its entirety, (2) 815903Swosch * distributions including binary code include the above copyright notice and 915903Swosch * this paragraph in its entirety in the documentation or other materials 1015903Swosch * provided with the distribution, and (3) all advertising materials mentioning 1115903Swosch * features or use of this software display the following acknowledgement: 1215903Swosch * ``This product includes software developed by the University of California, 1315903Swosch * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 1423546Swosch * the University nor the names of its contributors may be used to endorse 1534678Sbde * or promote products derived from this software without specific prior 1623546Swosch * written permission. 1723546Swosch * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1823546Swosch * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1915903Swosch * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 2015903Swosch * 2115903Swosch * @(#) $Header: /tcpdump/master/tcpdump/pcap-missing.h,v 1.3 2005-06-03 22:08:52 guy Exp $ (LBL) 2215903Swosch */ 2315903Swosch 2439161Sobrien#ifndef tcpdump_pcap_missing_h 2515903Swosch#define tcpdump_pcap_missing_h 2639161Sobrien 2715903Swosch/* 2815903Swosch * Declarations of functions that might be missing from libpcap. 2915903Swosch */ 3015903Swosch 3115903Swosch#ifndef HAVE_PCAP_LIST_DATALINKS 3215903Swoschextern int pcap_list_datalinks(pcap_t *, int **); 3315903Swosch#endif 3432216Swosch 3532216Swosch#ifndef HAVE_PCAP_DATALINK_NAME_TO_VAL 3632216Swosch/* 3732216Swosch * We assume no platform has one but not the other. 3815903Swosch */ 3915903Swoschextern int pcap_datalink_name_to_val(const char *); 4015903Swoschextern const char *pcap_datalink_val_to_name(int); 4115903Swosch#endif 4215903Swosch 4315903Swosch#ifndef HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 4415903Swoschextern const char *pcap_datalink_val_to_description(int); 4515903Swosch#endif 4615903Swosch 4715903Swosch#ifndef HAVE_PCAP_DUMP_FTELL 4815903Swoschextern long pcap_dump_ftell(pcap_dumper_t *); 4915903Swosch#endif 5065501Sobrien 5115903Swosch#endif 5253033Sphantom 5315903Swosch 5453033Sphantom 5515903Swosch 5653033Sphantom 5715903Swosch 5815903Swosch 5915903Swosch 6015903Swosch 6115903Swosch