Commit graph

31 commits

Author SHA1 Message Date
Anders Broman
118236bacc From Ignacio Goyret
correct a bug in parsing Lucent/Ascend PPP dumps. Basically, blobs with "PPP-OUT" should be labelled "PPP transmit" while blobs with "PPP-IN" should be labelled "PPP receive". The current code labels them the other way around.

packet-ppp.c
- Properly decode option to enable ECRTP (it wasn't decoded).
- Use the ipv6 knob to control ipv6 decoding (previously, it
  was using the ipv4 knob).

svn path=/trunk/; revision=16194
2005-10-11 19:55:55 +00:00
Guy Harris
f6ef22c553 Have show_exception() take a "const char *" as its exception message,
and not free the string to which it points.  Pass to
REPORT_DISSECTOR_BUG() strings allocated with ep_strdup_printf(), so
that they're freed automatically.

svn path=/trunk/; revision=16039
2005-09-28 16:16:37 +00:00
Guy Harris
b7b80d94be Move a pile of protocol-related headers from the top-level source
directory to the epan directory.  Some of them should perhaps ultimately
be moved to epan/dissectors, if they pertain only to stuff exported by a
particular dissector.

Fix Gerald's e-mail address in files we're moving.

svn path=/trunk/; revision=15844
2005-09-17 00:02:31 +00:00
Gerald Combs
e0331bbb1c Fix more problems found by Steve Grubb, along with other changes:
Camel: Fix an off-by-one error.  Don't alloc and free where it's not
needed.  Remove an unused variable.

PPP and K12: Fix memory leaks.

svn path=/trunk/; revision=15725
2005-09-08 15:01:16 +00:00
Jörg Mayer
7949c7f31c char -> const char warning fixes
svn path=/trunk/; revision=15079
2005-07-26 08:01:16 +00:00
Ulf Lamping
2c30357c48 checksum messages: use "[correct]" instead of "(correct)" and other "alike" messages
svn path=/trunk/; revision=14880
2005-07-08 22:11:13 +00:00
Guy Harris
4841b02c60 The data in an Identification packet is a message intended to be
human-readable; displayh it with "tvb_format_text()".

svn path=/trunk/; revision=14752
2005-06-25 19:14:17 +00:00
Ulf Lamping
fdb5b1af02 just to get things straight: a dissector should *never* do any g_assert() calls!
in a simple approach, I've replaced all g_assert() and g_assert_not_reached() calls by their exception throwing counterparts DISSECTOR_ASSERT() and DISSECTOR_ASSERT_NOT_REACHED()

this will replace application crash by showing a dissector bug, which is the desired behaviour

there were some g_assert calls in the protocol registering functions, which might not be acting as expected now, but to be able to simply search for g_assert in the future I've replaced that calls too

one g_assert remained, the one when someone throws an unknown exception "into" packet_frame.c, but IMHO this one should remain.

svn path=/trunk/; revision=14608
2005-06-10 18:28:22 +00:00
Jörg Mayer
b6db235c77 Change 802.11f -> F, 802.1d -> D, 802.1x -> X, 802.1q -Q, 802.1P -> p
svn path=/trunk/; revision=14321
2005-05-05 17:07:58 +00:00
Ulf Lamping
de77acf875 buildbot bugfix: add another tvb_ensure_bytes_exist (tvb,offset,length);
svn path=/trunk/; revision=13927
2005-03-27 01:02:29 +00:00
Ulf Lamping
9fe9c6826f buildbot bugfix: another (un-)signed problem and a problem with the offset (fixed by calling tvb_ensure...)
svn path=/trunk/; revision=13921
2005-03-26 12:10:58 +00:00
Guy Harris
67c8764353 Add some length checks to the CHAP dissector.
Use %u, not %d, to display unsigned values.

svn path=/trunk/; revision=13908
2005-03-26 00:15:19 +00:00
Ulf Lamping
29b948e907 buildbot bugfix: and again, a guint16 will never become lower than zero
svn path=/trunk/; revision=13906
2005-03-25 23:12:07 +00:00
Guy Harris
f981bb3341 For the Bandwidth Allocation Protocol Phone Delta option:
the length of a suboption must be at least 2;

	the length of the Unique Digit option must be 3, and its name is
	"Unique Digit", not "Uniq Digit";

	the length of the other suboptions must be at least 3.

svn path=/trunk/; revision=13901
2005-03-25 20:12:27 +00:00
Guy Harris
525396b959 In the cases fixed by the two previous fixes, check to make sure the
items don't run past the length left in the option, and, if they do, put
an indication into the protocol tree that they did.

The length returned by "tvb_strsize()" includes the terminating null
character.

svn path=/trunk/; revision=13900
2005-03-25 19:52:51 +00:00
Ulf Lamping
a52bb15613 bugfix: similar problem than the previous one fixed by Gerald
svn path=/trunk/; revision=13898
2005-03-25 17:24:48 +00:00
Gerald Combs
c0ce016153 Keep the length value from rolling over in CBCP. Add a comment asking if
there's a better way to do this.

svn path=/trunk/; revision=13897
2005-03-25 17:04:00 +00:00
Guy Harris
36e8efcbca From Hannes Gredler: support for Juniper's DLT_JUNIPER_ATM{1,2} values.
svn path=/trunk/; revision=13130
2005-01-20 05:40:56 +00:00
Guy Harris
685b736c0b From Rene Pilz:
- Fix partly wrong cause values in the gmm (found by Miklos Szurdi)
	- Fix high/low nibble swap of the force to standby field (found by
	  Miklos Szurdi)
	- Dissect all elements

svn path=/trunk/; revision=13030
2005-01-14 11:40:05 +00:00
Guy Harris
21a206c37f In the "PPP in HDLC-Like Framing" items, consider the starting delimiter
part of the packet's data.

If a packet has a starting and ending frame delimiter - i.e., the
delimiter at the end is followed by another delimiter - consider the
ending delimiter part of the first packet's raw data.

svn path=/trunk/; revision=12749
2004-12-14 08:15:13 +00:00
Anders Broman
6ced79161a Don't display the end delimiter as a fragment and change the bytes higligted with "PPP DATA" to exclude
the delimiters(or shold they both be included?)

svn path=/trunk/; revision=12748
2004-12-13 22:19:03 +00:00
Guy Harris
3f0412a729 Add a protocol layer for the raw byte stream for PPP in HDLC-like
framing, and put the raw packet and fragment data at that layer.

Add a common routine to dissect un-escaped PPP data that might have 0xff
0x03, and use it both for the raw PPP in HDLC-like framing and for
processing un-escaped data.

Check for an escape byte not followed by another byte (e.g., because the
packet is too short).

Handle the case where a chunk of that raw byte data doesn't begin with
0x7e, but starts with cruft from a previous PPP packet split across
lower-level packets.

svn path=/trunk/; revision=12741
2004-12-13 10:10:51 +00:00
Guy Harris
b14f3dbba8 Get rid of an unused parameter.
svn path=/trunk/; revision=12736
2004-12-13 01:34:35 +00:00
Anders Broman
d44941ac8d Dissect PPP messages of ethertype 0x8881
svn path=/trunk/; revision=12730
2004-12-12 20:28:18 +00:00
Gerald Combs
ced793054b Add more suboption length checks to dissect_bap_phone_delta_opt().
svn path=/trunk/; revision=12672
2004-12-06 23:12:32 +00:00
Guy Harris
117d9d7ee4 Tag the compression protocol item as such.
The compression option isn't just the compression protocol, it can
include options for the protocol, so name the ett_ variable for its tree
appropriately.

svn path=/trunk/; revision=12572
2004-11-22 02:12:43 +00:00
Guy Harris
0284f4d4f5 From Ignacio Goyret: decode RFC 2509 and RFC 3544 IPCP options.
Fix up the AUTHORS file.

svn path=/trunk/; revision=12514
2004-11-12 10:17:13 +00:00
Guy Harris
212015b7ff The length of the protocol tree item passed to "dissect_ppp_common()"
should be the length of the packet being dissected, so that if we throw
an exception dissecting it, the item covers the entire packet (because
it's incomplete, and thus *all* of it is the beginning of the header).

Instead, we should pass the length of the part of the header prior to
the protocol field as an argument to "dissect_ppp_common()", and it
should use that to set the length of that item.

svn path=/trunk/; revision=12441
2004-10-30 08:45:10 +00:00
Guy Harris
ac98f225a8 Move various checksum routines and headers to epan.
svn path=/trunk/; revision=12117
2004-09-28 00:06:32 +00:00
Guy Harris
bbe7f89742 Move prefs.c and prefs.h into the epan subdirectory.
svn path=/trunk/; revision=12115
2004-09-27 22:55:15 +00:00
Gilbert Ramirez
669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00
Renamed from packet-ppp.c (Browse further)