summaryrefslogtreecommitdiff
path: root/reordercap.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-27Fix bug9931 'Encapsulated ethernet packets sometimes show invalid FCS'Hadriel Kaplan1-0/+2
This fixes part-1 of bug9931: the uninitialized use of a wtap_pkthdr struct. The second part of the bug deals with dissectors calling the Ethernet dissector for ecnapsulated Ethernet packets but using the wrong dissector handle to do so. That's unrelated to the issue this commit addresses, so I'm splitting them up. Change-Id: I87be7b736f82dd74d8c261062f88143372b5344c Reviewed-on: https://code.wireshark.org/review/848 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-21Fix Bug 9903: 'Clicking reload-file ignores selected file format reader'Hadriel Kaplan1-0/+2
There's a relatively new feature in 1.11.3 to select a specific file format reader, instead of relying on magics or heuristics. If you select a file reader and open a file, open it, and then click the reload-file button or go to View->Reload or press the ctrl-R keymap, the file is reloaded but using the magic/heuristics again instead of the file format reader you previously chose. Likewise, the Lua relaod() function has the same issue (which is how I found this problem). I have tested this change by hand, using a Lua script, but I didn't add it to the testsuite because I need another change for my test script to work correctly. (an enhancement rather than a bug fix, which I'll submit separately) Change-Id: I48c2d9ea443e37fd9d41be43d6b6cd5a866d5b01 Reviewed-on: https://code.wireshark.org/review/764 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-25Wireshark: Add option to choose format type of capture fileMichal Labedzki1-1/+3
The best heuristic can fail, so add possibility to manually choose capture file format type, so not correctly recognize file format can be loaded in Wireshark. On the other side now it is possible to open capture file as file format to be dissected. Change-Id: I5a9f662b32ff7e042f753a92eaaa86c6e41f400a Reviewed-on: https://code.wireshark.org/review/16 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Evan Huus <eapache@gmail.com>
2014-02-07Replace "svn" with "git" all over the place.Gerald Combs1-4/+4
Rename "SVNPATH" to "GITBRANCH" since that seems more appropriate. Rename "svnversion.h" to "version.h" as Evan suggested. Update some URLs. In make-version.pl, make sure we don't set an improper upstream branch name. Use the number of commits + short hash from `git describe` for package names by default. Change-Id: I922bba8d83eabdf49284a119f55b4076bc469b96 Reviewed-on: https://code.wireshark.org/review/139 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-01-15Fun and games with const.Guy Harris1-2/+2
svn path=/trunk/; revision=54817
2014-01-02No seek-read routines use the length argument, so eliminate it fromGuy Harris1-6/+3
wtap_seek_read(). svn path=/trunk/; revision=54570
2013-12-31Add -h option (with output to stdout and exit status 0).Bill Meier1-15/+40
Add editor modelines. svn path=/trunk/; revision=54514
2013-11-09Replace wtap_nstime with nstime_t, remove wtap_nstime_to_sec.Jakub Zawadzki1-6/+6
After r50154 nstime_t is inside wsutil/ so wiretap don't need it's own copy. svn path=/trunk/; revision=53184
2013-11-08The "file types" we have are actually combinations of types andGuy Harris1-2/+2
subtypes, e.g. Network Monitor version 1 and Network Monitor version 2 are separate "file types", even though they both come from Network Monitor. Rename various functions, #defines, and variables appropriately. svn path=/trunk/; revision=53166
2013-07-26Give more detailed diagnostics for errors.Guy Harris1-11/+48
Actually *check* for errors when reading. svn path=/trunk/; revision=50934
2013-07-26Send error messages to the standard error, and include the program nameGuy Harris1-4/+8
in the error message. svn path=/trunk/; revision=50928
2013-06-19Preserve summary information when reordering a filePascal Quantin1-1/+11
svn path=/trunk/; revision=50054
2013-06-16Have the seek-read routines take a Buffer rather than a guint8 pointerGuy Harris1-4/+7
as the "where to put the packet data" argument. This lets more of the libwiretap code be common between the read and seek-read code paths, and also allows for more flexibility in the "fill in the data" path - we can expand the buffer as needed in both cases. svn path=/trunk/; revision=49949
2013-03-20 From beroset:Bill Meier1-1/+1
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438
2012-10-17Fill some phdr values also when doing random readJakub Zawadzki1-2/+0
svn path=/trunk/; revision=45619
2012-10-16Add wtap_pseudo_header union to wtap_pkthdr structure.Jakub Zawadzki1-13/+7
Use pkthdr instead of pseudo_header as argument for dissecting. svn path=/trunk/; revision=45601
2012-10-04This is basically a rewrite from Jakub Zawadzki.Martin Mathieson1-217/+91
Rather than store the FrameRecord entries in a sorted linked list, instead use an unsorted GPtrArray, then sort it all at once. Also, there is no longer the option to limit the amount of sorting (and memory used), but a new option means we can avoid writing the output file altogether if the input file is found already to be in order. svn path=/trunk/; revision=45313
2012-10-03Add a command-line option to control how large the reordering list canMartin Mathieson1-9/+55
become. The default is now 0 (infinite). svn path=/trunk/; revision=45293
2012-09-26Fix some signed/unsigned mismatches caught by cppcheck.Evan Huus1-3/+3
svn path=/trunk/; revision=45145
2012-09-24Fix count of out-of-order frames reported at end of run.Martin Mathieson1-2/+8
svn path=/trunk/; revision=45089
2012-09-24Fix for bug 7746 (from Jim Young)Martin Mathieson1-6/+5
Use G_GINT64_MODIFIER when REORDER_DEBUG is defined. svn path=/trunk/; revision=45088
2012-09-20Turn off debug.Martin Mathieson1-1/+1
svn path=/trunk/; revision=45024
2012-09-20Add a new console wiretap program to reorder the frames within a captureMartin Mathieson1-0/+353
file. This version has been tested with pcap and IxCatapult files. Haven't got config/makefile changes quite right yet, will commit later. svn path=/trunk/; revision=45023