diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-12 21:37:02 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-12 21:37:02 +0000 |
commit | c91c1df500cc3950cc7a375aaae72f20ea0eb652 (patch) | |
tree | 34af7abdf706f06c2e9a44c55f877bcebeb600fa /wiretap | |
parent | c5e0d7ce3265b40d4ad49b670691224792551987 (diff) |
Use seasonal allocation for name resolution. This effectively scrubs our
resolution information between capture files so that we don't leak host
entries from one file to another (e.g. embarassing-host-name.example.com
from file1.pcapng into a name resolution block in file2.pcapng).
host_name_lookup_cleanup and host_name_lookup_init must now be called
after each call to se_free_all. As a result we now end up reading our
various name resolution files much more than we should.
svn path=/trunk/; revision=45511
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/file_access.c | 6 | ||||
-rw-r--r-- | wiretap/pcapng.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 1850405bd1..bf24f55241 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -742,11 +742,11 @@ static const struct file_type_info dump_open_table_base[] = { /* WTAP_FILE_MPEG_2_TS */ { "MPEG2 transport stream", "mp2t", "mp2t", "ts;mpg", FALSE, FALSE, NULL, NULL }, - + /* WTAP_FILE_VWR_80211 */ { "Ixia IxVeriWave .vwr Raw 802.11 Capture", "vwr80211", "*.vwr", ".vwr", FALSE, FALSE, NULL, NULL }, - + /* WTAP_FILE_VWR_ETH */ { "Ixia IxVeriWave .vwr Raw Ethernet Capture", "vwreth", "*.vwr", ".vwr", FALSE, FALSE, NULL, NULL } @@ -827,7 +827,7 @@ wtap_dump_can_write_encaps(int ft, const GArray *file_encaps) */ if (!wtap_dump_can_write_encap(ft, wtap_dump_file_encap_type(file_encaps))) return FALSE; - + /* * Yes. Are all the individual encapsulation types supported? */ diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c index 1bf10bfb6f..cfc438b3af 100644 --- a/wiretap/pcapng.c +++ b/wiretap/pcapng.c @@ -2138,7 +2138,7 @@ pcapng_open(wtap *wth, int *err, gchar **err_info) return -1; } pcapng_process_idb(wth, pcapng, &wblock); - pcapng_debug2("pcapng_open: Read IDB number_of_interfaces %u, wtap_encap %i", wth->number_of_interfaces, int_data.wtap_encap); + pcapng_debug2("pcapng_open: Read IDB number_of_interfaces %u, wtap_encap %i", wth->number_of_interfaces, *wblock.file_encap); } return 1; } |