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