Commit Graph

3649 Commits

Author SHA1 Message Date
Uwe Girlich f4f5e0c4d4 initial checkin of the QuakeWorld network protocol dissector
svn path=/trunk/; revision=3592
2001-06-21 15:15:02 +00:00
Uwe Girlich 1b971dbfae signed/unsigned warning corrected
the server port is now configurable via preferences
code reformatting

svn path=/trunk/; revision=3591
2001-06-21 15:13:42 +00:00
Guy Harris 5748457c94 Get rid of an unused #define.
Make routines not used outside this module static.

Make "find_header_length()" return the correct value for management and
control frames.

svn path=/trunk/; revision=3590
2001-06-21 06:59:47 +00:00
Guy Harris eea200a485 Don't use "tvb_get_ptr()" and "pletohs()" just to fetch a 16-bit
integral value from a packet - "tvb_get_letohs()" can do that just fine.

Don't use "tvb_get_ptr()", casting the result to a "guint16 *", and
dereferencing that pointer, either: that doesn't handle byte order
correctly, and it may fail if the pointer isn't aligned on a 2-byte
boundary.

For that matter, don't just use "tvb_get_ptr()" and dereference the
result to get an 8-bit quantity.

Use "proto_tree_add_item()" in many places where it's possible.

Reuse the results of "tvb_get_ptr()" calls when possible.

Show the fragment number and sequence number in decimal - they're just
ordinals.

Fix the blurb for the sequence number field.

svn path=/trunk/; revision=3589
2001-06-21 06:36:44 +00:00
Guy Harris f492449c58 Make sure the top-level 802.11 item covers the entire frame.
Give the type field values names, rather than just showing them as 0, 1,
and 2.

svn path=/trunk/; revision=3588
2001-06-20 23:58:57 +00:00
Guy Harris a9eb080410 Make the type/subtype field the very first entry in the protocol tree,
and put it under the top-level 802.11 protocol item, so you don't have
to open the frame control field to see it.

Rename the variable for it, and the value_string array for it, to
indicate that it's made out of the type and subtype fields.

svn path=/trunk/; revision=3587
2001-06-20 23:29:16 +00:00
Guy Harris 693ff9fecb All four data frame types are now handled with identical code, so,
instead of having four identical copies of that code in switch
statements, just handle all four of them with the same case.

svn path=/trunk/; revision=3586
2001-06-20 23:12:05 +00:00
Guy Harris 49a931ee69 Put the combined type/subtype into the protocol tree, so you can look
for all Association Request frames, or all frames except for
Clear-to-send frames, or....

Compute the composed frame type early in the dissection process, and set
the Info column as soon as you've done that, rather than doing it in the
later switch statement.

svn path=/trunk/; revision=3585
2001-06-20 23:04:36 +00:00
Guy Harris 9b8bfbe171 If it's not a protocol, it doesn't belong at the top level of the
protocol tree; not only is putting it at the top level a little weird,
it upsets the heck out of the protocol-statistics code, causing it to
abort.  Put the fixed and tagged parameters under the top-level entry
for 802.11 (where one of the fixed-parameters entries already was).

Call the top-level item just "IEEE 802.11", not "IEEE 802.11 Header", as
it includes management-frame information.

svn path=/trunk/; revision=3584
2001-06-20 22:26:07 +00:00
Guy Harris ff0d7ee9c4 Clean up a string.
svn path=/trunk/; revision=3583
2001-06-20 06:22:33 +00:00
Guy Harris 65d0b1e526 Fix "COOK_ADDR_SELECTOR()" to extract the 2 bits that determine the
interpretation of the address fields, in DATA_ADDR_T{1,2,3,4} format.

Clean up a bunch of other macros to enclose their argument in
parentheses.

Clean up "find_header_length()" - it only needs to take the frame
control field of the frame as an argument, and should just check whether
"COOK_ADDR_SELECTOR()" returns DATA_ADDR_T4.

"tofrom_ds" is a value_string table, not a true_false_string table, so
wrap it in "VALS()", not "TFS()".

Don't fetch the header length in N different places in the main
dissector - just fetch it once and use it throughout.

svn path=/trunk/; revision=3582
2001-06-20 06:15:07 +00:00
Guy Harris 5d8b3d5659 Catch TLVs with bogus lengths (i.e., less than the fixed-length header
size); otherwise, we run the risk of looping forever.

svn path=/trunk/; revision=3581
2001-06-20 05:18:36 +00:00
Guy Harris 8073087bdf RTSP fixes, from nuf si.
svn path=/trunk/; revision=3580
2001-06-20 04:45:52 +00:00
Guy Harris eb5031e9df Handle Negotiate Protocol replies with the "extended security"
capability flag set.

svn path=/trunk/; revision=3579
2001-06-20 01:58:48 +00:00
Guy Harris 8c52d3db75 More signed vs. unsigned cleanups, and initialization cleanups, from
Joerg Mayer.

svn path=/trunk/; revision=3578
2001-06-19 23:08:57 +00:00
Guy Harris 099903ee7b Updates from Frank Singleton.
svn path=/trunk/; revision=3577
2001-06-19 20:10:51 +00:00
Guy Harris 5c183da3dc From Frank Singleton: fix compiler warnings.
svn path=/trunk/; revision=3576
2001-06-19 18:50:33 +00:00
Guy Harris 60d762a7c2 In a capture child process, *completely ignore* the preference setting
for promiscuous mode; just do what the parent process told you, i.e. do
a non-promiscuous capture iff a "-p" flag was specified.

svn path=/trunk/; revision=3575
2001-06-19 08:47:48 +00:00
Guy Harris decbfd0226 Labels must be followed by statements; GCC may let you get away without
the statement, but MSVC++ doesn't.

svn path=/trunk/; revision=3574
2001-06-19 08:33:00 +00:00
Guy Harris 02db206409 Not all Python scripts generate dissectors; "make-reg-dotc.py" generates
"register.c", and, as such, shouldn't stuff ", HFILL" into its output.

svn path=/trunk/; revision=3573
2001-06-19 08:29:32 +00:00
Guy Harris 61c0c6c290 Get rid of global references to "pi" - use "pinfo" instead.
svn path=/trunk/; revision=3572
2001-06-19 04:46:10 +00:00
Guy Harris 61cb233810 Many corrections and updates for connection-oriented WSP, from Alexandre
P. Ferreira.

svn path=/trunk/; revision=3571
2001-06-18 22:27:30 +00:00
Guy Harris 37445739b2 From Frank Singleton: add code generation support for IDL array types.
svn path=/trunk/; revision=3570
2001-06-18 19:31:50 +00:00
Uwe Girlich 61f8385703 NFS file handle analysing works now for kernel based NFS v3 servers of
Linux 2.4.0 too.

svn path=/trunk/; revision=3569
2001-06-18 16:38:22 +00:00
Guy Harris 4bb5c7d15e Don't list the attribute-value pairs if the length field of the packet
says there aren't any (i.e., if the length field minus the size of the
stuff before the AVP's is less than or equal to 0).

svn path=/trunk/; revision=3568
2001-06-18 09:31:15 +00:00
Guy Harris 516c93c5e3 From Craig Rodrigues: changes to handle current versions of RPM, which
compress man pages.

svn path=/trunk/; revision=3567
2001-06-18 07:21:30 +00:00
Guy Harris 322f2031f9 Fix up the buffer size calculation - the starting offset isn't a
multiple of 4, so making the size of the buffer a multiple of 4 isn't
the right thing to do.

svn path=/trunk/; revision=3566
2001-06-18 06:31:05 +00:00
Guy Harris 0645bf8d3f Get rid of an unnecessary declaration of "packet_list".
svn path=/trunk/; revision=3565
2001-06-18 06:18:03 +00:00
Guy Harris b938f1d657 The ICQ decryption code works on 4 bytes at a time, so the amount of
data it decrypts must be a multiple of 4; round the size of the ICQ data
to a multiple of 4, and use that as the size of the buffer into which to
put the decrypted data and as the byte count passed to the decryption
routine.

svn path=/trunk/; revision=3564
2001-06-18 05:54:26 +00:00
Guy Harris 995f8522b3 Support for protocols running atop GIOP, from Frank Singleton.
svn path=/trunk/; revision=3563
2001-06-18 05:27:18 +00:00
Guy Harris c6bee5f6c1 Crank up the warning level in GCC, from Joerg Mayer.
svn path=/trunk/; revision=3562
2001-06-18 02:26:00 +00:00
Guy Harris 8412393197 From Joerg Mayer: explicitly fill in all members of a
"header_field_info" structure, including the ones that are later set by
the routines to register fields.

svn path=/trunk/; revision=3561
2001-06-18 02:18:27 +00:00
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