aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2004-10-30code cleanup: split capture_sync from capture.c into it's own file. Ulf Lamping4-717/+882
That's the part used, when "Update list of packets in real time" is used while capturing. svn path=/trunk/; revision=12445
2004-10-30from Mark Phillips: the length field in the UDP header includes theGuy Harris2-12/+20
length of the UDP header itself, so subtract the length of the header when using it to limit the length of the payload tvbuff. Clean up the computing of the captured length of the payload tvbuff (we really should get rid of the "length" argument to "tvb_new_subset()", and have it compute the captured length based on the supplied reported length and the amount of that data actually present in the parent tvbuff). Don't fetch the length and checksum fields until we use them (so that we don't throw an exception until then, and fail to process the source and destination ports), and check whether the length is bogus regardless of whether we're building a protocol tree or not. svn path=/trunk/; revision=12444
2004-10-30Squelch some compile warnings.Guy Harris1-3/+4
svn path=/trunk/; revision=12443
2004-10-30Check for errors from all calls to "file_getc()".Guy Harris1-3/+25
If we get such an error, always call "file_error()" to get an indication of what the error was and, if it returns 0, set the error to WTAP_ERR_SHORT_READ. svn path=/trunk/; revision=12442
2004-10-30The length of the protocol tree item passed to "dissect_ppp_common()"Guy Harris1-8/+9
should be the length of the packet being dissected, so that if we throw an exception dissecting it, the item covers the entire packet (because it's incomplete, and thus *all* of it is the beginning of the header). Instead, we should pass the length of the part of the header prior to the protocol field as an argument to "dissect_ppp_common()", and it should use that to set the length of that item. svn path=/trunk/; revision=12441
2004-10-30The interface name field is 6 bytes if we *do* have UUID information inGuy Harris1-6/+6
the file and 10 bytes if we *don't*. Small language edits in preference text and blurb. svn path=/trunk/; revision=12440
2004-10-30From Martin Pichlmaier: the first 4 bytes of the Symantec firewallGuy Harris2-3/+10
header are the IP address of the interface that saw the packet. svn path=/trunk/; revision=12439
2004-10-30change Extension to be implemented inside the conformance file and remove it ↵Ronnie Sahlberg5-94/+90
from the template svn path=/trunk/; revision=12438
2004-10-30implement AlgorithmIdentifier using the conformance file and remove it from ↵Ronnie Sahlberg7-86/+89
the template svn path=/trunk/; revision=12437
2004-10-30fix call_ber_iod_callback() to move offset past the end of the current blob.Ronnie Sahlberg1-0/+9
svn path=/trunk/; revision=12436
2004-10-29Add netscreen2dump.py, to convert netscreen packet-trace hex dumpsGilbert Ramirez2-0/+133
to hex dumps that can be read by text2pcap. svn path=/trunk/; revision=12435
2004-10-29update to cms to use workaround to lack of ANY and reducing the template ↵Ronnie Sahlberg7-277/+211
significantly svn path=/trunk/; revision=12434
2004-10-29more updates of x509ifRonnie Sahlberg6-78/+47
svn path=/trunk/; revision=12433
2004-10-29new generated version of x509ifRonnie Sahlberg1-33/+70
svn path=/trunk/; revision=12432
2004-10-29Update to x509if use a workaround to emulate the type ANY and remove stuff ↵Ronnie Sahlberg4-43/+29
from teh template svn path=/trunk/; revision=12431
2004-10-29From Yaniv Kaul: dissect authentication data as NTLMSSP only if itGuy Harris1-3/+7
starts with "NTLMSSP", otherwise dissect it as GSS-API. svn path=/trunk/; revision=12430
2004-10-29As Sam Leffler notes, the radiotap header isn't BSD-only, it's also usedGuy Harris4-7/+7
by his madwifi Atheros driver on Linux; rename WTAP_ENCAP_IEEE_802_11_WLAN_BSD to WTAP_ENCAP_IEEE_802_11_WLAN_RADIOTAP, and change its text name from "ieee-802-11-bsd" to "ieee-802-11-radiotap". svn path=/trunk/; revision=12429
2004-10-29Have the usual three separate buffers for "format_text()", so that itGuy Harris1-23/+26
can be used multiple times in a single formatting call. svn path=/trunk/; revision=12428
2004-10-29The common merge code merely needs to offer the abstraction of routinesGuy Harris4-262/+282
that return the next packet from a set of {chronologically sorted, sequential-by-file} packets; it doesn't need to have a loop over all those packets, or any code to write packets. Supply those abstractions, change the code that merges packets to do its own writing, and have the Ethereal version manage a progress bar and have the mergecap version print packet numbers in verbose mode, as the common merge code used to do. svn path=/trunk/; revision=12427
2004-10-28Add support for pkauthdata and pkdhkeydata OIDs.Gerald Combs12-59/+389
svn path=/trunk/; revision=12426
2004-10-28fix small bug that gets offset confused for CHOICE { } OPTIONAL if there ↵Ronnie Sahlberg1-2/+29
were no arms that matched svn path=/trunk/; revision=12425
2004-10-28The offset to the first IFD in a TIFF file is 4 bytes long, not 2 bytesGuy Harris1-55/+84
long. The offset is relative to the first byte of the TIFF structure, which is after the "Exif\0" *and* the extra byte after "Exif\0". Loop over all IFDs. Sanity check the offset to the first IFD and the offset in each IFD to the next IFD. svn path=/trunk/; revision=12424
2004-10-28Make "merge_files()" and "merge_append_files()" return a tri-stateGuy Harris4-45/+145
indication - success, read failure, write failure - and have their callers handle read failures by looking for the file that got the read failure and reporting the failure in question. Free up the err_info string returned by "wtap_read()" after using it. svn path=/trunk/; revision=12423
2004-10-28Remove all the verbose-mode code from merge.c, and put most of it inGuy Harris4-265/+224
mergecap.c (get rid of the verbose printing of information for each packet). Have "merge_append_files()" return FALSE only on a write error, as "merge_files()" does. Sort the routines in "merge.c" in the order from "merge.h". svn path=/trunk/; revision=12422
2004-10-27Get rid of merge_n_files() - it's only called in one place now, andGuy Harris4-101/+38
absorbing its logic into "cf_merge_files()" simplifies things a bit. svn path=/trunk/; revision=12421
2004-10-27Change some of the merge.c APIs to return more information on failure,Guy Harris7-139/+246
and use that information to provide better error messages. Have "merge_open_outfile()" do all the work of filling in the merge_out_file_t structure, with the values to use passed as arguments. Get rid of some structure members that used to be used solely to pass information to "merge_open_outfile()". Add a "cf_merge_files()" routine to do the merging and reporting of errors. svn path=/trunk/; revision=12420
2004-10-27"dissect_MAP_Dialogue()" returns no value; declare its return value asGuy Harris4-647/+647
"void". Fix a typo in the MAP Dialogue dissector template .h file. Re-generate the MAP Dialogue dissector files and set svn:keywords to Id and svn:eol-style to native for them. svn path=/trunk/; revision=12419
2004-10-27Turn off execute permission on .asn files.Guy Harris2-0/+0
svn path=/trunk/; revision=12418
2004-10-27Fix a typo in the name of the directory for the MAP dialogue ASN.1Guy Harris4-239/+235
files. Set svn:eol-style to native for those files, and get rid of trailing CRs. Set svn:keywords to Id for those files. svn path=/trunk/; revision=12417
2004-10-27Add a MapDialouge dissector ( can be tested with the file gsm-ss-01.snoop )Anders Broman3-0/+646
svn path=/trunk/; revision=12416
2004-10-27Add a MAPdialouge dissectorAnders Broman4-0/+239
svn path=/trunk/; revision=12415
2004-10-27Improve OID dissection and make it possible to call an "OID" Dissector for ↵Anders Broman1-31/+69
Dialougedata parameter. svn path=/trunk/; revision=12413
2004-10-27Make it possible to register a string for an OID in the hash table.Anders Broman2-1/+7
svn path=/trunk/; revision=12412
2004-10-27Fix indentation.Guy Harris1-9/+9
svn path=/trunk/; revision=12411
2004-10-27Check whether any input files were specified, and print an error forGuy Harris1-0/+4
that - otherwise, you get a "No valid input files" message, which perhaps doesn't make it clear enough that the problem is that there were no input files, period. svn path=/trunk/; revision=12410
2004-10-27Add unix2dos.pl to the list of files to be distributed.Guy Harris1-0/+1
svn path=/trunk/; revision=12409
2004-10-27two more dia diagrams about Ethereals capture engine and updated the first oneUlf Lamping6-0/+0
svn path=/trunk/; revision=12408
2004-10-27a dia diagram about Ethereal development (hopefully later some more) Ulf Lamping2-0/+0
svn path=/trunk/; revision=12407
2004-10-27Check to make sure we don't give a protocol tree item a negative length.Guy Harris2-15/+20
Clean up indentation. If we dissect an octet string and then re-dissect it as a particular type of data, don't use the end offset from the re-dissection as the offset of the end of the octet string - just use the result of "dissect_per_octet_string()". svn path=/trunk/; revision=12406
2004-10-27fix doxygen generationUlf Lamping2-2/+2
svn path=/trunk/; revision=12405
2004-10-27fix doxygen tagsUlf Lamping3-3/+3
svn path=/trunk/; revision=12404
2004-10-27fix doxygen generationUlf Lamping3-2/+67
svn path=/trunk/; revision=12403
2004-10-27fix doxygen generationUlf Lamping1-0/+0
svn path=/trunk/; revision=12402
2004-10-27fix doxygen tagsUlf Lamping1-1/+0
svn path=/trunk/; revision=12401
2004-10-27Don't have two variables, in different scopes in the same routine, haveGuy Harris1-4/+4
the same name. Fix up alignment. svn path=/trunk/; revision=12400
2004-10-27Encapsulate into a macro the idiomGuy Harris1-35/+15
if(offset&0x07){ offset=(offset&0xfffffff8)+8; } for byte-aligning a bit offset. svn path=/trunk/; revision=12399
2004-10-26Document the personal capture and display filters list in the FILESGuy Harris1-10/+14
section, as is done for other files. Just refer to those files in the section for the "Save" button for the capture and display filter dialog boxes. svn path=/trunk/; revision=12398
2004-10-26Fix the file name in the initial comment.Guy Harris1-1/+1
svn path=/trunk/; revision=12397
2004-10-26Rename the "boolean" enum to "val_boolean" lest the Microsoft compiler letGerald Combs1-14/+14
its displeasure be known. svn path=/trunk/; revision=12396
2004-10-26make the dissector use the nice #.REGISTER directiveRonnie Sahlberg2-17/+10
svn path=/trunk/; revision=12395