Commit Graph

3517 Commits

Author SHA1 Message Date
Guy Harris b9222c0011 Various signed vs. unsigned fixes, from Joerg Mayer.
svn path=/trunk/; revision=3560
2001-06-18 01:49:17 +00:00
Guy Harris c8554ff99a Define __USE_XOPEN in files that use "strptime()", from Joerg Mayer.
svn path=/trunk/; revision=3559
2001-06-18 01:42:24 +00:00
Guy Harris f15f06f1a4 Support for External Reachability TLVs, and assorted output
improvements, from Hannes Gredler.

svn path=/trunk/; revision=3558
2001-06-18 01:24:58 +00:00
Guy Harris 5feae29f1d Add the PPP Compression Control Protocol to the list of PPP protocols
for which the ethertype dissector knows the name.

svn path=/trunk/; revision=3557
2001-06-16 00:54:33 +00:00
Guy Harris 07bdfa61bc Set the Protocol column in dissectors for PPP-specific subprotocols.
svn path=/trunk/; revision=3556
2001-06-16 00:51:45 +00:00
Guy Harris 2bb26e5d5b PAP support, from Laurent Rabret.
svn path=/trunk/; revision=3555
2001-06-15 20:35:08 +00:00
Guy Harris 4a5b324abb Explain why we have to be ready to handle Ethernet frames with
protocol type values that are PPP protocol types.

svn path=/trunk/; revision=3554
2001-06-15 20:23:41 +00:00
Guy Harris 738fe781f9 There can be more than one next hop network address in the
BGPTYPE_MP_REACH_NLRI stuff; dissect all of them.

svn path=/trunk/; revision=3553
2001-06-15 08:01:31 +00:00
Guy Harris e035695ede If "buf" is a "char *", "sizeof(buf)" evaluates to the size of a
"char *" variable, not to the size of the buffer to which it points.

svn path=/trunk/; revision=3552
2001-06-15 07:36:31 +00:00
Guy Harris cb1260ab9f If the capture child process sends the parent an error message with a
byte count of zero, don't bother allocating a buffer for that message,
as we wouldn't do anything with that buffer.

Null-terminate the error message once we read it, before using it as a
string.

svn path=/trunk/; revision=3551
2001-06-15 01:36:46 +00:00
Guy Harris 535bd4f913 Clean up the handling of RTP padding.
svn path=/trunk/; revision=3550
2001-06-15 00:42:39 +00:00
Guy Harris 3998e1321d Bug fix from Francisco Javier Cabello.
svn path=/trunk/; revision=3549
2001-06-14 22:34:39 +00:00
Guy Harris fd6901b0c9 As long as we're supporting PPP protocol types over Ethernet, we might
as well just include "ppptypes.h" in "packet-ethertype.c", rather than
defining ETHERTYPE_ values equal to the corresponding PPP_ values, and
add entries for the PPP protocols we now dissect when running atop
Ethernet.

svn path=/trunk/; revision=3548
2001-06-14 20:37:07 +00:00
Guy Harris 2d0a0be252 LCP-over Ethernet and IPCP-over-Ethernet support, from Laurent Rabret.
svn path=/trunk/; revision=3547
2001-06-14 20:05:13 +00:00
Ashok Narayanan a077ae8a6f Cosmetic: Corrected "Maximum policed unit" to "Maximum packet size"
svn path=/trunk/; revision=3546
2001-06-14 18:26:04 +00:00
Guy Harris d9fe106f0d Set the reported length of the tvbuff we hand to the MPEG1 dissector.
svn path=/trunk/; revision=3545
2001-06-14 09:34:14 +00:00
Guy Harris 278d0dcf90 RFC 2250 MPEG1 support, from Francisco Javier Cabello.
svn path=/trunk/; revision=3544
2001-06-14 09:25:25 +00:00
Guy Harris 899df7ef83 An Acct-Status-Type value of 3 is Interim-Update; thanks and a tip of
the hat to Diana Eichert for pointing out that 3 was missing.

svn path=/trunk/; revision=3543
2001-06-14 08:23:50 +00:00
Guy Harris 026db5a26f Check for a bogus TCP header length, and don't try to do dissection if
it's bogus.

svn path=/trunk/; revision=3542
2001-06-14 08:09:59 +00:00
Guy Harris 248e1f3430 If we see an RTP packet for a version of the protocol other than version
2, don't try to dissect any of it other than the version field.

Don't try to dissect the RTP data and padding if there's more padding
than data....

svn path=/trunk/; revision=3541
2001-06-14 07:05:51 +00:00
Guy Harris 22b8c6770f Give a number of files RCS IDs.
Give "proto_hier_stats.h" a standard header.

svn path=/trunk/; revision=3540
2001-06-12 06:32:39 +00:00
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