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