Commit Graph

3496 Commits

Author SHA1 Message Date
Guy Harris b0e7d0029d DVMRP support, from Ronnie Sahlberg.
Give "packet-igmp.c" an RCS ID.

svn path=/trunk/; revision=3539
2001-06-12 06:21:55 +00:00
Guy Harris 29d49954f1 Display hex numbers with a leading 0x.
Supply "true" and "false" strings for the Order flag bit.

svn path=/trunk/; revision=3538
2001-06-12 05:40:05 +00:00
Guy Harris 3c7b6471e3 Rename the arguments and flags for the conversation routines, so as not
to imply that

	1) conversations have source and destination addresses and ports
	   - they don't (if they did, they'd be monologues, not
	   conversations), they just have two address/port pairs for the
	   two endpoints, with one or more of the address or port in the
	   second pair possibly being wildcarded;

	2) the first and second address or port argument to
	   "find_conversation()" or "try_conversation_dissector()" have
	   anything to do with the first or second address/port pair in
	   a conversation - they don't, the two arguments to those
	   routines are matched against *both* address/port pairs for a
	   conversation;

as otherwise people might think that they need to add flags to wildcard
the first arguments "conversation_new()" or "find_conversation()" (they
don't, they just have to pass the non-wildcarded address/port first and
then pass the wildcarded one, even if that means passing the destination
first and source second).

svn path=/trunk/; revision=3537
2001-06-10 09:50:20 +00:00
Guy Harris 78f6f176d4 Clean up the handling of MAC addresses - set the addresses in the
standard fashion, for data and managment packets, and set the columns
correctly for other packets (as we currently put address types in the
address columns; if we don't do so, we could just set the addresses in
the standard fashion for those packets as well).

svn path=/trunk/; revision=3536
2001-06-10 07:40:39 +00:00
Guy Harris 4224945f52 Clean up the handling of AVPs.
svn path=/trunk/; revision=3535
2001-06-10 04:42:34 +00:00
Guy Harris 04734ec83d MP-BGP message support, from Thierry Stagiaire.
svn path=/trunk/; revision=3534
2001-06-10 02:08:11 +00:00
Guy Harris 58304dd1f7 "long" does not necessarily mean "32-bit integral data type"; the union
used to treat a 32-bit quantity either as 2 16-bit quantities or a
32-bit quantity should use "guint32", not "long", for the latter.

We should also use "guint8" for the two 8-bit quantities in "s_util",
although that shouldn't make a difference in practice (we store into
them, but fetch only the 16-bit overlapping quantity, which is already
unsigned).

svn path=/trunk/; revision=3533
2001-06-09 01:02:29 +00:00
Guy Harris e52dd802c4 We only need to print the data corresponding to the field, so fetch only
that data with a "tvb_get_ptr()".

svn path=/trunk/; revision=3532
2001-06-08 10:07:55 +00:00
Guy Harris 2da9bb2696 When printing the contents of a raw-data field, don't use the raw data
of the current frame as the source, use the raw data of the tvbuff
that's the data source of that field.

svn path=/trunk/; revision=3531
2001-06-08 08:50:51 +00:00
Guy Harris 14c9f7464a The only thing including "globals.h" did for us was to drag in
"packet.h"; we don't need the rest of what "globals.h" gives us, so just
include "packet.h".

svn path=/trunk/; revision=3530
2001-06-08 08:43:48 +00:00
Guy Harris f63755f54c There's no need to include "globals.h" - don't include it.
svn path=/trunk/; revision=3529
2001-06-08 08:41:03 +00:00
Guy Harris 9dea55d1ff Add support for reassemmbling IPv6 fragments, and add an option to
control whether to do it or not.

svn path=/trunk/; revision=3528
2001-06-08 08:30:42 +00:00
Guy Harris c904473c8e Don't display the data portion of an ER NPDU - we dissect it as a CLNP
PDU.

svn path=/trunk/; revision=3527
2001-06-08 08:29:15 +00:00
Guy Harris e8c7a026d2 Don't display the data portion of an ER NPDU - we dissect it as a CLNP
PDU.

svn path=/trunk/; revision=3526
2001-06-08 07:44:36 +00:00
Guy Harris c9da803a08 Move the fragment reassembly code into "reassemble.c" and
"reassemble.h", and remove IPv4 dependencies from it.

Use it for OSI CLNP segment reassembly as well.

svn path=/trunk/; revision=3525
2001-06-08 06:27:16 +00:00
Guy Harris 988785407f Use "col_set_str()", rather than "col_add_str()", wherever possible.
Don't bother doing multiple "tvb_get_letohs()" to get the frame control
field - we fetched it once, just use the value we fetched.

Call sub-dissectors *regardless* of whether a protocol tree is being
built or not - dissectors should always do so.

svn path=/trunk/; revision=3524
2001-06-08 06:01:06 +00:00
Guy Harris 46acd2ba20 Pull the hash functions into macros, rather than using duplicating the
code to generate the hash index.

svn path=/trunk/; revision=3523
2001-06-07 22:07:02 +00:00
Guy Harris 4dff9f69c0 More updates from Hannes Gredler.
svn path=/trunk/; revision=3522
2001-06-07 19:13:35 +00:00
Guy Harris 2388d411bd Updates from Martin Held.
svn path=/trunk/; revision=3521
2001-06-06 18:53:27 +00:00
Guy Harris 9ec529ef4d Gnutella support, from B. Johannessen.
svn path=/trunk/; revision=3520
2001-06-06 01:30:30 +00:00
Guy Harris b311794270 Fix a comment.
Split some lines differently.

svn path=/trunk/; revision=3519
2001-06-06 01:29:17 +00:00
Guy Harris 4d99343d8b Fix a typo.
svn path=/trunk/; revision=3518
2001-06-05 23:40:34 +00:00
Guy Harris a4aec4051d hmac-md5 authentication support for IS-IS, from Hannes Gredler.
svn path=/trunk/; revision=3517
2001-06-05 21:23:32 +00:00
Guy Harris 9bb2c30bc2 Juniper Networks vendor ID in RADIUS dissector, from Hannes Gredler.
svn path=/trunk/; revision=3516
2001-06-05 21:21:38 +00:00
Guy Harris b92e322537 Compensate better for invalid (at least for IPv4) prefix lengths in
FECs.

svn path=/trunk/; revision=3515
2001-06-05 21:00:17 +00:00
Guy Harris f2e04def43 Correctly compute the OSI checksum.
Have "calc_checksum()" just return an indication of the status of the
checksum.

Check the CLNP header checksum, and put display its status.

svn path=/trunk/; revision=3514
2001-06-05 09:06:19 +00:00
Guy Harris 2851b7ef76 Enable "Match Selected" only if there's a field selected *and* we can do
a "Match Selected" on it - we can't do a "Match Selected" if the field
has no value (e.g., FT_NULL) and has a length of 0.

If we unselect the current packet, we don't have a protocol tree, so we
don't have a currently selected field - clear the "Match Selected" menu
item and the display in the status line of information about the
currently selected field.

Move the low-level statusbar manipulation into "gtk/main.c", in routines
whose API doesn't expose anything GTK+-ish.

"close_cap_file()" calls one of those routines to clear out the status
bar, so it doesn't need to take a pointer to the statusbar widget as an
argument.

"clear_tree_and_hex_views()" is purely a display-manipulating routine;
move it to "gtk/proto_draw.c".

Extract from "tree_view_unselect_row_cb()" an "unselect_field()" routine
to do all the work that needs to be done if the currently selected
protocol tree row is unselected, and call it if the currently selected
packet list row is unselected (if it's unselected, there *is* no
protocol tree, so no row can be selected), as well as from
"tree_view_unselect_row_cb()".

Before pushing a new field-description message onto the statusbar, pop
the old one off.

Get rid of an unused variable (set, but not used).

svn path=/trunk/; revision=3513
2001-06-05 07:39:31 +00:00
Guy Harris 36efcd0364 There is no string value assigned to the "ip.fragment.error",
"ip.fragment", and "ip.fragments" fields, so make them FT_NONE, not
FT_STRING.  (Otherwise, if you try to do a "Match Selected" on them, we
dump core because the value is a null pointer and we try to dereference
it.)

svn path=/trunk/; revision=3512
2001-06-05 05:54:14 +00:00
Guy Harris 7778d77931 Make Ethereal default to promiscuous-mode captures, the way it did
before promiscuous-vs-non-promiscuous was made a preference in the
preferences file (I suspect at least some of the problems people are
seeing with captures on Windows not seeing all the traffic they expect
to see might be due to the captures not being done in promiscuous mode -
and the default behavior shouldn't have changed in any case).

svn path=/trunk/; revision=3511
2001-06-04 08:07:34 +00:00
Guy Harris 671992baab Define a "COPY_ADDRESS()" macro, which copies the data in one address to
another (copying the data to a mallocated array) in
"epan/packet_info.h", and use it in the conversation code.

svn path=/trunk/; revision=3510
2001-06-04 07:27:50 +00:00
Guy Harris a5a36589f8 Add an "ADDRESSES_EQUAL()" macro, taking pointers to two "address"
structures as arguments, that evaluates to "true" if the two addresses
are equal and "false" if they're not equal.  Use that macro in the
conversation code.

svn path=/trunk/; revision=3509
2001-06-04 06:46:07 +00:00
Guy Harris 8ee0584e8d Updates from Mark Burton.
svn path=/trunk/; revision=3508
2001-06-04 05:32:52 +00:00
Gilbert Ramirez 01c7763de3 Correct the values for sna_rh_ru_category_vals, thanks to
Edgar Iglesias <edgar.iglesias@axis.com>
Also fix a few more places where I accidentally used hex instead
of binary.

svn path=/trunk/; revision=3507
2001-06-02 22:18:17 +00:00
Guy Harris 048625f419 "old_dissector_delete()" is no longer used; remove it.
Update Gerald's e-mail address.

svn path=/trunk/; revision=3506
2001-06-02 08:23:10 +00:00
Guy Harris f5d135ad13 Handoff registration routines must be named "proto_reg_handoff_XXX()",
not "proto_register_handoff_xxx()"; otherwise, the Python
"register.c"-generation script will think it's a protocol registration
routine not a handoff registration routine.

svn path=/trunk/; revision=3505
2001-06-02 08:15:57 +00:00
Guy Harris 3831d06992 On Windows, "min" apparently gets defined or declared in such a fashion
that declaring our own static function "min()" doesn't work; rename it
"iscsi_min()" to get rid of the problem.

svn path=/trunk/; revision=3504
2001-06-02 08:13:04 +00:00
Guy Harris 261c18fcd7 Not all platforms have u_int32_t (for example, Windows+MSVC doesn't), so
use "guint32" instead.

svn path=/trunk/; revision=3503
2001-06-02 08:10:02 +00:00
Guy Harris 8e4d1cce1e Windows+MSVC lacks "strptime()", so we need to include "strptime.h" to
declare our version of it.

svn path=/trunk/; revision=3502
2001-06-02 08:07:47 +00:00
Guy Harris b699efc451 Changes to structure initializations not to initialize some but not all
members, from Joerg Mayer.

svn path=/trunk/; revision=3501
2001-06-02 06:26:54 +00:00
Guy Harris 14ab278788 Windows and the MSVC++ 6.0 library don't have "strptime()", so pull in
the glibc "strptime()" (modified so it doesn't require the rest of
glibc), set up the configure script to check for it, and set up
Makefile.am and Makefile.nmake to use it.

Get rid of NEED_MKSTEMP - nothing uses it.

svn path=/trunk/; revision=3500
2001-06-02 06:21:14 +00:00
Guy Harris 89a74629b2 Create the tree for an ICMPv6 optionn before putting something in it.
svn path=/trunk/; revision=3499
2001-06-02 06:10:08 +00:00
Guy Harris b2ab758ca7 The Cisco 802.11 bridges used 0000F8, i.e. OUI_CISCO_90, not 000078;
various Cisco documents indicate that 0000F8 is used on at least some
Cisco boxes for bridging Ethernet frames onto 802.x+LLC frames.

svn path=/trunk/; revision=3498
2001-06-02 03:04:12 +00:00
Jun-ichiro itojun Hagino 78d7c0ca28 draft-draves-ipngwg-router-selection-01 support.
fix icmp6 homeagent info option decoding (convert to tvb framework).
plug a memory leak.
sync some of mobile-ip6 #define symbol names with draft-ietf-ipngwg-2292bis-02.

svn path=/trunk/; revision=3497
2001-06-01 23:53:49 +00:00
Guy Harris 40c78f3b80 Some Cisco 802.11 bridges apparently change the OUI of packets from
000000 to 000078, so treat LLC packets with that OUI the same way we
treat LLC packets with 000000.

svn path=/trunk/; revision=3496
2001-06-01 23:04:37 +00:00
Guy Harris ce18175da0 Updates from Martin Held.
svn path=/trunk/; revision=3495
2001-06-01 21:00:13 +00:00
Guy Harris 7303b2da99 Bug fixes, and WEP support, from Javier Achirica.
svn path=/trunk/; revision=3494
2001-06-01 01:15:29 +00:00
Guy Harris 374151cc40 Support for leading LWS in RTSP headers, from Robert Tsai.
svn path=/trunk/; revision=3493
2001-05-31 20:40:29 +00:00
Guy Harris c3db6052cb Updates from Mark Burton.
svn path=/trunk/; revision=3492
2001-05-31 19:20:41 +00:00
Guy Harris ffb3b28de6 Don'tcramallthewordsinapreference'snametogether;
underscores_are_permitted_in_those_names.

svn path=/trunk/; revision=3491
2001-05-31 08:54:17 +00:00
Guy Harris e1b5ff9586 Make the "short name" of MTP Level 3 just "MTP3", matching what we put
in the Protocol column, and make the "filter name" "mtp3", as filter
names are supposed to be all-lower-case.

svn path=/trunk/; revision=3490
2001-05-31 08:51:29 +00:00