| 1 | /* $Id$ */ |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | * Copyright (c) 2001-2004 Aaron Turner. |
|---|
| 5 | * All rights reserved. |
|---|
| 6 | * |
|---|
| 7 | * Redistribution and use in source and binary forms, with or without |
|---|
| 8 | * modification, are permitted provided that the following conditions |
|---|
| 9 | * are met: |
|---|
| 10 | * |
|---|
| 11 | * 1. Redistributions of source code must retain the above copyright |
|---|
| 12 | * notice, this list of conditions and the following disclaimer. |
|---|
| 13 | * 2. Redistributions in binary form must reproduce the above copyright |
|---|
| 14 | * notice, this list of conditions and the following disclaimer in the |
|---|
| 15 | * documentation and/or other materials provided with the distribution. |
|---|
| 16 | * 3. Neither the names of the copyright owners nor the names of its |
|---|
| 17 | * contributors may be used to endorse or promote products derived from |
|---|
| 18 | * this software without specific prior written permission. |
|---|
| 19 | * |
|---|
| 20 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED |
|---|
| 21 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|---|
| 22 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|---|
| 23 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|---|
| 24 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|---|
| 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
|---|
| 26 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|---|
| 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER |
|---|
| 28 | * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
|---|
| 29 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
|---|
| 30 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 31 | */ |
|---|
| 32 | |
|---|
| 33 | #ifdef HAVE_PCAPNAV |
|---|
| 34 | #include <pcapnav.h> |
|---|
| 35 | #define _FAKEPCAPNAV_H_ |
|---|
| 36 | #endif |
|---|
| 37 | |
|---|
| 38 | #ifndef _FAKEPCAPNAV_H_ |
|---|
| 39 | #define _FAKEPCAPNAV_H_ |
|---|
| 40 | |
|---|
| 41 | #include "config.h" |
|---|
| 42 | #include "defines.h" |
|---|
| 43 | |
|---|
| 44 | #ifndef HAVE_PCAPNAV |
|---|
| 45 | |
|---|
| 46 | typedef struct pcapnav pcapnav_t; |
|---|
| 47 | |
|---|
| 48 | struct pcapnav { |
|---|
| 49 | pcap_t *pcap; |
|---|
| 50 | }; |
|---|
| 51 | |
|---|
| 52 | void pcapnav_init(void); |
|---|
| 53 | pcapnav_t *pcapnav_open_offline(const char *); |
|---|
| 54 | void pcapnav_close(pcapnav_t *); |
|---|
| 55 | pcap_t *pcapnav_pcap(pcapnav_t *); |
|---|
| 56 | |
|---|
| 57 | #endif |
|---|
| 58 | |
|---|
| 59 | #endif |
|---|
| 60 | |
|---|
| 61 | /* |
|---|
| 62 | Local Variables: |
|---|
| 63 | mode:c |
|---|
| 64 | indent-tabs-mode:nil |
|---|
| 65 | c-basic-offset:4 |
|---|
| 66 | End: |
|---|
| 67 | */ |
|---|
| 68 | |
|---|
| 69 | |
|---|