path: root/util.c
AgeCommit message (Collapse)AuthorFilesLines
1999-07-09Added the ability to create a read-only ethereal, i.e., one thatGilbert Ramirez1-2/+2
doesn't link with libpcap, so no packet captures can be made. The "--disable-pcap" option has been added to the configure script. Docs have been updated. And the string buffer size in the simple_dialog() has been doubled so that Johan's e-mail address in the "About" dialogue window doesn't get chopped off. svn path=/trunk/; revision=351
1999-06-12Improve the alert boxes put up for file open/read/write errors. (SomeGuy Harris1-70/+1
influence came from http://developer.apple.com/techpubs/mac/HIGuidelines/HIGuidelines-232.html which has a section on dialog box and alert box messages. However, we're largely dealing with technoids, not with The Rest Of Us, so I didn't go as far as one perhaps should.) Unfortunately, it looks like it's a bit more work to arrange that, if you give a bad file name to the "-r" flag, the dialog box pop up only *after* the main window pops up - it has the annoying habit of popping up *before* the main window pops up, and sometimes getting *obscured* by it, when I do that. The removal of the dialog box stuff from "load_cap_file()" was intended to facilitate that work. (It might also be nice if, when an open from the "File/Open" menu item fails, we keep the file selection box open, and give the user a chance to correct typos, choose another file name, etc.) svn path=/trunk/; revision=310
1999-04-06Capturing packets from ethereal now saves the capture in an "anonymous" ↵Gilbert Ramirez1-1/+78
buffer. That is, it's a random name chosen by tempnam(), unknown to the user. If the user decides to save that trace, he then uses File | Save to save it to a file. File | Save As lets him make a copy of his named trace file as well. I also updated my e-mail address in the various credit locations. svn path=/trunk/; revision=242
1999-04-05Get rid of include of <strings.h> from "util.c", as it's not needed, andGuy Harris1-2/+1
change include of <strings.h> in "menu.c" to include <string.h>, the latter being the ANSI standard include file for string functions; that eliminates all use of <strings.h< so get rid of test for its existence in "configure.in" as well. svn path=/trunk/; revision=239
1999-03-31Move the bitfield-decoding routines to "packet.h", along with otherGuy Harris1-86/+1
helper routines for packet dissecting, and away from "util.c", which is now all GUI-related. (Among other things, this makes life more pleasant for Gilbert Ramirez's "tethereal" stuff, although a lot more separation of GUI from other stuff needs to be done to make that - or a "curses"-based variant of Ethereal, or a variant using some other GUI toolkit - work smoothly.) svn path=/trunk/; revision=235
1999-03-23Removed all references to gtk objects from packet*.[ch] files. They nowGilbert Ramirez1-2/+4
reference the protocol tree with struct proto_tree and struct proto_item objects. That way, the packet decoding source code file can be used with non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged some of the information in packet.h to more appropriate places (like other packet-*.[ch] files). svn path=/trunk/; revision=223
1999-01-01Added #include <sys/types.h> for compilation under gtk-1.1.11Gilbert Ramirez1-1/+5
svn path=/trunk/; revision=144
1998-12-29* Added Joerg Mayer's Vines patchGerald Combs1-1/+82
* Added Joerg to the AUTHORS file * Added Guy's bitfield decode patch * Fixed time output svn path=/trunk/; revision=142
1998-12-22Stopped the "TCP Follow" screen from producing an error when usingGilbert Ramirez1-1/+2
wiretap and gtk+-1.1.x. I also added an #include to util.c to keep it from complaining about a lack of a definition of vsnprintf when compiling with gtk+-1.1.x. svn path=/trunk/; revision=136
1998-10-28* Aligned the icon with the top edge of the dialog.Gerald Combs1-9/+9
svn path=/trunk/; revision=74
1998-10-16* Copied in the correct GNU license (I'm such a goober)Gerald Combs1-5/+23
* Hacks to the filter interface (Gerald) * About box (Laurent) * AppleTalk support (Simon) * Mods to the match_strval routine (Gerald) svn path=/trunk/; revision=61
1998-10-13Squelch a number of "-Wall" errors by:Guy Harris1-1/+10
1) renaming "snprintf.h" to "snprintf-imp.h" (it contains stuff used by the "snprintf()" *implementation*, but not stuff it *exports*); 2) creating a new "snprintf.h" to declare "vsnprintf()" and "snprintf()"; 3) removing an unused variable; 4) fixing a call to "add_item_to_tree()" to handle the possibility of "ntohl()" returning a "long" rather than an "int". svn path=/trunk/; revision=47
1998-10-12- Added match_strval function to packet.cGerald Combs1-2/+12
- Separated display and capture filters; rearranged some of the look and feel - Lots of other miscellaneous fixes and updates svn path=/trunk/; revision=38
1998-09-27Merged in a _huge_ patch from Guy Harris. It adds a time stap column,Gerald Combs1-1/+3
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. svn path=/trunk/; revision=31
1998-09-16Added ID tags to the beginning of each source file.Gerald Combs1-0/+2
svn path=/trunk/; revision=7
1998-09-16Initial revisionGerald Combs1-0/+125
svn path=/trunk/; revision=2