summaryrefslogtreecommitdiff
path: root/ui/gtk/export_pdu_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-03Implement Export PDU for tsharkAndersBroman1-0/+1
This patch introduces the "-U tap_name[,filter]" tshark option and is similar to the "Export PDUs as file" option in Wireshark. Wireshark implements this feature by reopening a capture file, applying a tap and finally opening the temporary file. Since tshark knows in advance that a PDU export is needed, it can optimize by not creating the temporary file and perform the export at the first opportunity. This patch splits the opening/tapping functionality from error reporting since tshark does not need a temp file and has no dialogs. The capture file comment is now specified explicitly as there is no "current file" anymore if the tap is running without active file. TODO: - Review whether it is acceptable to overwrite save_file in tshark. - Add documentation (tshark manpage). Bug: 3444 Change-Id: Ie159495d42c32c2ba7400f2991b7b8185b3fda09 Reviewed-on: https://code.wireshark.org/review/5890 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-18Don't add the wiretap directory to the list of include directories.Guy Harris1-1/+1
If you include something from the wiretap directory, always precede it with wiretap/. Fix some includes of files in the top-level directory to use a path relative to the current directory, not relative to the wiretap directory. This makes it a bit clearer what's being included. Change-Id: Ib99655a13c6006cf6c3112e9d4db6f47df9aff54 Reviewed-on: https://code.wireshark.org/review/13990 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-01-09Add missing #include ( "ui/gtk/old-gtk-compat.h" )AndersBroman1-0/+1
Change-Id: Ic53c3cd4a38c587ab3c0dcb9f8349ca50e338f80 Reviewed-on: https://code.wireshark.org/review/6443 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-01Remove unneeded includes from ui folderMartin Mathieson1-2/+0
Change-Id: Ifd1eebff9080cd3867e44e4dcb2d2681370ed60a Reviewed-on: https://code.wireshark.org/review/6128 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-07-16The plural is "PDUs", not "PDU:s".Guy Harris1-2/+2
Change-Id: I4bef734ef17b02e254b742744e2debd3038e98a0 Reviewed-on: https://code.wireshark.org/review/3074 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-07-15Cleanup the "export PDU" common code.Guy Harris1-1/+1
exp_pdu_file_open() isn't used outside ui/tap_export_pdu.c; make it static. do_export_pdu() isn't a tap routine, it's called *from* tap routines, so its last argument doesn't need to be a generic pointer; its last argument must be a pointer to an exp_pdu_t, so declare it as such. Clean up comments while we're at it. Change-Id: Iab51b54a0c272052d7876110a095f2fff66fa2c1 Reviewed-on: https://code.wireshark.org/review/3060 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-19Add the ability to dynamically add a new protocol to export PDU dialog boxPascal Quantin1-4/+4
Change-Id: I83012cc963d514982e40010e837e11a6fcf1bc3e Reviewed-on: https://code.wireshark.org/review/2423 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-11Migrate GTK icon handling to GTK 3.10 APIBalint Reczey1-1/+1
GtkStockItem usage is deprecated with all the GTK_STOCK_.* stock ids. We keep a stock id based approach but without relying on GTK's GtkStockItem system. We create our own internal stock ids for {icon, label} tuples and keep the original GTK stock id #define-s and values to preserve backward compatibility. Change-Id: Ia0b35a5903f079e92c8026e3df21bbf0be2d06b0 Reviewed-on: https://code.wireshark.org/review/302 Reviewed-by: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-06Remove unused include headerAlexis La Goutte1-3/+0
Change-Id: Ia8d5da43b1ab2db3aa508863fc94ca758cdff37d Reviewed-on: https://code.wireshark.org/review/536 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-18Add Logcat to Exported PDUMichal Labedzki1-0/+1
Logcat can be exported from ADB over USB or ADB over TCP where can occur multiple Logcat PDUs in one frame. Change-Id: I290fa131e5600c62357e5be4e76096ea5c35364b Reviewed-on: https://code.wireshark.org/review/234 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-01-20Fix indent (use 4 spaces) and remove trailing whitespaceAlexis La Goutte1-3/+3
svn path=/trunk/; revision=54854
2014-01-20Split the GUI and the tap part to make it possible to adapt to Qt.Anders Broman1-211/+30
svn path=/trunk/; revision=54850
2014-01-05Enhance NSIS Windows installer (Wireshark Qt support)Alexis La Goutte1-109/+122
* Add Radiobox to choose File Association (Wireshark GTK or Qt) * Add Checkbox to choose Wireshark Qt icon will be installed (Startup, Desktop...) * Fix unistaller (don't remove all icons...) * ... svn path=/trunk/; revision=54605
2013-12-08Fix some warnings: cast discards `__attribute__((const))' qualifier from ↵Jakub Zawadzki1-1/+1
pointer target type svn path=/trunk/; revision=53875
2013-11-08The "file types" we have are actually combinations of types andGuy Harris1-1/+1
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-08-21The export PDU mechanism creates a new capture which contains only theMartin Kaiser1-33/+30
exported PDUs. The currently opened capture file is closed. Make sure that this does not discard any unsaved data. Ask the user for confirmation and save the changes before running the export. svn path=/trunk/; revision=51459
2013-08-01Remove fdata->opt_comment, add pkt_comment to pinfoJakub Zawadzki1-5/+1
Original (read from file) comments can be accessed by pkthdr->opt_comment Keep user comments in seperated BST, add new method for epan session to get it. svn path=/trunk/; revision=51090
2013-07-29support exporting decrypted DVB-CI/CI+ SAC messagesMartin Kaiser1-0/+1
using the new export PDU mechanism svn path=/trunk/; revision=51019
2013-06-28Use newly assigned DLT for PDU export functionalityPascal Quantin1-10/+6
svn path=/trunk/; revision=50212
2013-06-26Move tempfile.{h,c} into wsutil.Jeff Morriss1-1/+1
svn path=/trunk/; revision=50163
2013-06-18Add ability to export decrypted IPsec PDUsPascal Quantin1-1/+2
svn path=/trunk/; revision=50022
2013-05-23Include ui/gtk/export_pdu_dlg.h so that the functions defined here areGuy Harris1-0/+2
checked against their declarations. svn path=/trunk/; revision=49540
2013-05-21Fix compilation with GTK version older than 2.24Pascal Quantin1-0/+2
svn path=/trunk/; revision=49476
2013-05-20Make preparation to select which level tap is to be used.Anders Broman1-6/+19
svn path=/trunk/; revision=49446
2013-05-19Add filter capabillities.Anders Broman1-30/+68
svn path=/trunk/; revision=49419
2013-05-10Fix a few bugs related to PDU export feature:Pascal Quantin1-7/+7
- tag length is wrong if proto name was a multiple of 4 bytes - tag length is wrong in case no IP address is available in packet_info structwhile tag is requested - endianness issue when dumping the port number - overlapping tag IPv4 Dst address and IPv6 Src address - do not call dissector when it is not found - typo errors Enhancements: - add a subtree for tag content - display IPv6 Src/Dst address svn path=/trunk/; revision=49232
2013-05-06Add a helper function to load tags, handle IP and port tags andAnders Broman1-1/+6
copy packet comments. svn path=/trunk/; revision=49184
2013-05-05Make compiling export_pdu_dlg.c actually work:Jörg Mayer1-3/+3
- Fix some warnings about unused variables - Add to Cmake build svn path=/trunk/; revision=49180
2013-05-05Add the abillity to export PDU:s to file using a USER_DLT adding meta data ↵Anders Broman1-0/+309
before the actual protocol PDU. Some meta tags makes it possible for the dissector of the user DLT to call the correct PDU dissector. This is prof-of-concept needs a bit of cleanup. svn path=/trunk/; revision=49176