aboutsummaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1998-11-15 05:29:17 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1998-11-15 05:29:17 +0000
commitcc4849031df00fd7e5b7c697aa2d7beedbf44734 (patch)
tree46a497072e194a9ed5f20733549362347c4d6eef /acconfig.h
parent9498d4375f396ce6c302565268be66d6a8128a12 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@91 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/acconfig.h b/acconfig.h
index e24f8eb258..49aaba9156 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -2,7 +2,7 @@
#undef VERSION
-#undef HAVE_SOCKADDR_SA_LEN
+#undef HAVE_SA_LEN
#undef DATAFILE_DIR