xref: /src/contrib/libpcap/sf-pcapng.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  *
21d109bf9eSHans Petter Selasky  * sf-pcapng.h - pcapng-file-format-specific routines
22e89167f0SRui Paulo  *
23d109bf9eSHans Petter Selasky  * Used to read pcapng savefiles.
24e89167f0SRui Paulo  */
25e89167f0SRui Paulo 
26d109bf9eSHans Petter Selasky #ifndef sf_pcapng_h
27d109bf9eSHans Petter Selasky #define	sf_pcapng_h
28e89167f0SRui Paulo 
2930a580a8SPhilip Paeps extern pcap_t *pcap_ng_check_header(const uint8_t *magic, FILE *fp,
3050224b10SXin LI     u_int precision, char *errbuf, int *err);
31e89167f0SRui Paulo 
32e89167f0SRui Paulo #endif
33