1a85e14b0SPeter Avalos /* 2a85e14b0SPeter Avalos * Copyright (c) 1993, 1994, 1995, 1996, 1997 3a85e14b0SPeter Avalos * The Regents of the University of California. All rights reserved. 4a85e14b0SPeter Avalos * 5a85e14b0SPeter Avalos * Redistribution and use in source and binary forms, with or without 6a85e14b0SPeter Avalos * modification, are permitted provided that: (1) source code distributions 7a85e14b0SPeter Avalos * retain the above copyright notice and this paragraph in its entirety, (2) 8a85e14b0SPeter Avalos * distributions including binary code include the above copyright notice and 9a85e14b0SPeter Avalos * this paragraph in its entirety in the documentation or other materials 10a85e14b0SPeter Avalos * provided with the distribution, and (3) all advertising materials mentioning 11a85e14b0SPeter Avalos * features or use of this software display the following acknowledgement: 12a85e14b0SPeter Avalos * ``This product includes software developed by the University of California, 13a85e14b0SPeter Avalos * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14a85e14b0SPeter Avalos * the University nor the names of its contributors may be used to endorse 15a85e14b0SPeter Avalos * or promote products derived from this software without specific prior 16a85e14b0SPeter Avalos * written permission. 17a85e14b0SPeter Avalos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18a85e14b0SPeter Avalos * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19a85e14b0SPeter Avalos * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20a85e14b0SPeter Avalos * 21a85e14b0SPeter Avalos * sf-pcap.h - libpcap-file-format-specific routines 22a85e14b0SPeter Avalos * Extraction/creation by Jeffrey Mogul, DECWRL 23a85e14b0SPeter Avalos * Modified by Steve McCanne, LBL. 24a85e14b0SPeter Avalos * 25a85e14b0SPeter Avalos * Used to save the received packet headers, after filtering, to 26a85e14b0SPeter Avalos * a file, and then read them later. 27a85e14b0SPeter Avalos * The first record in the file contains saved values for the machine 28a85e14b0SPeter Avalos * dependent values so we can print the dump file on any architecture. 29a85e14b0SPeter Avalos */ 30a85e14b0SPeter Avalos 31a85e14b0SPeter Avalos #ifndef sf_pcap_h 32a85e14b0SPeter Avalos #define sf_pcap_h 33a85e14b0SPeter Avalos 34*3a289941SAaron LI extern pcap_t *pcap_check_header(const uint8_t *magic, FILE *fp, 3597a9217aSAntonio Huete Jimenez u_int precision, char *errbuf, int *err); 36a85e14b0SPeter Avalos 37a85e14b0SPeter Avalos #endif 38