aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2000-09-11Move format_text(), get_token_len(), and fine_line_end(), into strutil.cGilbert Ramirez21-214/+296
This keeps tvbuff.c generic; it doesn't have to pull in packet.h and all of it's included files. svn path=/trunk/; revision=2409
2000-09-11We have to free up the per-frame data when we rescan, because we haveRichard Sharpe2-2/+12
called packet_init_proto, which blows away the items the list points to. svn path=/trunk/; revision=2408
2000-09-10Compute and display negative relative and delta time stamps correctly,Guy Harris6-53/+112
just in case time goes backwards (yes, it sometimes does happen in captures). svn path=/trunk/; revision=2407
2000-09-09Small changes in help windows:Laurent Deniel1-8/+15
- update overview. - add a note if packet capture is not available. svn path=/trunk/; revision=2406
2000-09-09In the callback for the "OK" button in the font selection dialog, checkGuy Harris1-36/+71
to make sure we can load the font the user selected *and* the font that would, in theory, be the boldface version of that font; if not, pop up an error dialog, and don't nuke the font selection dialog (i.e., the user either has to pick fonts that work, or give up in disgust and click "Cancel"). Don't set "prefs.gui_font_name" until the "fetch" function is called - stuff the name in a static variable when the user clicks "OK" in the font selection dialog. svn path=/trunk/; revision=2405
2000-09-09"redraw_hex_dump()" can't use "cfile.pd" or "cfile.current_frame", as itGuy Harris5-48/+47
may be redrawing a packet window that displays a frame other than the current frame; give it arguments to specify the raw frame data and "frame_data" structure for the frame. This requires that each packet window have, associated with it, a pointer to the "frame_data" structure; that replaces the "cap_len" and "encoding" fields in a "PacketWinData" structure, as those are just copies of fields from the frame's "frame_data" structure. "packet_hex_print()" needn't be passed both the start and length values from a "field_info" structure - just pass it a pointer to that structure, or NULL for "no field is selected in the packet". It also needn't, any longer, be passed the "cap_len" and "flags.encoding" fields of a "frame_data" structure - just pass it a pointer to that structure. In "redraw_hex_dump_all()", don't redraw the hex dump pane of the main window if there is no current frame. svn path=/trunk/; revision=2404
2000-09-09Explain why "stream_prefs_apply()" doesn't do anything.Guy Harris1-3/+5
svn path=/trunk/; revision=2403
2000-09-09"#if 0" out the code that puts "Cut", "Copy", and "Paste" items into theGuy Harris1-1/+8
"Edit" menu, pending the implementation of cut/copy/paste, so that users don't think that there's something they can do (other than implementing cut/copy/paste :-)) to be able to use those functions. svn path=/trunk/; revision=2402
2000-09-08Redraw:Guy Harris12-63/+169
the text in all "Follow TCP Stream" windows; the text in the help window if we have one up; all hex dump windows; when GUI preference changes are to be applied, so that font changes and "Follow TCP Stream" color changes show up. Update both the Roman and bold font when the font is changed. Don't decrement the reference counts on the old Roman and bold fonts until that's all done. svn path=/trunk/; revision=2401
2000-09-08Get rid of a debugging "fprintf()" call in "tvb_format_text()".Guy Harris1-3/+1
svn path=/trunk/; revision=2400
2000-09-08Graham Bloice's patch to support inverse video rather than boldfaceGuy Harris11-80/+273
highlighting of the bytes, in the hex dump window, corresponding to a selected field. Also, make "remember_ptree_widget()" static, as it's not used outside "gtk/proto_draw.c". svn path=/trunk/; revision=2399
2000-09-08Load "libsnmp.so.0", not "libsnmp.so":Guy Harris1-8/+27
on the systems that have the problem we're working around, the SNMP shared library is "libsnmp.so.0"; on those systems, there's also no "libsnmp.so" unless the user has installed the UCD SNMP development package or has made a symlink from "libsnmp.so" to "libsnmp.so.0" by hand, and we don't want to force users to do that (some of them may be sufficiently new to UNIX that they don't know how to do that); the run-time linker, if told to load "libsnmp.so", won't necessarily realize that it's the same object as "libsnmp.so.0", and may load it again rather than using the already-loaded object, which might not be a good idea. svn path=/trunk/; revision=2398
2000-09-08I have tvbuffified packet-bxxp.c and started on per-session and per-packetRichard Sharpe1-100/+249
state so I can dissect things correctly ... Will have to clean out all the old non-tvbuff cruft as well. Boy, I will be glad when we re-do Ethereal and have TCP segment re-assembly under control. svn path=/trunk/; revision=2397
2000-09-08Added tvb_format_textRichard Sharpe2-2/+26
svn path=/trunk/; revision=2396
2000-09-07Add return type for tvb_strneql() and add prototype in tvbuff.hGilbert Ramirez2-4/+9
svn path=/trunk/; revision=2395
2000-09-07Add tvb_strneql routine for checking if a string is present in theRichard Sharpe1-1/+27
tvb at the current offset. svn path=/trunk/; revision=2394
2000-09-07Always use "g_free()" to free "ifc.ifc_buf"; it's set to a valueGuy Harris1-2/+2
allocated by "g_malloc()", and one should always use "g_free()" to free stuff allocated with "g_malloc()" (using "free()" works if GLib isn't compiled with any special memory allocator debugging/profiling options, but doesn't work if it is compiled with those options). svn path=/trunk/; revision=2393
2000-09-07Change wtap_read() API so that the data offset is set via a pointer, andGilbert Ramirez17-218/+190
a "keep reading" boolean value is returned from the function. This avoids having to hack around the fact that some file formats truly do have records that start at offset 0. (i4btrace and csids have no file header. Neither does the pppdump-style file that I'm looking at right now). svn path=/trunk/; revision=2392
2000-09-07Change variable from 'char*' to 'const char*' to avoid compiler warning.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=2391
2000-09-06Check that columns are enabled and that COL_INFO exists before addingGilbert Ramirez1-4/+7
to it (in the *_OR_DIE macros). svn path=/trunk/; revision=2390
2000-09-06Fix offset bug in func 0x1737, and added code to automatically checkGilbert Ramirez1-11/+45
offsets. Bug found by Marcel Cox <marcel.cox@myrealbox.com> svn path=/trunk/; revision=2389
2000-09-05Fix help display (random character displayed in tab).Laurent Deniel1-2/+2
svn path=/trunk/; revision=2388
2000-09-01Fix labelling of endianness. Error reported byGilbert Ramirez1-3/+3
Ken A. Rederg�rd <kenr@trustix.com> svn path=/trunk/; revision=2387
2000-08-31Re-arrange size and nmemb arguments in fread() (file_read()) calls soGilbert Ramirez1-8/+8
that these calls work on Win32. I still don't have a good reason as to why this is necessary, but it fixes the problem. I'll continue looking for a reason. svn path=/trunk/; revision=2386
2000-08-31The interface list will now be get into an dynamic growing buffer and notUwe Girlich1-14/+33
the (too big) buffer for 1024 network cards. The code comes directly after the ideas in Steven's book (UNIX network programming). svn path=/trunk/; revision=2385
2000-08-30Initial BXXP dissector ...Richard Sharpe2-1/+634
Lots more work to be done. svn path=/trunk/; revision=2384
2000-08-30List pint.h as a source file.Gilbert Ramirez1-1/+2
svn path=/trunk/; revision=2383
2000-08-30Add FT_STRINGZ type. NCP dissector is only one that uses it right now.Gilbert Ramirez11-353/+473
Remove tvb_get_stringz from quake dissector and add tvb_get_nstringz, tvb_get_nstringz0, and tvb_strnlen to tvbuff.c. Remove multiple definitions of pntohl and friends from various places (except for wiretap) and put into pint.h Consolidate duplicate code for turning FT_* enums into strings (ala the glossary). svn path=/trunk/; revision=2382
2000-08-29correct nodeinfo (node addresses). it returns address (16byte) + ttl (4byte),Jun-ichiro itojun Hagino1-5/+6
not just addresses. KAME kernel currently uses old format, so ethereal does not work with current KAME kernel (KAME kernel will be corrected). svn path=/trunk/; revision=2381
2000-08-27Don't set the text on a V2 READDIR entry if there's no entry.Guy Harris1-2/+3
svn path=/trunk/; revision=2380
2000-08-26Fix a minor spelling mistake ...Richard Sharpe1-2/+2
svn path=/trunk/; revision=2379
2000-08-25Move #include <time.h> into wtap-int.h instead of requiring it inGilbert Ramirez10-19/+11
every C file. I noticed this because of a build break of csids.obj on Win32. svn path=/trunk/; revision=2378
2000-08-25Attach my name to the "GtkClist replacement" item; it's a work inGuy Harris1-9/+4
progress, but the beginnings of one exist (it's far from ready for prime time, but it does read in capture files a lot quicker and consumes a fair bit less memory). Get rid of the item about a line-mode capture program - that's Tethereal. Get rid of the "Make lines in GTK Tree (proto_tree GUI) user-selectable" item, as they're now user-selectable. Put back the item about Kerberos V4 - we hae a V5 dissector, but no V4 dissector yet. svn path=/trunk/; revision=2377
2000-08-25Remove some items which are now available.Laurent Deniel1-12/+2
svn path=/trunk/; revision=2376
2000-08-25Note GTK+ distribution version for 0.8.11 binary release.Gilbert Ramirez1-2/+4
I finally have working tools, so a 0.8.11 win32 binary release we be available soon. svn path=/trunk/; revision=2375
2000-08-25- add protocol registrationLaurent Deniel2-72/+125
- add some missing Vines IP header fields in protocol tree - add protocol type as display filter - miscellaneous code cleaning svn path=/trunk/; revision=2374
2000-08-25Fix comment.Laurent Deniel1-2/+2
svn path=/trunk/; revision=2373
2000-08-25Fix comment and add reference to RFC.Laurent Deniel1-3/+3
svn path=/trunk/; revision=2372
2000-08-25Add protocol registration (pptp).Laurent Deniel1-7/+35
Add OLD_CHECK_DISPLAY_AS_DATA(). Add display filters. Check the magic cookie to see if the decoding or frame is correct (in most cases, we probably need TCP reassembly). svn path=/trunk/; revision=2371
2000-08-25Include the control-field information in the Info column for LLC frames.Guy Harris1-9/+4
svn path=/trunk/; revision=2370
2000-08-25Redo the way we map between libpcap encapsulation type codes and WiretapGuy Harris3-88/+262
encapsulation type codes - for those libpcap type codes whose numerical value is interpreted differently by different versions of libpcap, include <pcap.h> if you can and, if you can, use what it defines to control which Wiretap code we map those type codes to. Also, map the new libpcap type codes introduced by libpcap 0.5. svn path=/trunk/; revision=2369
2000-08-24Include bus errors and aborts, as well as segmentation violations, asGuy Harris1-6/+12
examples of errors that generate core dumps, and suggest that a stack trace from the debugger could be useful for *all* failures that produce core dumps. Note that the core dump file may be named "ethereal.core", and note that "tethereal" rather than "ethereal" should be used in file names if it's Tethereal that blew up. svn path=/trunk/; revision=2368
2000-08-24Give the RFC number of the spec for the portmapper/rpcbind protocols.Guy Harris1-1/+6
svn path=/trunk/; revision=2367
2000-08-24Add a comment giving the RFC numbers of specs for ONC RPC.Guy Harris1-1/+17
svn path=/trunk/; revision=2366
2000-08-24Name updates to stuff in GSS authentication for ONC RPC, from Dug Song.Guy Harris2-32/+32
svn path=/trunk/; revision=2365
2000-08-24Do not malloc a TCP fragment for a packet that does not contain data.Laurent Deniel1-2/+2
svn path=/trunk/; revision=2364
2000-08-24Add some dlg_set_cancel().Laurent Deniel1-13/+18
Reduce a bit the button sizes for homogeneousness. (still need some work on filter color selection, in progress ...) svn path=/trunk/; revision=2363
2000-08-24Fixes to add state keeping and properly decode SMTP.Richard Sharpe1-20/+300
svn path=/trunk/; revision=2362
2000-08-24If we've thrown away saved state before a rescan of the frames in aGuy Harris1-2/+21
capture, clear the per-frame data pointers of all frames in the capture, as those pointers now refer to data that's been freed. Do that to all frames even if the user stops the rescan in the middle - and clear the "visited" flag for all frames as well. svn path=/trunk/; revision=2361
2000-08-24Use 0, rather that 0xffffffff, as the "no reply frame number known yet"Guy Harris1-5/+9
- frame numbers are 1-origin, so 0 can be used as an "exception" value. In the protocol tree for a reply, don't say that the reply is to frame N, just say that it's to a request starting in frame N - a frame can contain more than one request, and a request may take more than one frame. svn path=/trunk/; revision=2360