sf-pcap.h revision 214455
1214455Srpaulo/* 2214455Srpaulo * Copyright (c) 1993, 1994, 1995, 1996, 1997 3214455Srpaulo * The Regents of the University of California. All rights reserved. 4214455Srpaulo * 5214455Srpaulo * Redistribution and use in source and binary forms, with or without 6214455Srpaulo * modification, are permitted provided that: (1) source code distributions 7214455Srpaulo * retain the above copyright notice and this paragraph in its entirety, (2) 8214455Srpaulo * distributions including binary code include the above copyright notice and 9214455Srpaulo * this paragraph in its entirety in the documentation or other materials 10214455Srpaulo * provided with the distribution, and (3) all advertising materials mentioning 11214455Srpaulo * features or use of this software display the following acknowledgement: 12214455Srpaulo * ``This product includes software developed by the University of California, 13214455Srpaulo * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14214455Srpaulo * the University nor the names of its contributors may be used to endorse 15214455Srpaulo * or promote products derived from this software without specific prior 16214455Srpaulo * written permission. 17214455Srpaulo * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 18214455Srpaulo * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 19214455Srpaulo * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20214455Srpaulo * 21214455Srpaulo * sf-pcap.h - libpcap-file-format-specific routines 22214455Srpaulo * Extraction/creation by Jeffrey Mogul, DECWRL 23214455Srpaulo * Modified by Steve McCanne, LBL. 24214455Srpaulo * 25214455Srpaulo * Used to save the received packet headers, after filtering, to 26214455Srpaulo * a file, and then read them later. 27214455Srpaulo * The first record in the file contains saved values for the machine 28214455Srpaulo * dependent values so we can print the dump file on any architecture. 29214455Srpaulo */ 30214455Srpaulo 31214455Srpaulo#ifndef sf_pcap_h 32214455Srpaulo#define sf_pcap_h 33214455Srpaulo 34214455Srpauloextern int pcap_check_header(pcap_t *, bpf_u_int32, FILE *, char *); 35214455Srpaulo 36214455Srpaulo#endif 37