diff options
author | Guy Harris <guy@alum.mit.edu> | 1998-11-15 05:29:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1998-11-15 05:29:17 +0000 |
commit | 86bf1fc851b5564f5700a937de3213e8354aa52e (patch) | |
tree | 46a497072e194a9ed5f20733549362347c4d6eef /configure.in | |
parent | 8efdf8a74c3f0c32a380d15aeed0a3f6aff56a29 (diff) | |
download | wireshark-86bf1fc851b5564f5700a937de3213e8354aa52e.tar.gz wireshark-86bf1fc851b5564f5700a937de3213e8354aa52e.tar.bz2 wireshark-86bf1fc851b5564f5700a937de3213e8354aa52e.zip |
Add support to wiretap for reading Sun "snoop" capture files.
That requires that, in the packet-reading loop, we pass to the callback
routine the offset in the file of a packet's data, because we can no
longer compute that offset by subtracting the size of the captured
packet data from the offset in the file after the data was read -
"snoop" may stick padding in after the packet data to align packet
headers on 4-byte boundaries.
Doing that required that we arrange that we do that for "libpcap"
capture files as well; the cleanest way to do that was to write our own
code for reading "libpcap" capture files, rather than using the
"libpcap" code to do it.
Make "wtap_dispatch_cb()" and "pcap_dispatch_cb()" static to "file.c",
as they're not used elsewhere.
If we're using wiretap, don't define in "file.h" stuff used only when
we're not using wiretap.
Update the wiretap README to reflect Gilbert's and my recent changes.
Clean up some memory leaks in "wiretap/lanalyzer.c" and
"wiretap/ngsniffer.c", where the capture-file-format-specific data
wasn't freed if the open failed.
svn path=/trunk/; revision=91
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 08aa2e7402..0286fd2bdf 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.10 1998/11/12 00:06:18 gram Exp $ +# $Id: configure.in,v 1.11 1998/11/15 05:28:58 guy Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(etypes.h) @@ -91,9 +91,10 @@ AC_CHECK_HEADERS(sys/sockio.h sys/types.h netinet/in.h) dnl Checks for typedefs, structures, and compiler characteristics. # AC_C_CONST -# We need libpcap's AC_LBL_SOCKADDR_SA_LEN test for get_interface_list(). +# We need to know whether "struct sockaddr" has an "sa_len" member +# for get_interface_list(). -AC_LBL_SOCKADDR_SA_LEN +AC_ETHEREAL_STRUCT_SA_LEN # We must know our byte order AC_C_BIGENDIAN |