1511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall/*
2511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * Copyright (c) 1993, 1994, 1995, 1996, 1997
3511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall *	The Regents of the University of California.  All rights reserved.
4511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall *
5511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * Redistribution and use in source and binary forms, with or without
6511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * modification, are permitted provided that: (1) source code distributions
7511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * retain the above copyright notice and this paragraph in its entirety, (2)
8511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * distributions including binary code include the above copyright notice and
9511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * this paragraph in its entirety in the documentation or other materials
10511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * provided with the distribution, and (3) all advertising materials mentioning
11511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * features or use of this software display the following acknowledgement:
12511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * ``This product includes software developed by the University of California,
13511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * the University nor the names of its contributors may be used to endorse
15511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * or promote products derived from this software without specific prior
16511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * written permission.
17511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall *
21511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * sf-pcap.h - libpcap-file-format-specific routines
22511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall *	Extraction/creation by Jeffrey Mogul, DECWRL
23511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall *	Modified by Steve McCanne, LBL.
24511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall *
25511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * Used to save the received packet headers, after filtering, to
26511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * a file, and then read them later.
27511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * The first record in the file contains saved values for the machine
28511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall * dependent values so we can print the dump file on any architecture.
29511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall */
30511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall
31511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall#ifndef sf_pcap_h
32511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall#define	sf_pcap_h
33511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall
34511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrallextern pcap_t *pcap_check_header(bpf_u_int32 magic, FILE *fp,
35511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall    u_int precision, char *errbuf, int *err);
36511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall
37511eca30a483e912c274e1d8ba3a0f8f081e2227JP Abgrall#endif
38