aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4402 :Jeff Morriss2010-01-261-1/+7
| | | | | | Escape all non-printable characters so that we generate valid PDML. svn path=/trunk/; revision=31674
* Update the URL of the PDML specJeff Morriss2010-01-241-1/+1
| | | | svn path=/trunk/; revision=31648
* Use more unique names for certain enum constants.Bill Meier2010-01-191-4/+4
| | | | | | | (enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
* Fix bug #1564: PSML - structure context node missing [when not displayingStephen Fisher2009-12-311-1/+4
| | | | | | | | | | | | packet #1 from the capture file] This change keeps track of whether the <structure></structure> elements and information in between have been shown yet, and if not, it shows them once. The previous behavior would only show it if packet #1 from the capture file was being shown. svn path=/trunk/; revision=31395
* Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris2009-12-101-1/+1
| | | | | | | | | | | indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227
* Removed unnecessary assignment.Stig Bjørlykke2009-10-061-1/+0
| | | | svn path=/trunk/; revision=30361
* Removed a redundant prototype.Stig Bjørlykke2009-10-041-1/+0
| | | | svn path=/trunk/; revision=30298
* Fix typoKovarththanan Rajaratnam2009-10-041-3/+3
| | | | svn path=/trunk/; revision=30291
* Introduce print_stream_ps_alloc() and start using itKovarththanan Rajaratnam2009-09-261-17/+14
| | | | svn path=/trunk/; revision=30164
* Introduce print_stream_text_alloc() and start using itKovarththanan Rajaratnam2009-09-261-17/+14
| | | | svn path=/trunk/; revision=30163
* From Richard Brodie via. Bug 3913:Kovarththanan Rajaratnam2009-09-011-5/+5
| | | | | | Free ptr array allocated through proto_find_finfo() svn path=/trunk/; revision=29654
* Also fake empty field_info's by gracefully handling NULL field_info pointer ↵Kovarththanan Rajaratnam2009-08-211-1/+8
| | | | | | elsewhere. svn path=/trunk/; revision=29490
* This patch introduces packet_add_new_data_source() which effectively ↵Kovarththanan Rajaratnam2009-08-151-0/+8
| | | | | | | | | | | | deprecates add_new_data_source(). This is based on the following observation: 1) The tvb + name (aka. data_source) is only used when the protocol tree is visible The current implementation of add_new_data_source() doesn't take this into account and simply allocates a data_source regardless. This is what packet_add_new_data_source() tries to rectify. A couple of dissectors have already been switched over to the new packet_add_new_data_source(). Many are still missing. Help appreciated! svn path=/trunk/; revision=29427
* Add PNODE_FINFO. We've been using PITEM_FINFO on proto_node's. This works ↵Kovarththanan Rajaratnam2009-08-091-3/+3
| | | | | | because proto_item is typedefed to proto_node. We shouldn't rely on this since this is an implementation detail. svn path=/trunk/; revision=29354
* From Kovarththanan Rajaratnam via bug 3702:Stig Bjørlykke2009-07-121-2/+2
| | | | | | | | | This patch optimizes the data source name processing in add_new_data_source() by delaying it. We now simply store the constant string and lazily compute the name when needed. This gives a performance boost because we only need the name if we have multiple data sources. svn path=/trunk/; revision=29066
* Fix the last(?) of the Win64 compilation problems.Gerald Combs2009-04-161-2/+2
| | | | svn path=/trunk/; revision=28065
* Add some more "copy" functionality:Sake Blok2009-04-081-2/+2
| | | | | | | | | | | | | | | | | - Enabled "Copy Description" in the main menu and gave it accelerator key CTRL+SHIFT+D - Added "Copy Fieldname" to copy the fieldname of the selected field in the detail view (Acc.Key: CTRL+SHIFT+F) - Added "Copy Value" to copy the value of the selected field in the detail view (Acc.Key: CTRL+SHIFT+V) - Updated documentation to reflect the changes svn path=/trunk/; revision=28006
* Group time related fields.Jaap Keuter2009-01-291-3/+3
| | | | | | | | Drop packet length in favor of frame length. Clean up code / indentations / header fields. Improve docsis preference description. svn path=/trunk/; revision=27329
* Improve title and remove Ethereal legacy.Jaap Keuter2008-11-261-1/+1
| | | | svn path=/trunk/; revision=26850
* Fix for bug 2934.Jaap Keuter2008-10-091-0/+6
| | | | | | Check that tvb backing is available before accessing it. svn path=/trunk/; revision=26393
* Really start printing in 8 pnt Courier, not just state so in the template.Jaap Keuter2008-08-011-3/+4
| | | | | | Add Wireshark version info to the page header. svn path=/trunk/; revision=25901
* Move the file utility functions from wiretap to libwsutil so thatJeff Morriss2008-05-221-16/+16
| | | | | | | | | libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
* Fix for bug #2518: 'tshark -Tfields -e data' Omits Last Character of DataBill Meier2008-05-031-2/+1
| | | | svn path=/trunk/; revision=25223
* From Francesco Fondelli (bug 2349):Stig Bjørlykke2008-03-111-0/+39
| | | | | | | | | Attached is a patch to export packets data as "C Arrays". I often have the need to [re]send data captured with wireshark using a raw/pf_packet socket. Output format is one char[] per packet, it looks like almost the same as the one produced by "Follow TCP stream". svn path=/trunk/; revision=24604
* When generating PDML, insert a fake protocol wrapper around top-level field ↵Martin Mathieson2008-02-071-3/+33
| | | | | | items. This is to help preserve the PDML schema, and is discussed in bug 2226. svn path=/trunk/; revision=24281
* More rewrite of prohibited APIs (sprintf, strcpy, strcat).Stig Bjørlykke2008-02-031-3/+1
| | | | svn path=/trunk/; revision=24258
* Clean up indentation.Guy Harris2008-01-221-72/+68
| | | | | | | Move some comments to make it a bit clearer what each branch of the if handles. svn path=/trunk/; revision=24161
* When using -T fields, print a "1" instead of nothing when a field of type ↵Sake Blok2008-01-221-1/+3
| | | | | | | | | | | FT_NONE is present. This way, scripts can check for the presence of this type of fields. (fixes bug 2210) svn path=/trunk/; revision=24158
* Don't write closing PDML tag for Data protocol - it uses simple ↵Martin Mathieson2008-01-121-5/+7
| | | | | | | | (self-closing) tags. Fixes bug 2185. svn path=/trunk/; revision=24069
* Remove almost all of the casts I committed recently and in place ofStephen Fisher2007-03-281-4/+4
| | | | | | | them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
* From Doug Pratley:Stephen Fisher2007-03-261-0/+368
| | | | | | | | | | | | The purpose of the patch is to provide a new output format (so it is independent of -V): single line record per-packet with the fields chosen by the user, with configuration options to control separator, quoting and whether a header line is printed. It also extends some existing options behaviour (-c and -a:filesize) so that they affect reading a file as well as writing one, so that only the first <n> packets or bytes are read). svn path=/trunk/; revision=21211
* Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher2007-03-231-8/+8
| | | | | | | Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
* Add separate union entries to fvalue.value for signed and unsignedMartin Mathieson2007-01-181-4/+4
| | | | | | | | | 32-bit numbers. Separate signed and unsigned accessors have been added and used where appropriate. Definitely not for 0.99.5. svn path=/trunk/; revision=20472
* Have separate proto_construct_match_selected_string() andGuy Harris2006-11-241-2/+3
| | | | | | | | | proto_can_match_selected() routines, to more clearly separate the two functions - but have them both call the same underlying routine, so they both make the same decisions as to whether a match-selected string can be constructed or not. svn path=/trunk/; revision=19976
* Rename proto_construct_dfilter_string() toGuy Harris2006-11-231-3/+2
| | | | | | | | | | | | | | | | | | | proto_construct_match_selected_string() to indicate what it does - and have it return a Boolean indication of whether the string could be built, returning the string through a pointer, and, if that pointer is null, have it just return the Boolean and not construct the string. Get rid of proto_can_match_selected() - proto_construct_match_selected_string() can be used for that, which means we have only one piece of code that knows whether a "match selected" string can be constructed or not. Have proto_construct_match_selected_string() support matching zero-length FT_NONE (and FT_PCRE, but that shouldn't happen) fields even if there's no epan_dissect_t, as such a match just checks whether the field is present. svn path=/trunk/; revision=19967
* Revert the previous changes - the problem Paul Blankenbaker was fixingGuy Harris2006-11-071-43/+41
| | | | | | | | | | was really a problem with bytes_repr_len() and zero-length FT_BYTES fields, and it's not clear what to do about fields that have zero length. (Put in a comment about that.) Clean up indentation a bit. svn path=/trunk/; revision=19864
* Based on a change from Paul Blankenbaker, make the "show" attribute forGuy Harris2006-11-071-27/+37
| | | | | | | | | | | | | | a field an empty string if the field is zero-length; for some reason, the existing code doesn't handle that correctly. Also, the NetPDL Visualization Extension: http://www.nbee.org/Docs/NetPDL/NetPDLVisualization.htm seems to imply that "value" has to be present, so display it even if the field is zero-length. svn path=/trunk/; revision=19862
* Fix for (already-closed) bug 1180Martin Mathieson2006-10-301-1/+3
| | | | svn path=/trunk/; revision=19737
* Fix bug 1173, remove the space after the comma in CSV linesJaap Keuter2006-10-221-2/+2
| | | | svn path=/trunk/; revision=19660
* Remove extra double quote from fix to bug 1110Martin Mathieson2006-09-281-1/+1
| | | | svn path=/trunk/; revision=19347
* Fix PDML export problem for FT_NONE fields (bug 1110)Martin Mathieson2006-09-271-3/+9
| | | | svn path=/trunk/; revision=19334
* print generated items in brackets [], just as we do it on the screenUlf Lamping2006-07-221-0/+8
| | | | svn path=/trunk/; revision=18783
* Ethereal->WiresharkAnders Broman2006-05-281-1/+1
| | | | svn path=/trunk/; revision=18235
* ethereal->wireshark updatesRonnie Sahlberg2006-05-221-2/+2
| | | | svn path=/trunk/; revision=18206
* name changeRonnie Sahlberg2006-05-211-2/+2
| | | | svn path=/trunk/; revision=18197
* replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping2005-11-061-1/+2
| | | | | | | | | | | | necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
* In print_hex_data(), bail out early if our length is zero.Gerald Combs2005-07-261-0/+2
| | | | svn path=/trunk/; revision=15088
* More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer2005-07-231-1/+1
| | | | svn path=/trunk/; revision=15015
* Put 'unmaskedvalue' field in XML for bit-masked values.Gilbert Ramirez2005-05-311-1/+9
| | | | | | | Fix interpretation of 'value' field. Patch from Vasanth Manickam. svn path=/trunk/; revision=14505
* from Stefano Pettini: add CSV export function, similar to PSML exportUlf Lamping2005-03-111-0/+31
| | | | svn path=/trunk/; revision=13724