1*d881c474Schristos /*
2*d881c474Schristos * Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998
3*d881c474Schristos * The Regents of the University of California. All rights reserved.
4*d881c474Schristos *
5*d881c474Schristos * Redistribution and use in source and binary forms, with or without
6*d881c474Schristos * modification, are permitted provided that the following conditions
7*d881c474Schristos * are met:
8*d881c474Schristos * 1. Redistributions of source code must retain the above copyright
9*d881c474Schristos * notice, this list of conditions and the following disclaimer.
10*d881c474Schristos * 2. Redistributions in binary form must reproduce the above copyright
11*d881c474Schristos * notice, this list of conditions and the following disclaimer in the
12*d881c474Schristos * documentation and/or other materials provided with the distribution.
13*d881c474Schristos * 3. All advertising materials mentioning features or use of this software
14*d881c474Schristos * must display the following acknowledgement:
15*d881c474Schristos * This product includes software developed by the Computer Systems
16*d881c474Schristos * Engineering Group at Lawrence Berkeley Laboratory.
17*d881c474Schristos * 4. Neither the name of the University nor of the Laboratory may be used
18*d881c474Schristos * to endorse or promote products derived from this software without
19*d881c474Schristos * specific prior written permission.
20*d881c474Schristos *
21*d881c474Schristos * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22*d881c474Schristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23*d881c474Schristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24*d881c474Schristos * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25*d881c474Schristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26*d881c474Schristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27*d881c474Schristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28*d881c474Schristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29*d881c474Schristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30*d881c474Schristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*d881c474Schristos * SUCH DAMAGE.
32*d881c474Schristos */
33*d881c474Schristos #include <stdio.h>
34*d881c474Schristos #include <pcap.h>
35*d881c474Schristos
36*d881c474Schristos #include "pcap-missing.h"
37*d881c474Schristos
38*d881c474Schristos long
pcap_dump_ftell(pcap_dumper_t * p)39*d881c474Schristos pcap_dump_ftell(pcap_dumper_t *p)
40*d881c474Schristos {
41*d881c474Schristos /* FIXME: Using pcap_dump_file(p) would be a better style. That would
42*d881c474Schristos * require to test if pcap_dump_file() is available, and to substitute it,
43*d881c474Schristos * if it is not.
44*d881c474Schristos */
45*d881c474Schristos return (ftell((FILE *)p));
46*d881c474Schristos }
47