aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-06-27[Automatic update for 2021-06-27]Gerald Combs4-15/+136
Update manuf, services enterprise numbers, translations, and other items.
2021-06-21mergecap: improve the example.Guy Harris1-4/+21
Explain, in detail, exactly what it's trying to do and, for each of the three commands in the example, what each step does, as well as explaining what the calculation using the end time of one capture and start time of another capture is doing. (Where did this example come from? What is the real-world goal of this exercise? And why is it an example in which all the fancy stuff is done in commands *other* than mergecap?) (cherry picked from commit 628fe2549a47f4f246dd645d5d15dad3edc35cb7)
2021-06-20[Automatic update for 2021-06-20]Gerald Combs5-20/+90
Update manuf, services enterprise numbers, translations, and other items.
2021-06-19GitLab CI: Add initial Windows package builds.Gerald Combs1-0/+91
Manually copy over the Win64 Package and Win32 Package jobs from 2d9280089c in master and adapt for the 3.4 release builds.
2021-06-19pcap-common: set the time stamp precision correctly for LINKTYPE_ERF.Guy Harris1-0/+9
LINKTYPE_ERF pcap files are really ERF files inside a thin pcap wrapper (don't even ask what a pcapng file with some or all interfaces being LINKTYPE_ERF is...), so the time stamp comes from the ERF record, not from the pcap packet header or pcapng block header. The time stamp reslution for the record should reflect that, so set it to WTAP_TSPREC_NSEC (ERF time stamps are fractional-power-of-2, not fractional-power-of-10, so that's the best we can do). (cherry picked from commit 39315979c638b916d76a9dbf8c7ffb089721f01a)
2021-06-19erf: handle errors in some routines more completely.Guy Harris3-30/+164
Have them take error code and error information string arguments and, for various failures, fill them in as "internal error" indications. Check their return codes to see if they got an error. (cherry picked from commit 02cffb51a9fc048defac1085cb71d5567ae3f4fc)
2021-06-18libpcap: don't generate a fake interface for LINKTYPE_ERF files.Guy Harris1-17/+8
The ERF code will generate interfaces based on the ERF records in the file, so don't bother adding an additional dummy interface. (cherry picked from commit d69d1271f08fb4e919447dbfb8a36c2cdfe3e48b)
2021-06-18erf: set the tsprecision value of a newly-created IDB.Guy Harris1-0/+1
Don't assume the default is correct, because there's no guarantee of that - in fact, there's currently a guarantee that it's not, as it's initialized to 0, which is WTAP_TSPREC_SECS. (cherry picked from commit 49ec11f5aad2c6c29b02036ef9744c5680ee88a0)
2021-06-16wslua_tvb: fix documentation for reported_length_remaining().Guy Harris1-1/+1
In the past, tvb_reported_length_remaining(), and thus Tvb:reported_length_remaining(), may have returned -1 if the offset was invalid. That's no longer the case; the former returns 0, and, as the latter just returns the former's return value, that's true of the latter as well. (cherry picked from commit 6c043d5c73e3bdbb84f988a82ebdfc18d77489b9)
2021-06-16wslua: a tvbuff doesn't have an "actual length".Guy Harris1-4/+14
It has a "reported length", which is the closes thing to an "actual length", as it represents the length the packet, or subset thereof, had on the network, and a "captured length", which is the amount of the packet that the capture process saved. In 99.999999999999999999999999999999% of all cases, a dissector should look at the "reported length", not at the "captured length". Rename the "len" method to "captured_len", leaving "len" around for backwards compatibility. Fix the documentation to reflect reality, to avoid issues such as #15655. (cherry picked from commit bd9ceaebef86a30f5f45a8887fd01883dd0d1993)
2021-06-13[Automatic update for 2021-06-13]Gerald Combs5-28/+129
Update manuf, services enterprise numbers, translations, and other items.
2021-06-10wsutil: argv[] is a NULL terminated arrayJoão Valverde1-1/+2
(cherry picked from commit 70cea91c8a3b5c4cea33ec53dab022531b44297b)
2021-06-10wifi-nan: Fix length for availability attributeAlexis La Goutte1-1/+1
Issue reported by Behzad Mokhtari Fix #17431 (cherry picked from commit b716e2f1a2a1a592aff2c71662f0827527d72f68)
2021-06-09QT: Fix printer dialogUli Heilmeier1-1/+1
Fix EXC_BAD_ACCESS error by using printer variable. (cherry picked from commit ea20002a0783dfc1c8912ab297f2eff065edca54)
2021-06-06[Automatic update for 2021-06-06]Gerald Combs13-58/+127
Update manuf, services enterprise numbers, translations, and other items.
2021-06-05tcp: Fix dissection of DSACKChristian Reusch1-1/+1
DSACK blocks (the first SACK block in a TCP SACK option, with right edge being lower or equal to the ACK filed) are now identified correctly. Closes #17315 (cherry picked from commit 7179e1d1fbd7e6fb3d4f8848e432dd7c5ad54dae)
2021-06-04file-pcapng: fix name of expert info.Guy Harris1-1/+1
The entry was copied and pasted, and the variable name and descriptive text were changed, but the field name wasn't. (cherry picked from commit deb6786ed455fa9433caeb4d3c542be4e5918102)
2021-06-02ieee80211_radio: Use calculated bitrate if not suppliedSimon Barber1-8/+2
For 802.11n if the bitrate is not supplied then the calculated bitrate is used. This change does the same for 11ac and 11ax. Sniffer traces taken on recent versions of Macos no longer supply the bitrate for 11ac frames in the RADIOTAP header, this change allows the wireless timeline to work with these traces. Fixes #17419. (cherry picked from commit 5202119239f76af3df20540b35c618d7095c99c6)
2021-06-02GitLab CI: Move dfilter list generation.Gerald Combs1-6/+8
Create the display filter list in the APT Test step.
2021-06-02Version: 3.4.6 → 3.4.7Gerald Combs7-563/+14
[skip ci]
2021-06-02Build: 3.4.6Gerald Combs4-2/+534
[skip ci]
2021-06-02pcapng: set the length of the options item.Guy Harris1-0/+1
It runs up to either the end of the option data or the terminating end-of-options option (readers MUST handle lists of options that contains an end-of-options option and lists of options that don't). (cherry picked from commit 2f5c0ffdb26d753943201029ff65e237c1a9776b)
2021-05-31ascend: set rec->rec_type.Guy Harris1-0/+1
REC_TYPE_PACKET is 0, so if it's been initialized to 0, and never gets overwritten, this fixes code withotu fixing a visible bug, but it should be done anyway. (backported from commit 162251176ae206430b81bd8b467bc22c6c7bcd8b)
2021-05-30[Automatic update for 2021-05-30]Gerald Combs3-23/+133
Update manuf, services enterprise numbers, translations, and other items.
2021-05-29Windows: upgrade Npcap to 1.31Pascal Quantin3-7/+7
2021-05-28Prep for 3.4.6Gerald Combs1-9/+29
2021-05-28dfilter: Fix handling of escaped quotes in macrosJoão Valverde1-2/+3
We can't unescape characters when expanding a display filter macro. The escaping must be preserved until the expression is evaluated in the display filter engine, otherwise it will likely generate a syntax error in the parser. In the macro body we allow '$' (or any other char) to be escaped with backslash (preserving the backslash). Fixes #17160. (cherry picked from commit 1dba58789d7fbf6952d631774c94f63e2179d4d1)
2021-05-27Tools: Show only filenames when fuzzing.Gerald Combs1-1/+1
Show only the basename of each capture file when fuzzing, which is less noisy than the full pathname. (cherry picked from commit 4266e1e9baa2ecce49eaaa20a5beecb39d21a0af)
2021-05-26DVB-S2-BB: Prevent infinite loopJohn Thacker1-0/+2
Commit 4bf4ee88f0544727e7f89f3f288c6afd2f650a4c removed an else statement that broke out of the BBFrame processing loop. Without it, infinite loops might be possible if the GSE frames have bit errors in the length field. (cherry picked from commit 0137c24d60934f131b25506a88c9464e4dc827de)
2021-05-25ftype-protocol: Fix crash when comparing _ws.expert to literalsJohn Thacker1-2/+9
The ftype-protocol has two components to its value - a tvb, which is allowed to be be NULL (most notably in _ws.expert), and a string description. They can also be created from string literals, such as in display filters. It's possible to compare protocols with a NULL tvb with protocol terms created from literals, e.g. entering the display filter "_ws_expert < 1". Partially revert 69e2603c48d04a675785d9e7bad162ebb9a83b07 so that this doesn't crash, by assigning proto_string to the empty string instead of null when creating from a literal. Fixes #17316 (cherry picked from commit 31297dbb82da0b3adf5c257398638d9b4da94931)
2021-05-25CMake: Update autogen properties.Gerald Combs2-6/+6
Set the AUTOMOC, AUTOUIC, and AUTORCC properties for the qtui and wireshark targets to match what we currently do in master. This should keep us from running moc and uic on unwanted targets.
2021-05-25Qt: fix some Qt 5.15.2 deprecation warningsPascal Quantin2-3/+21
(cherry picked from commit fb2414ae6dbdc3d81c9ccdd24eb65cd8324065ea)
2021-05-25Release notes: The Windows installers now ship with Qt 5.15.2.Gerald Combs1-2/+2
2021-05-25GitLab CI: Enable ccache for fuzz builds.Gerald Combs1-3/+9
Enable ccache for our fuzz builds. Add sections as described at https://docs.gitlab.com/ee/ci/jobs/#expand-and-collapse-job-log-sections for the CMake step as well. (cherry picked from commit 02f4dcb0ad13fd3b671c212aec739be96ca2dc41)
2021-05-24RANAP: Don't attempt to re-register heuristic dissectorsJohn Thacker2-7/+5
Move the RANAP heuristic dissector registration under the initialization guard that they're only registered once. Prevents console warnings about the dissectors already being registered to the sccp and sua tables if a RANAP preference is changed. (Backported manually to regenerate the dissector via asn2wrs.py)
2021-05-24k12: plug a memory leak.Guy Harris1-0/+1
If the two putative number-of-records values don't match (meaning one of them is presumably the number of records and the other one isn't - we don't know which is the case), free up the private data structure we allocated before returning an error. (cherry picked from commit 7f6c5d0137c94bdc9f7b07ee249d1b3cc9396dd9)
2021-05-24erf: set USERAPPL if we have the application version but not the name.Guy Harris1-4/+7
Just say "(Unknown application) <version>". This also means that we don't leak the app_version string if there's no app_name string. (cherry picked from commit 297b6c5407426aa33b197f0f5d280ce4c6c04dc3)
2021-05-24netscaler: plug a memory leak.Guy Harris1-0/+1
Free the read buffer if the first read fails. (cherry picked from commit 976ccc9a00d5abd4f1e1a6041378f8cb1292b27e)
2021-05-24tacacs: free a buffer if it's not used.Guy Harris1-1/+3
Plugs a leak. (cherry picked from commit 1bb64b7e0ca46442b3f3a65e4b99893674b3c287)
2021-05-23dnp: plug a memory leak.Guy Harris1-0/+1
If we're throwing away the data, *throw away the data* - free it, as we're not using it as the backing data for a tvbuff. (cherry picked from commit 618661b22e34a59b21117db723d8ff91e064d4ba)
2021-05-23[Automatic update for 2021-05-23]Gerald Combs5-19/+131
Update manuf, services enterprise numbers, translations, and other items.
2021-05-23OID handling: fix a memory leak.Guy Harris1-4/+21
There's a "break" in some code that appears to be copied and pasted from a switch statement; the break would exit the loop (and leak memory allocated within the loop), which does not appear to be the intent, so it may have been copied over incorrectly. Remove it. While we're at it, redo the "constant-time append to the end of a loop" code to be a bit clearer, both to humans reading the code and code analyzers reading the code. (cherry picked from commit c73ab16bef0c97dd67f03fdfa7063958d1712d8b)
2021-05-23epl-profile-parser: plug a memory leak.Guy Harris1-0/+1
g_key_file_get_groups() returns a pointer to g_mallocated data; we need to pass its return value to g_strfreev() when we're done with that data, to free it up. (cherry picked from commit 64f3f08702d09f912c2713ec830c91ead242507f)
2021-05-23Plug another leak.Guy Harris1-0/+1
If cf_export_specified_packets() succeeds, and it wrote to a temporary file, it leaks the name of the file to which it was writing. Free that after we've renamed that file on top of the target file (safe save). (cherry picked from commit 8ca86b29bfa4780b17e6d15ab1f382f6f79a5065)
2021-05-22Plug a memory leak.Guy Harris1-1/+3
If the user aborted the process of exporting packets, if we're writing to a temporary file, we unlink the file, but we don't free the g_mallocated name of the file, so it's leaked. Free it. (cherry picked from commit 54508703b0ac4d85df4104f6114a247d68c42b8e)
2021-05-22fuzzshark: close a leak.Guy Harris1-1/+3
If init_progfile_dir() fails, it returns a g_mallocated string with an error message. After printing the error message, free the string. (cherry picked from commit c22b857942ea3f123d9fa5c31e04e85c6f3928f5)
2021-05-22protobuf: close another leak.Guy Harris1-0/+2
Close the directory handle we've opened before returning a failure indication if pbw_load_proto_file() or load_all_files_in_dir() reports a failure. (cherry picked from commit f0abd29e48c1bd724efea606000b86356a764011)
2021-05-22protobuf: close a leak when file loading fails.Guy Harris1-1/+3
Free the path we've constructed before returning a failure indication if pbw_load_proto_file() or load_all_files_in_dir() reports a failure. Also, explicitly compare pbw_load_proto_file()'s return value against 0, to make it a little clearer that it's *not* a Boolean, it's a return code (with 0 meaning success and different non-zero values meaning failure; if it matters *which* failure it is, we should probably have otherwise we should just make it a Boolean). (cherry picked from commit f1ffe7d4215ac1cc80d9596e6604b30ddfa59fcf)
2021-05-20QUIC: improve handling of unencrypted padding dataNardi Ivan1-9/+15
0af60377b4 added an heuristic to detect (unencrypted) padding data; it is based on the fact that all coalesced QUIC packets must have the same CID. Unfortunately it doesn't work when the CID length is 0. Treat decryption error of SH packets as a non fatal error, report them as possible padding data misdetectd as coalesced packets and try decrypting next traffic. Close #17383 (cherry picked from commit 389a899a18742185d14da729bf308505ca4f4a2e)
2021-05-19AUTHORS.src: fix Jeffrey Wildman's entry.Guy Harris1-1/+1
[AT]ify his email address. This should address the recently-added problem mentioned #16658.