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