Commit Graph

1845 Commits

Author SHA1 Message Date
Gerald Combs ed604bc5fc Make the version and library information in the about box copy-and-paste-able
under GTK+ 2.x.

svn path=/trunk/; revision=12943
2005-01-03 19:58:04 +00:00
Guy Harris 7e58bd88ca Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters.

svn path=/trunk/; revision=12922
2005-01-02 00:23:50 +00:00
Guy Harris 90c434d5ac Add casts of OBJECT_SET_DATA() arguments in cases where that's
appropriate.

Use %u, not %d, to convert unsigned values to strings.

svn path=/trunk/; revision=12921
2005-01-01 23:54:32 +00:00
Guy Harris 60ea0d10e2 Don't explicitly cast the last argument to OBJECT_SET_DATA() to
"gpointer" - callers should do that if appropriate (or perhaps change
the call to pass a different argument if that's more appropriate), and
even if casting it were the right thing to do, the argument needs to be
surrounded with parentheses so the correct value is cast.

svn path=/trunk/; revision=12919
2005-01-01 23:29:05 +00:00
Guy Harris f7a9294fab Cast away the constness of the geom_name argument to
"window_new_with_geom()" - there's no way to tell the compiler that
we're not going to be modifying it, but we aren't.

The right way to check whether a pointer is null and get a Boolean is to
test it against null, not to cast it to a Boolean type - as Boolean
types in C89/C90, at least, are just integral types, that cast might
just throw away the upper 32 bits; that probably yields the results you
want, but the compiler might well justifiably warn about that on an LP64
platform.

svn path=/trunk/; revision=12918
2005-01-01 23:25:49 +00:00
Guy Harris 0067b4b94e The right way to check whether a pointer is null and get a Boolean is to
test it against null, not to cast it to a Boolean type - as Boolean
types in C89/C90, at least, are just integral types, that cast might
just throw away the upper 32 bits; that probably yields the results you
want, but the compiler might well justifiably warn about that on an LP64
platform.

svn path=/trunk/; revision=12915
2005-01-01 23:19:11 +00:00
Guy Harris 4df2c4abd9 Make the signatures of functions passed to "register_tap_listener()"
match what "register_tap_listener()" expects (rather than squelching
warnings about the differences by casting function pointers to "void
*").

Make static some functions not used outside the module in which they're
defined. 

svn path=/trunk/; revision=12913
2005-01-01 12:49:54 +00:00
Guy Harris 5da116d531 Throw in a cast to squelch an (unavoidable, and probably harmless -
GTK+'s function signatures aren't necessarily what they should be)
warning.

svn path=/trunk/; revision=12912
2005-01-01 12:32:28 +00:00
Guy Harris 71217a8007 As we've made the tap_specific_data field of a tap_packet_t structure a
const pointer (so that we don't get complaints when we make the
tap-specific data argument to "tap_queue_packet()" a const pointer,
allowing dissectors to hand const data to a tap without a complaint), we
should make the tap per-packet function take a const pointer as an
argument as well.  Do so.

In some taps, use _U_, or actually use the argument, rather than
sticking in dummy "X = X" assignments to fake use of parameters.  (This
means that the tap functions in question no longer have the notion that
they act on a particular static structure wired in.)

svn path=/trunk/; revision=12910
2005-01-01 02:57:02 +00:00
Guy Harris e75910e7cb In column sort routines, make the row pointers "const" pointers, as the
arguments passed in corresponding to those pointers are gconstpointers.

svn path=/trunk/; revision=12884
2004-12-31 00:33:54 +00:00
Guy Harris 6e622fd24e "gtk_entry_get_text()" returns a "const char *" - assign the result to
one.

"get_basename()" doesn't modify its argument, and its callers don't
modify the substring pointed to by the result, so make it take a "const
char *" as an argument and return a "const char *". 

"find_last_pathname_separator()" doesn't modify its argument, so make it
a "const char *" - but some of its callers pass a non-"const" "char *"
and modify the result, so don't make its return value a "const char *".
And, as none of its callers are outside "filesystem.c", make it static.

In "about_folders_page_new()", have separate variables for pathnames
returned as "const char *" (which are cached by the routine that returns
them, so you can't modify them - and can't free them, so get rid of the
commented-out "g_free()" calls for them) and pathnames returned as "char
*" (which are allocated anew for each call, and can be modified, but
have to be freed).

Clean up white space.

svn path=/trunk/; revision=12881
2004-12-31 00:26:36 +00:00
Guy Harris 6d24b27606 Make the "col_data" field in a "column_info" structure a pointer to an
array of "const char *" rather than to an array of "char *", and make
the second argument of "col_set_str()" a "const char *" - there's no
guarantee that "col_data" points to something you're allowed to modify.

svn path=/trunk/; revision=12880
2004-12-31 00:12:25 +00:00
Guy Harris 467e33d1b1 Make the "col_data" field in a "column_info" structure a pointer to an
array of "const char *" rather than to an array of "char *", and make
the second argument of "col_set_str()" a "const char *" - there's no
guarantee that "col_data" points to something you're allowed to modify.

svn path=/trunk/; revision=12875
2004-12-30 23:42:02 +00:00
Anders Broman 430b659469 Change a function name in preparation for genereating H.245 and H.225 dissectors with asn2etrh
svn path=/trunk/; revision=12871
2004-12-30 22:38:59 +00:00
Guy Harris 5be2b9f9e7 Fix some cut-and-pasteos.
svn path=/trunk/; revision=12866
2004-12-30 02:28:50 +00:00
Guy Harris 0ccf418724 Add a "get_addr_name()" routine that takes an "address *" and attempts
to resolve it to a name.

Fix up some const-pointer-to-non-const-pointer, and
function-pointer-to-void-*, conversions.

Fix some comments.

svn path=/trunk/; revision=12863
2004-12-30 02:10:24 +00:00
Guy Harris 9d5c8771c1 From Albert Chin: not all compilers support a comma after the last value
in an enum.

svn path=/trunk/; revision=12862
2004-12-29 22:31:56 +00:00
Guy Harris 7dbaf30259 From Albert Chin: "config.h" should always be included first first when
using AC_SYS_LARGEFILE.

svn path=/trunk/; revision=12860
2004-12-29 21:31:18 +00:00
Ulf Lamping d9be4670a7 move global capture_child flag into capture_options
svn path=/trunk/; revision=12855
2004-12-29 12:37:06 +00:00
Ulf Lamping 2ed93e96bd Don't use a global capture_opts in the capturing engine (this isn't a good idea). Do some more "housekeeping" in the capturing part.
Hopefully the unspecified forward declaration of capture_options_t in main.h is portable, but buildbot will tell me. This way I need the internals of that struct only at the places I really use it.

svn path=/trunk/; revision=12853
2004-12-29 09:09:35 +00:00
Guy Harris f1deabed56 Make the tone of the error messages a bit less formal, by using
contractions.  (Safari does, at least when you're trying to open a file
to which you don't have read access.)

svn path=/trunk/; revision=12852
2004-12-29 01:08:20 +00:00
Ulf Lamping e321859a86 some code cleanup (comments changed)
svn path=/trunk/; revision=12848
2004-12-28 00:36:06 +00:00
Ulf Lamping 5bcad85d01 Again, some warnings removed.
svn path=/trunk/; revision=12842
2004-12-27 13:17:20 +00:00
Ulf Lamping 124544cc39 show a simple_dialog, if we use glib 1.x and trying to open a webbrowser (not implemented). This will prevent another compiler warning.
svn path=/trunk/; revision=12821
2004-12-23 13:34:02 +00:00
Guy Harris c52e88e19e Change the RCS ID - it's not getting expanded when it's "$Id $".
Fix a comment in conversations_wlan.c.

Refer to "WLAN" in hostlist_wlan.c, just as we do in
conversations_wlan.c.

svn path=/trunk/; revision=12814
2004-12-22 09:46:14 +00:00
Guy Harris 0f039d5245 From Brett Kuskie: recalculate the ranges every time an export dialog is
opened, not just the first time, so that if the packet counts change
up-to-date values are displayed.

svn path=/trunk/; revision=12813
2004-12-22 09:19:01 +00:00
Jörg Mayer 773681fca3 Giles Scott: Add Wlan tap
svn path=/trunk/; revision=12799
2004-12-21 12:30:24 +00:00
Guy Harris 716ff427ce Don't start up a splash screen if "-G" is specified, even if we weren't
configured with libpcap support.

svn path=/trunk/; revision=12764
2004-12-17 10:09:32 +00:00
Guy Harris bebb2b7705 Get rid of C++/C99-style comments - not all C compilers accept them.
Fix some indentation.

svn path=/trunk/; revision=12710
2004-12-10 11:20:48 +00:00
Lars Roland 221a66734e Don't ethclist.h in main.c, when we don't need it.
svn path=/trunk/; revision=12659
2004-12-02 19:41:56 +00:00
Guy Harris 27957c4c0d We don't use our own clist for GTK+ 1.3[.x], either.
svn path=/trunk/; revision=12658
2004-12-02 19:17:40 +00:00
Guy Harris 395bb21901 From Nathan Jennings: add a preference that supplies a prefix for window
titles.

svn path=/trunk/; revision=12657
2004-12-02 11:30:24 +00:00
Guy Harris f516cf141f From Francisco Alcoba: handle inverted time stamps without hanging.
svn path=/trunk/; revision=12656
2004-12-02 08:38:59 +00:00
Guy Harris 89cfc75ba2 We're not using our own clist for GTK+ 2.x, so call
"init_eth_clist_type()" only for GTK+ 1.2[.x].

svn path=/trunk/; revision=12654
2004-12-02 07:53:59 +00:00
Ronnie Sahlberg e2e3b87c73 performance enhancement:
in some profiling runs   eth_clist_get_type() took ~6%   change this to just a variable and initialize it explicitely from main.c



svn path=/trunk/; revision=12653
2004-12-02 03:12:24 +00:00
Ronnie Sahlberg 2e61f4d4c7 make ethereal compile with --without-pcap configuration option
svn path=/trunk/; revision=12652
2004-12-02 00:12:54 +00:00
Guy Harris e4ae2aa011 From Francisco Alcoba:
add IPv6 support;

	replace "delay" with "delta".

svn path=/trunk/; revision=12636
2004-12-01 11:54:41 +00:00
Guy Harris 097877f306 Don't redisplay the "Follow TCP Stream" window on every toggle event for
the display style (ASCII/EBCDIC/char[]/hex) radio button set - pushing a
radio button generates *two* events, one for the button that gets turned
off and one for the button that gets turned on.

svn path=/trunk/; revision=12530
2004-11-16 08:21:32 +00:00
Guy Harris dfdc47e63c Put the file name into the window title, so if you have more than one of
them open, you know which one corresponds to which file.

Clean up white space.

svn path=/trunk/; revision=12509
2004-11-12 05:36:25 +00:00
Guy Harris 3a1aafc415 When clearing the list, use "history_list", just in case
"history_current" happens to be null (that might not be possible, but
this is still perhaps a bit clearer).

Clear "history_current" after clearing the list, as the current entry no
longer exists, so that "packet_history_add()" doesn't use the now-bogus
value.

svn path=/trunk/; revision=12488
2004-11-03 23:44:08 +00:00
Ulf Lamping a309bf0a8a first implementation of the packet history function
svn path=/trunk/; revision=12460
2004-11-01 11:42:08 +00:00
Ulf Lamping 7445ecfd05 split capture_loop from capture.c, some more code cleanup
svn path=/trunk/; revision=12451
2004-10-30 17:50:51 +00:00
Ulf Lamping bdfe1d7fc8 move quit_after_cap into capture_opts
svn path=/trunk/; revision=12449
2004-10-30 14:30:52 +00:00
Guy Harris b48b8847b1 Change some of the merge.c APIs to return more information on failure,
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 23:28:37 +00:00
Ulf Lamping e0bbf855d9 fix doxygen tags
svn path=/trunk/; revision=12404
2004-10-27 04:45:00 +00:00
Ulf Lamping 5fed058707 fix doxygen generation
svn path=/trunk/; revision=12403
2004-10-27 04:03:31 +00:00
Guy Harris c0ad4beb9c Change some code that affects g_resolv_flags to set a flag if the check
box for the flag is active and clear it if it's inactive, rather than
clearing all but RESOLV_CONCURRENT and then setting flags if the check
box is active - or, in one case, not clearing any flags due to a typo
and then setting them, so they never get cleared.  This matches what's
done with theresolution flags in some other places.

svn path=/trunk/; revision=12375
2004-10-22 07:07:08 +00:00
Guy Harris 1cc64fbf11 The top-level window's list of capture filter expressions might not yet
exist if no filters have been remembered; don't set the popdown string
list for the filter combo box if the list is empty.

svn path=/trunk/; revision=12367
2004-10-21 19:12:22 +00:00
Guy Harris ee26f8b9bb From Alejandro Vaquero: in the RTP analysis code, don't analyze packets
that have an RTP version other than 2.

svn path=/trunk/; revision=12332
2004-10-17 22:14:47 +00:00
Guy Harris 34a94d6b37 When merging, default to the current file format as the output format.
svn path=/trunk/; revision=12327
2004-10-17 03:11:31 +00:00