1335640Shselasky/*
2335640Shselasky * Copyright (c) 1993, 1994, 1995, 1996, 1997
3335640Shselasky *	The Regents of the University of California.  All rights reserved.
4335640Shselasky *
5335640Shselasky * Redistribution and use in source and binary forms, with or without
6335640Shselasky * modification, are permitted provided that: (1) source code distributions
7335640Shselasky * retain the above copyright notice and this paragraph in its entirety, (2)
8335640Shselasky * distributions including binary code include the above copyright notice and
9335640Shselasky * this paragraph in its entirety in the documentation or other materials
10335640Shselasky * provided with the distribution, and (3) all advertising materials mentioning
11335640Shselasky * features or use of this software display the following acknowledgement:
12335640Shselasky * ``This product includes software developed by the University of California,
13335640Shselasky * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14335640Shselasky * the University nor the names of its contributors may be used to endorse
15335640Shselasky * or promote products derived from this software without specific prior
16335640Shselasky * written permission.
17335640Shselasky * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18335640Shselasky * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19335640Shselasky * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20335640Shselasky *
21335640Shselasky * sf-pcap.h - libpcap-file-format-specific routines
22335640Shselasky *	Extraction/creation by Jeffrey Mogul, DECWRL
23335640Shselasky *	Modified by Steve McCanne, LBL.
24335640Shselasky *
25335640Shselasky * Used to save the received packet headers, after filtering, to
26335640Shselasky * a file, and then read them later.
27335640Shselasky * The first record in the file contains saved values for the machine
28335640Shselasky * dependent values so we can print the dump file on any architecture.
29335640Shselasky */
30335640Shselasky
31335640Shselasky#ifndef sf_pcap_h
32335640Shselasky#define	sf_pcap_h
33335640Shselasky
34356341Scyextern pcap_t *pcap_check_header(const uint8_t *magic, FILE *fp,
35335640Shselasky    u_int precision, char *errbuf, int *err);
36335640Shselasky
37335640Shselasky#endif
38