Commit Graph

24711 Commits

Author SHA1 Message Date
Stig Bjørlykke 3fe084beb3 Rewrote ifopts_options_add() to make it readable and simpler.
Fixed a bug where a one character comment would skip the interface.
If syntax error in the comment just skip the comment instead of the interface.

svn path=/trunk/; revision=25413
2008-06-02 22:18:25 +00:00
Stig Bjørlykke d8b975c6cb Rewrote to not use gtk_combo_box_get_active_text().
svn path=/trunk/; revision=25412
2008-06-02 21:35:22 +00:00
Stig Bjørlykke 561f66c1b8 Added an option to set default link-layer header type for each interface.
Set linktype history for each interface so we don't mix them.
Fixed some indents.

svn path=/trunk/; revision=25411
2008-06-02 17:45:03 +00:00
Stig Bjørlykke d623efba63 Don't include \r in linktype on win32, it looks weird in the combo box.
svn path=/trunk/; revision=25410
2008-06-02 17:17:24 +00:00
Stig Bjørlykke d58dd2088f From Rudolf Weidmann (bug 2583):
Fixed enumeration type for new-mode in change-of-life-safety.

svn path=/trunk/; revision=25409
2008-06-02 07:32:55 +00:00
Jaap Keuter e20bbb0b5f Clean up desktop files based on changes made by Stig.
svn path=/trunk/; revision=25408
2008-06-02 07:26:34 +00:00
Stephen Fisher 412525b59d From Toralf Förster: Fix minor typo: MAde -> Made
svn path=/trunk/; revision=25407
2008-06-01 18:45:19 +00:00
Jaap Keuter 9323e90cc5 Update Debian packaging files for Wireshark 1.0.
These files build the package with all features and
minimum changes from the released sources.

svn path=/trunk/; revision=25406
2008-05-31 16:44:02 +00:00
Guy Harris fa2b419e60 Return the appropriate "everything OK" types.
svn path=/trunk/; revision=25405
2008-05-30 07:15:05 +00:00
Guy Harris 861f06b616 Clean up indentation.
svn path=/trunk/; revision=25404
2008-05-30 07:13:28 +00:00
Guy Harris f4cbe1fea9 Include <string.h> to declare strcmp().
svn path=/trunk/; revision=25403
2008-05-30 05:46:24 +00:00
Guy Harris a040608bbb g_strcmp0() only shows up on the Intarweb in documentation for some
testing version of GLib; it doesn't appear to exist in any current
versions.  There's no need to "gracefully" handle NULL (whatever
"gracefully" means in this context - NULL compares less than any real
string?), as we already checked whether mac_name is null, and we're
comparing it against a string constant; just use strcmp().

In ssh_gslist_compare_strings(), check for null pointers for now.

strcmp() (and strcmp-alikes) don't return a boolean, they return a value
such that comparing strings with a particular operator is done by
comparing the result of strcmp() with 0 using that operator; do that, to
make it clearer that the strings are being compared for equality.

svn path=/trunk/; revision=25402
2008-05-30 05:19:54 +00:00
Guy Harris ffcb641149 Again, the err_info returned from wtap_read() and wtap_seek_read() is a
g_mallocated string, so it's not const.

Fix a comment to reflect reality (err_info is some additional
information about the error returned by Wiretap, e.g. some gory details
about the error, mainly useful to developers and support people).

svn path=/trunk/; revision=25401
2008-05-30 04:03:32 +00:00
Guy Harris be161ba460 Free up the err_info string returned by wtap_read() and
wtap_seek_read().

Clean up indentation.

svn path=/trunk/; revision=25400
2008-05-30 02:44:02 +00:00
Guy Harris 07263e1a17 Free up the err_info string returned by wtap_read().
svn path=/trunk/; revision=25399
2008-05-30 02:37:36 +00:00
Guy Harris 3ff150d6d6 wtap_read() and wtap_seek_read(), and thus the functions that it calls,
are expected to return a g_mallocated error string; that's why they fill
in a gchar **, not a const gchar **.  g_strdup() the argument to
KERROR(), so it's g_mallocated.

svn path=/trunk/; revision=25398
2008-05-30 02:34:45 +00:00
Stephen Fisher 1fc6505fb8 From Kees Cook via bug #2577 (with minor modifications by me):
provide more detailed SSH dissection


svn path=/trunk/; revision=25397
2008-05-30 02:13:30 +00:00
Guy Harris c0f20c9e07 Fix references to tcpdump-workers@tcpdump.org to refer to the new
address, tcpdump-workers@lists.tcpdump.org.

svn path=/trunk/; revision=25396
2008-05-30 01:47:57 +00:00
Guy Harris aa7dfb40e0 A MAC address is a sequence of 6 8-bit unsigned values (guint8), not a
sequence of 6 ASCII characters (gchar).

svn path=/trunk/; revision=25395
2008-05-30 00:01:24 +00:00
Guy Harris ef86058bfe For a character string, use an array of char, not an array of guint8
(the characters are all digits), and, to point to it, use a pointer to
char rather than a pointer to guint8.

svn path=/trunk/; revision=25394
2008-05-29 23:53:19 +00:00
Guy Harris e0ea5fe220 Fix the types of k12text_read() and k12text_seek_read() to match what
the types of read and seek_read routines in Wiretap are supposed to be,
and get rid of the casts of pointers to those functions (type problems
should be fixed, not papered over with casts, whenver possible).

svn path=/trunk/; revision=25393
2008-05-29 23:40:12 +00:00
Guy Harris 9ab8f5a907 Have iseries_parse_hex_string() take a "const char *" as its first
argument, as

	1) it doesn't modify the string that argument points to

and

	2) it's a buffer of "char".

Use g_ascii_xdigit_value() and put the values of the two bytes together
ourselves; strtoul() is a bit of overkill for two-hex-digit pairs. 
While we're at it, check for invalid hex digits, and for bytes where
only one hex digit is present.

svn path=/trunk/; revision=25392
2008-05-29 23:30:51 +00:00
Guy Harris bdd6b807d7 Note underflow/overflow possibilities (there used to be checks that
clamped at TIME_T_MIN and TIME_T_MAX, but newer versions of GCC
"helpfully" warn that the usual checks for overflow or underflow "can't
fail").

svn path=/trunk/; revision=25391
2008-05-29 16:51:49 +00:00
Gerald Combs 24ca5dbdc3 Print "POSIX capabilities" instead of "libcap".
svn path=/trunk/; revision=25390
2008-05-28 18:52:31 +00:00
Jeff Morriss e70fdb05a7 Fail the fuzz test (reporting the *input* file as a problem) if capinfos aborts out--like it was for iSeries files prior to rev 25388.
svn path=/trunk/; revision=25389
2008-05-28 15:36:29 +00:00
Jeff Morriss 3251c05742 Always set pkt_encap, not just when we have the start date. This bug, around
since rev 17756, meant that attempts to read iSeries files would fail in the
"Make sure it [pkt_encap] is not WTAP_ENCAP_PER_PACKET" assertion in
wtap_read().

Also set file_encap to WTAP_ENCAP_ETHERNET (instead of WTAP_ENCAP_PER_PACKET)
since it seems that all the packets in iSeries files are Ethernet (or at least
this module currently only supports Ethernet).

svn path=/trunk/; revision=25388
2008-05-28 15:01:16 +00:00
Martin Mathieson c0353af700 Missed "bytes" -> "bits" changes.
svn path=/trunk/; revision=25387
2008-05-27 19:00:47 +00:00
Martin Mathieson f4981baf47 Type 2 hsdsch data is different (size in bytes and byte-aligned).
svn path=/trunk/; revision=25386
2008-05-27 16:08:08 +00:00
Martin Mathieson 44c5c69d04 Fix max pdu size in hsdsch alloc type 2.
svn path=/trunk/; revision=25385
2008-05-27 11:13:57 +00:00
Martin Mathieson 9fbeaf2d28 Enable R7 FP for UDP-based variants.
Correct interpretation of hs-dsch outhdr flag.









svn path=/trunk/; revision=25384
2008-05-27 10:58:15 +00:00
Martin Mathieson c6dc7911df Fix subtle bugs introduced by recent change to safer APIs.
I was counting the length without the terminating NULL, and didn't want one to be written to the string and copied into the file.








svn path=/trunk/; revision=25383
2008-05-27 10:24:25 +00:00
Bill Meier 9a53920530 Do plugins Checkapi only if the checkapi target is explicitly invoked.
svn path=/trunk/; revision=25382
2008-05-27 02:14:14 +00:00
Jaap Keuter c5e9eb9df7 From Balint Reczey:
The attached patch extends LAPD dissector to handle LAPD frames sent as RTP payload.

svn path=/trunk/; revision=25381
2008-05-26 20:52:38 +00:00
Anders Broman 4f9cd6c27d Fix run checkapi for more targets.
svn path=/trunk/; revision=25380
2008-05-26 17:09:03 +00:00
Martin Mathieson 03d7032acd Show ops, etc even when no filter set.
Also avoid crash I was seeing when changing preferences.

svn path=/trunk/; revision=25379
2008-05-26 08:22:33 +00:00
Ronnie Sahlberg 861761ef7c dissect te lock structures in the LOCK request
svn path=/trunk/; revision=25378
2008-05-26 02:51:36 +00:00
Martin Mathieson fd6090cff6 Add these functions as requested in bug 2553.
svn path=/trunk/; revision=25377
2008-05-25 23:55:36 +00:00
Martin Mathieson dbb97069a4 More R7 tweaks and comment updates.
svn path=/trunk/; revision=25376
2008-05-25 23:12:56 +00:00
Jaap Keuter 734f20160a From Alex Turbov:
Show result code of last SSI operation with a human readable description.

svn path=/trunk/; revision=25375
2008-05-23 19:07:46 +00:00
Jaap Keuter 07f365a68d From Alex Turbov:
Dissector for given SNAC has a bug with actual sizeof of rate_class and
rate_group structure. So in UI clicking on 'Available Rate Classes' and
concrete 'Rate Group 0x??' items in decoded packet window higlight incorrect
bytes in hexdump window.

svn path=/trunk/; revision=25374
2008-05-23 19:06:16 +00:00
Stig Bjørlykke 057522cbdc Print correct number of packets for captured "From first to last marked packet".
svn path=/trunk/; revision=25373
2008-05-23 14:51:17 +00:00
Stig Bjørlykke 3e55619b8b Attempt to fix the !win32 build.
svn path=/trunk/; revision=25372
2008-05-23 13:14:08 +00:00
Ronnie Sahlberg bf7660d271 add more dissection of FIND infolevels
update the BREAK dissection


svn path=/trunk/; revision=25371
2008-05-23 11:31:01 +00:00
Bill Meier 007f598798 eth_ --> ws_
svn path=/trunk/; revision=25370
2008-05-23 10:43:04 +00:00
Anders Broman 7a57ee1f01 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25369
2008-05-23 06:06:33 +00:00
Anders Broman 36d89bb79c Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25368
2008-05-23 05:55:34 +00:00
Jaap Keuter ab26f8d8a3 From cfreeer:
Wimax vals_tek_encryption_ids does not confirm the latest spec. Zero should be
"No TEK encryption" instead of "Reserved".

svn path=/trunk/; revision=25367
2008-05-23 05:36:09 +00:00
Ronnie Sahlberg af748dc493 add dissectors for some more FIND info levels FileBothDirectoryInfo and
FileIdBothDirectoryInfo


svn path=/trunk/; revision=25366
2008-05-23 04:44:23 +00:00
Ronnie Sahlberg e98012570b enhance the FIND dissector
svn path=/trunk/; revision=25365
2008-05-23 04:20:54 +00:00
Ronnie Sahlberg 9aa916dc74 update the dissection of NOTIFY
svn path=/trunk/; revision=25364
2008-05-23 02:51:14 +00:00