Commit graph

2765 commits

Author SHA1 Message Date
Anders Broman
5cea18c3e2 Add some more vendors
svn path=/trunk/; revision=14672
2005-06-16 22:06:12 +00:00
Anders Broman
6b95a695cd From Paul Ollis:
epan/dissectors/packet-sigcomp.c
  --------------------------------

    Function dissect_sigcomp:

        1. Make sure the temporary buffer that is used to load byte-code from
           state is zeroed, since the function udvm_state_access implicitly
           relies on this.

        2. Pass the SigComp message header length, state length and partial
           state length to decompress_sigcomp_message.

        3. Removed the state_vars_valid parameter from calls to
           udvm_state_access.

svn path=/trunk/; revision=14667
2005-06-16 21:16:23 +00:00
Anders Broman
681f2bbdef From Paul Ollis:
epan/sigcomp_state_hdlr.c epan/sigcomp_state_hdlr.h
  ---------------------------------------------------

    Function udvm_state_access:

        1. Removed the state_vars_valid parameter. It is no longer used.

        2. The function now correctly updates each of state_length,
           state_address and state_instruction with saved state value.

           [Previously this was only done for state referenced in the SigComp
            message header.]

        3. Removed code that (incorrectly) read byte_copy_left from UDVM memory
           within the loop that writes the state to UDVM memory.

        4. Removed the code that set the useful values in UDVM memory. This
           should only be done for state referenced in the SigComp message
           header. (The decompress_sigcomp_message function, sets the useful
           values.)


  epan/sigcomp-udvm.c epan/sigcomp-udvm.h
  ---------------------------------------

    Function decompress_sigcomp_message:

        1. Added three new parameters; header_len, byte_code_state_len,
           byte_code_id_len.  The byte_code_state_len and byte_code_id_len
           are used to set the useful values in UDVM memory. The
           header_len is required to calculate the cycles available
           for decompression.

        2. Various minor corrections to spellings, etc in generated
           messages.

        3. Reduced the number of lines of output for print_level_1. Now
           the execution trace shows the instruction name and parameter
           values on one line.

           [This was done because, we found that even at the lowest
           level of detail ethereal became unusably slow; running on
           a 500 MHz SPARC. This seems to be related to the number of
           lines produced by the SigComp trace, which can easily be over
           1000 with the modified code.]

        4. Removed the used of some floating point functions. In all
           cases they were unnecessary and could potentially cause the
           code to produce the wrong results on some platforms (although
           this is unlikely).

        5. The useful values are now set correctly, using the new
           byte_code_state_len and byte_code_id_len parameters.

        6. The message header length is now included in the calculation of
           maximum_UDVM_cycles. Previously, the calculation could underestimate
           the value, resulting in the (small) chance that some legitimate
           messages might fail to decompress.

           Note: The calculation might now slightly over-estimate the cycles
           but this is a reasonable thing to do.

        7. Implemented the PUSH, POP, CALL and RETURN instructions.

           Note: The two SORT instructions and the CRC and SHA-1 instructions
           are still not implemented.

        8. The COPY and COPY-LITERAL instructions now apply the
           byte-copying-rules to the source address as well as the destination
           address.

        9. The COPY-LITERAL and COPY-OFFSET now correctly handle the
           destination operand. Previously, it was possible for the destination
           to be left at byte_copy_right when it should be left at
           byte_copy_left.

        10. All three COPY instructions will now behave correctly if the source
            or destination start at byte_copy_right; i.e. they read/write to
            byte_copy_right, byte_copy_right+1, etc. Previously the parameters
            would wrap to byte_copy_left.

        11. The COPY-OFFSET instruction now correctly calculates the source
            address for all values of offset. Previously a very large offset
            (greater than the circular buffer size) could cause the starting
            position to be mis-calculated.

        12. Modulo 65536 arithmetic has been added in some places where it was
            missing.

            [Only when noticed, we have not been able to check all the code.]

        13. Some redundant code was removed for the INPUT-BITS instruction.
            Also, INPUT-BITS (0, x, x) now correctly discards spare bits when
            the P-bit, has changed.

        14. Corrected the cycles used calculation for the INPUT-BITS
            instruction.

        15. Corrected some minor cases where the used_udvm_cycles was not
            incremented.

            [Not really a problem, but it allowed us to verify correctness with
            some of the SigComp torture tests.]

        16. Removed some redundant code in INPUT-HUFFMAN (and reorganised some
            comments to keep them making sense).


    Function decomp_dispatch_get_bits:

        1. This has been rewritten. The original version could not correctly
           handle requests for more than 8 bits. The new version is cleaner and
           correctly handles all cases.

svn path=/trunk/; revision=14666
2005-06-16 21:15:12 +00:00
Gerald Combs
06a47f5880 Fix Win32 compilation, broken by yesterday's checkin.
svn path=/trunk/; revision=14664
2005-06-16 19:51:14 +00:00
Jörg Mayer
488483855f Get rid of several megabytes worth of warnings about
"discards qualifier from assignment".

svn path=/trunk/; revision=14663
2005-06-16 17:23:34 +00:00
Guy Harris
ff8f331006 Remove unused variable.
Clean up indentation.

svn path=/trunk/; revision=14662
2005-06-16 10:06:22 +00:00
Guy Harris
7db2a1221f From Peter Kovar: fix an incorrect assignment that caused a compilation
error with GCC 4.

svn path=/trunk/; revision=14660
2005-06-16 09:58:01 +00:00
Guy Harris
ddbee0ffd0 Clean up white space.
Register "standard" and "lock_info_col" as obsolete preferences, so
they're silently ignored rather than triggering warnings.

Propagate changes to check for "dissect_ber_octet_string()" supplying a
null tvbuff pointer from the checkins to the generated dissector ("Do
not modify this file" means "Do not modify this file"!) to the tcap.cnf
file, so that they're not lost if the dissector is regenerated.  (Don't
propagate the checks for "tvb_new_subset()" returning null - it never
returns null.)

Pass -1 to "tvb_new_subset()" when appropriate.

When looping over packet data, check against the reported length, not
the captured length, so we indicate a short frame if we get stopped by
the snapshot length.

Get rid of unused variables.

svn path=/trunk/; revision=14658
2005-06-16 07:46:03 +00:00
Guy Harris
7c3ce4f5fa Register "version" as an obsolete preference, so it's silently ignored,
rather than provoking a warning.

svn path=/trunk/; revision=14657
2005-06-16 06:50:20 +00:00
Guy Harris
ad99cb236c "dissect_isup_thin()" is a new-style dissector; register it as such.
svn path=/trunk/; revision=14653
2005-06-16 06:32:20 +00:00
Guy Harris
ef37a1f7d2 Squelch some unitialized variable warnings.
svn path=/trunk/; revision=14652
2005-06-16 06:31:25 +00:00
Guy Harris
0583a7ef79 "proto_tree_add_text()" doesn't add a named field, so it takes no "hf_"
argument.

Report a non-integral type used with "dissect_per_integer()" with an
explicit "REPORT_DISSECTOR_BUG()" call, as that's a dissector bug.

svn path=/trunk/; revision=14651
2005-06-16 06:30:33 +00:00
Guy Harris
003a0a5bac Include <ctype.h> to get "isdigit()" defined/declared.
"dissect_msrp()" is a "new-style" dissector; register it as such.

Squelch an uninitialized variable warning.

svn path=/trunk/; revision=14650
2005-06-16 06:28:50 +00:00
Guy Harris
85f9363860 Squelch some compiler warnings.
svn path=/trunk/; revision=14649
2005-06-16 06:27:18 +00:00
Guy Harris
3b3670d2d3 Static variables considered harmful. Make the ISAKMP version a
parameter to many functions inside the ISAKMP dissector, as well as to
the "isakmp_dissect_payloads()" routine it exports.  Get rid of
"isakmp_set_version()", as the version can be passed to
"isakmp_dissect_payloads()" from the KINK dissector.

Put the declaration of "isakmp_dissect_payloads()" into a
"packet-isakmp.h" header, and have "packet-isakmp.c" and "packet-kink.h"
include it rather than declariing "isakmp_dissect_payloads()" itself -
or not doing so at all.

svn path=/trunk/; revision=14648
2005-06-16 06:19:03 +00:00
Guy Harris
562efe2ce9 Regenerate - this squelches some compiler warnings.
svn path=/trunk/; revision=14647
2005-06-16 06:06:18 +00:00
Luis Ontanon
6aead4f02c third and last(?) iteration on the import routines for tektronix 32bit rf5 files.
Now the import is correct even for large files.
I found out when and where the "junk" was inserted.


svn path=/trunk/; revision=14646
2005-06-16 02:27:30 +00:00
Gerald Combs
578f7a4e84 Handle FT_UINTs in dissect_per_integer(). Fixes bug 234.
svn path=/trunk/; revision=14643
2005-06-15 22:56:23 +00:00
Gerald Combs
979d807cf5 Make sure dissect_browser_TYPE_12_data() returns the right value. Catch
integer overflows in that and other functions.  Fixes bug 236.

svn path=/trunk/; revision=14640
2005-06-15 22:08:43 +00:00
Gerald Combs
c2b9534398 Catch an infinite loop in smpp_handle_dlist(). Fixes bug 246.
svn path=/trunk/; revision=14639
2005-06-15 21:42:30 +00:00
Gerald Combs
a2af0184b9 Add missing hf entries. Fixes bug 240.
svn path=/trunk/; revision=14638
2005-06-15 21:33:48 +00:00
Gerald Combs
a9f65e1cf3 In sam_dissect_SAM_SECURITY_DESCRIPTOR_data(), throw an exception if we
fetch a too-long length.  Fixes bug 236.


svn path=/trunk/; revision=14637
2005-06-15 20:55:11 +00:00
Gerald Combs
86fc5a99b2 Fix a couple of infinite loops found by Buildbot. Were the recent
changes to this dissector fuzz tested at all?

svn path=/trunk/; revision=14636
2005-06-15 18:35:13 +00:00
Gerald Combs
65fdf41f63 Fix an infinite loop found by randpkt testing. Change the line endings from
DOS to UNIX.

svn path=/trunk/; revision=14635
2005-06-15 17:56:47 +00:00
Gerald Combs
dce31be366 When we add an FT_STRINGZ item, throw an exception if the length is
less than -1.  If the length is 0, set the item string to "[Empty]".
This fixes bug 219.


svn path=/trunk/; revision=14634
2005-06-15 15:10:02 +00:00
Anders Broman
f5ba6d59ca From Samuel Thibault,
Some updates to the yahoo msg dissector.

svn path=/trunk/; revision=14632
2005-06-14 21:58:54 +00:00
Anders Broman
e430a0b6f0 Add vendor AVP:s for T-Mobile and T-Systems Nova International GmbH.
svn path=/trunk/; revision=14629
2005-06-14 21:46:51 +00:00
Anders Broman
3e85231160 Add Vendor ID of T-Mobile and T-Systems Nova International GmbH.
svn path=/trunk/; revision=14628
2005-06-14 21:45:29 +00:00
Gerald Combs
b94621701c From Steve Grubb:
Fix bounds checking in lemon.c.  Fix up an if/else block in
packet-dcerpc-samr.c.  Fix hex printing in packet-gtp.c.


Fix other problems discovered by Steve:

Fix a bounds check in packet-isis-lsp.c.  Also, fix netmask printing
on non-little-endian machines.  Add a comment about adding a netmask
routine to to_str.c.  Add bounds checks to packet-ncp2222.inc.


All of these apply to bug 217.

svn path=/trunk/; revision=14627
2005-06-14 18:18:05 +00:00
Jörg Mayer
8063b6d0df Always skip the whole header: The current code would only decode
sizeof strcut wlan_header_v1 bytes, but if our struct was missing
some newer elements, things would go wrong.

svn path=/trunk/; revision=14626
2005-06-14 14:33:55 +00:00
Gerald Combs
5489ce999c Change read_prefs() to use GStrings instead of (re)allocating memory
ourselves.  This fixes a potential off-by-one error found by Steve Grubb.

Add two new -G options: defaultprefs and currentprefs.  The first dumps
the default preferences to stdout and the second dumps the user's prefs
to stdout.


svn path=/trunk/; revision=14624
2005-06-13 22:40:11 +00:00
Luis Ontanon
851d6b9a5e use a helper dissector to show k12 files.
svn path=/trunk/; revision=14621
2005-06-13 19:45:21 +00:00
Anders Broman
22a74984da Add some yhoo_service_vals
svn path=/trunk/; revision=14617
2005-06-11 21:31:13 +00:00
Anders Broman
5757748947 From Angelo Bannack,
A CSM_ENCAPS dissector to use with ethereal. 
The CSM_ENCAPS is a protocol used by MindSpeed to communicate with your products, and configure VoIP channels.

svn path=/trunk/; revision=14612
2005-06-11 15:58:01 +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
Ulf Lamping
f1252ed394 add some more details of the RT protocols frame ID's
svn path=/trunk/; revision=14600
2005-06-09 19:52:10 +00:00
Anders Broman
89ddd6077a From Tim Endean:
Check for tvb.

svn path=/trunk/; revision=14592
2005-06-09 04:28:13 +00:00
Anders Broman
d82116f2aa From Olivier Jacques,
- beautify TCAP decoding without upper dissector associated.
With a couple of if (parameter_tvb) trown in to hopfully fix a Buildbot crash output

svn path=/trunk/; revision=14590
2005-06-08 18:52:34 +00:00
Gerald Combs
8b8f7af3b5 Break out of an infinite loop. Fixes bug 232.
svn path=/trunk/; revision=14589
2005-06-08 15:32:00 +00:00
Anders Broman
1ce165a446 From Tim Endean:
Fix ssn range

svn path=/trunk/; revision=14585
2005-06-08 05:04:26 +00:00
Anders Broman
1db20f1782 Fix a typo.
svn path=/trunk/; revision=14584
2005-06-08 05:03:36 +00:00
Luis Ontanon
763afdea30 From: Martin Mathieson
fix cases where %d has been used instead of %u...


svn path=/trunk/; revision=14583
2005-06-07 23:25:46 +00:00
Luis Ontanon
31f25f6a2e make sure that colifo gets set and put some other useful info there
svn path=/trunk/; revision=14582
2005-06-07 23:22:37 +00:00
Anders Broman
88bdcd02c3 Add some ethertypes
svn path=/trunk/; revision=14581
2005-06-07 20:57:27 +00:00
Anders Broman
b3934176cb Some fixes from Tim Endean
svn path=/trunk/; revision=14578
2005-06-07 20:29:23 +00:00
Anders Broman
86a56ba7cc From Tim Endean:
- I have had to make some changes to packet-ber to allow for PRIVATE and APPLICATION tags.
- Both ANSI and ITU variants supported without configuration.
- Asn.1 dissectors can now register using an OID value as well as an SSN, the oid it tried first.


svn path=/trunk/; revision=14572
2005-06-07 05:49:06 +00:00
Luis Ontanon
fa91e9559d register the dissector so that it can be found
svn path=/trunk/; revision=14569
2005-06-06 18:53:43 +00:00
Luis Ontanon
1415bb4d54 - add an hf entry I forgot
- get the STAT/USTAT PDU list straight 


svn path=/trunk/; revision=14568
2005-06-06 18:52:54 +00:00
Luis Ontanon
acdc3d771a - make sure there's something to add to colinfo.
- auditValueRequest is a request too

svn path=/trunk/; revision=14567
2005-06-06 18:51:05 +00:00
Luis Ontanon
ecdf0eff2e the trailer's offset and len were not ok.
svn path=/trunk/; revision=14566
2005-06-06 18:45:47 +00:00
Anders Broman
28b803303d Dissector for ISUP over TCP.
svn path=/trunk/; revision=14565
2005-06-06 18:01:58 +00:00
Anders Broman
44ef4de0d5 Fix a typo and add an ifdef
svn path=/trunk/; revision=14562
2005-06-06 17:07:04 +00:00
Anders Broman
ae1add1c13 From Mike Duigou:
a patch which adds support for displaying jxta 
conversations and endpoints from the 'Statistics' menu. Also adds :

  - a generated field to Welcome messages to indicate whether this 
welcome is from the initiator or the receiver. You can filter on this 
field with 'jxta.welcome.initiator==[0|1]'

  - Marks the source and destination fields of message added in the last 
patch as generated fields. (Saw it being done for some other protocol).

  - Cleans up dissection of Message which used to assume it would 
dissected more than one set of hdr/message per tvbuff. Now it only 
attempts to dissect one.

- Uses GMemChunk for tap info and for conversation data rather than 
g_malloc() There's still a major leakage of g_malloc()ed the c-strings 
which are used in jxta addresses. Any suggestions for how these can be 
allocated such that they can be freed re-init is called would be 
appreciated. For address objects whose data ptr doesn't point into a 
tvbuff it's not clear what the lifecyle of an address object is.

  - Fixes a bug with filling in the of the transport layer conversation 
data. >= vs. >


svn path=/trunk/; revision=14558
2005-06-06 15:20:10 +00:00
Anders Broman
45fb18a2d6 From Mike Duigou:
a patch to to_str.c which adds support for printing 
AT_STRINGZ address type. Amazing that this wasn't there!

svn path=/trunk/; revision=14557
2005-06-06 15:17:41 +00:00
Anders Broman
0d7fce8c7d From Richard Rabbat:
a patch for a couple of fixes to rsvp sub-objects.

svn path=/trunk/; revision=14555
2005-06-06 13:55:47 +00:00
Ulf Lamping
960f3e60b4 if some PER errors has to be put to the stderr, give at least info where it's coming from (__FILE__ and __LINE__)
BTW: time for something like a "NotImplementedException"?!?, this seems to be a common mechanism, if a dissector hasn't implemented all protocol elemements (yet)

svn path=/trunk/; revision=14554
2005-06-04 22:05:50 +00:00
Ulf Lamping
41b7272c0e fix #225-#231: the enum lmp_filter_keys contained holes, so the logic to detect the field type failed, resulting in the bug
svn path=/trunk/; revision=14552
2005-06-04 21:39:36 +00:00
Luis Ontanon
a547ad95eb Give the user the ability to decide how to decode USER DLTs
svn path=/trunk/; revision=14551
2005-06-04 19:22:39 +00:00
Ulf Lamping
b59c893573 fix #201 second part: adapt the string length of the unformatted text, so it won't show \000 and beyond
svn path=/trunk/; revision=14550
2005-06-04 11:47:38 +00:00
Luis Ontanon
9b1c4525df fix the PDU list, and put it at the bottom
svn path=/trunk/; revision=14544
2005-06-03 14:02:06 +00:00
Luis Ontanon
8a975571a3 keywords and eol-style
svn path=/trunk/; revision=14543
2005-06-03 13:54:34 +00:00
Luis Ontanon
6cb47c1a7a - add a way to call the sscop dissector with an arbitrary handle\
- make most fields "filterable"
- dissect stat and ustat pdu lists


svn path=/trunk/; revision=14542
2005-06-03 13:50:30 +00:00
Anders Broman
98de72d588 Register the ISUP dissector to make it callable through
call_dissector()

svn path=/trunk/; revision=14541
2005-06-03 09:56:03 +00:00
Anders Broman
f01b2b6197 From Mike Duigou:
A few doxygen updates and an improved section on 
writing dissectors that don't use tcp_dissect_pdus().

svn path=/trunk/; revision=14537
2005-06-03 06:35:44 +00:00
Anders Broman
52e6e313ed From Mike Duigou:
A few doxygen updates and an improved section on 
writing dissectors that don't use tcp_dissect_pdus().

svn path=/trunk/; revision=14536
2005-06-03 06:34:35 +00:00
Anders Broman
bd44e72c95 From Mike Duigou:
A minor change to the prototype of tcp_dissect_pdus() 
which uses the function pointer type from packet.h

svn path=/trunk/; revision=14535
2005-06-03 06:31:58 +00:00
Anders Broman
5df33850a9 From Mike Duigou:
Extends the jxta dissector to add higher level conversation 
tracking, improved display, tapping and fixes a bug which caused some 
conversations to get lost.

svn path=/trunk/; revision=14534
2005-06-03 06:29:25 +00:00
Ashok Narayanan
7c75e42fee Updated LMP to handle the latest protocol. Removed old protocol values
since they are no longer useful.

Manu Pathak <mapathak@cisco.com> contributed these changes


svn path=/trunk/; revision=14533
2005-06-02 22:49:59 +00:00
Ulf Lamping
b88fc96be7 fix call to show_fragment_seq_tree() reported by buildbot
svn path=/trunk/; revision=14532
2005-06-02 22:11:22 +00:00
Ulf Lamping
56a9fe6d2a add a generated toplevel line between the connectionless DCE/RPC protocol and the defragmented DCE/RPC content, to better understand what's going on if defragmentation is done.
svn path=/trunk/; revision=14531
2005-06-02 20:55:58 +00:00
Ulf Lamping
b575d97309 use [] not () brackets to indicate [correct] UDP checksum, as this is a generated field
svn path=/trunk/; revision=14530
2005-06-02 20:52:13 +00:00
Ulf Lamping
a699e351d1 add length information to "Content-encoded entity body"
svn path=/trunk/; revision=14529
2005-06-02 20:03:15 +00:00
Ulf Lamping
d3f821035b fix #223: add another tvb_ensure_bytes_exist() call
svn path=/trunk/; revision=14528
2005-06-02 19:31:16 +00:00
Ulf Lamping
e2c3b60280 add a generated toplevel line between the TCP protocol and the desegmented content, to better understand what's going on while desegmenting.
We'll have to add similar mechanisms for other protocols as well...

svn path=/trunk/; revision=14527
2005-06-02 18:52:55 +00:00
Ulf Lamping
5c4f877031 bugfix (fuzz_tested): t2i can be zero, test at all places before using it
svn path=/trunk/; revision=14526
2005-06-02 18:44:17 +00:00
Ulf Lamping
3c4401b95d bugfix (fuzz_tested): add tvb_ensure_bytes_exist() before adding a fragment at two places, otherwise we get an access violation
svn path=/trunk/; revision=14525
2005-06-02 18:39:45 +00:00
Ulf Lamping
9784fa242a add new function proto_tree_move_item(), which will move an already existing proto_item inside the tree (but it can't be moved to a different "tree level")
svn path=/trunk/; revision=14524
2005-06-02 18:35:20 +00:00
Ulf Lamping
4984c5e949 show Ethernet and IPX addresses the same way as we do with other fields as well (e.g. IP addresses), first the converted value (e.g. IP address or manufaturer name) and then in brackets the "raw data"
svn path=/trunk/; revision=14523
2005-06-02 18:29:29 +00:00
Ulf Lamping
e3e7b4d229 bugfix: don't use match_strval() in combination with format strings (as it may return NULL) but val_to_str()
I don't know if the output as hex is appropriate, someone with more WBXML knowledge might have a look (however, it's done for unknown values only)

svn path=/trunk/; revision=14522
2005-06-02 07:29:24 +00:00
Ulf Lamping
e419fe42a9 add the resolved Ethernet addresses to the "Ethernet II" summary line
svn path=/trunk/; revision=14520
2005-06-02 00:28:38 +00:00
Ulf Lamping
e1a366b5fc add a reference to the corresponding RFC's of the Differentiated Services field pref setting
svn path=/trunk/; revision=14519
2005-06-01 23:47:55 +00:00
Ulf Lamping
7b376820af add some hidden fields to be able to filter on the resolved hostname "ip.host" / "ip.src_host" / "ip.dst_host", this was formerly not possible.
replace some deprecated proto_tree_add_..._hidden() calls by seperate calls by proto_tree_add_...() and PROTO_ITEM_SET_HIDDEN()

some other cosmetic changes

svn path=/trunk/; revision=14518
2005-06-01 23:44:24 +00:00
Ulf Lamping
76778cc78b mark some fields as generated and clarify some field descriptions
svn path=/trunk/; revision=14517
2005-06-01 21:28:40 +00:00
Ulf Lamping
46ff66522f prevent "Dissector Bug": prevent a string processing of length 0
svn path=/trunk/; revision=14516
2005-06-01 19:19:40 +00:00
Ulf Lamping
bb4e980df1 bugfix: use g_snprintf instead of sprintf to prevent a buffer overflow
svn path=/trunk/; revision=14515
2005-06-01 19:17:59 +00:00
Ulf Lamping
bc200f879c better dissect ProtSeqs values
svn path=/trunk/; revision=14508
2005-05-31 18:31:27 +00:00
Ulf Lamping
06c1482f6c bugfix: remove some not required dissect_dcom_that() calls, as "ORPC that" was errorneously dissected twice
svn path=/trunk/; revision=14507
2005-05-31 18:30:37 +00:00
Gilbert Ramirez
46788b3336 Remove bitmasks from field definitions for FT_IPv4
and FT_IPv6 fields.

svn path=/trunk/; revision=14504
2005-05-31 14:03:34 +00:00
Ulf Lamping
e821e8a1f2 fix handling, if ArraySize of a BSTR is 0,
replace a g_assert by DISSECTOR_ASSERT

svn path=/trunk/; revision=14503
2005-05-31 08:02:24 +00:00
Ulf Lamping
772af896b9 add a tvb_ensure_bytes_exist() to prevent a dissector bug
svn path=/trunk/; revision=14502
2005-05-30 22:40:55 +00:00
Ulf Lamping
e8c5cd2342 don't go into an (almost) endless loop, if si->info_count is -1, which is the default value. Seems to be a general bug worth to thought about, but I don't know the SMB internals and this bugfix should work anyway.
Found this by a privately fuzzed capture file (sorry, can't give it away)

svn path=/trunk/; revision=14501
2005-05-30 21:10:21 +00:00
Gerald Combs
fe89e3d640 Don't try to check the suboption length type if we don't have a suboption.
Found by Steve Grubb.  Fixes part of bug 217.

svn path=/trunk/; revision=14499
2005-05-30 21:04:58 +00:00
Gerald Combs
bcd1c5b9fa From Steve Grubb: Fix buffer and array length checks. Fixes part of bug 217.
svn path=/trunk/; revision=14498
2005-05-30 21:01:52 +00:00
Gerald Combs
923446f1f5 From Steve Grubb: Initialize some variables. Fixes part of bug 217.
svn path=/trunk/; revision=14497
2005-05-30 21:00:05 +00:00
Gerald Combs
861dc4e340 More bug fixes from Steve Grubb. See bug 217 for details.
svn path=/trunk/; revision=14496
2005-05-30 20:58:20 +00:00
Gerald Combs
12b7466381 From Steve Grubb: Fix a memory leak.
Don't pass a null to atoi().

Fixes part of bug 217.

svn path=/trunk/; revision=14495
2005-05-30 20:55:16 +00:00
Gerald Combs
1d3ba8764b From Steve Grubb: Fix off by one errors. Fixes part of bug 217.
svn path=/trunk/; revision=14494
2005-05-30 20:53:08 +00:00
Gerald Combs
651ee9a2fe From Steve Grubb: Initialize a variable. Fixes part of bug 217.
svn path=/trunk/; revision=14493
2005-05-30 20:51:36 +00:00
Gerald Combs
cebf5bc459 Fix an off-by-one error found by Steve Grubb. Steve gets the award
for longest standing bug found so far.  This has been present since
version 0.5.0.

Fixes part of bug 217.

svn path=/trunk/; revision=14492
2005-05-30 20:48:12 +00:00
Anders Broman
05376bd969 Add dissection of MSRP
http://www.ietf.org/internet-drafts/draft-ietf-simple-message-sessions-10.txt

svn path=/trunk/; revision=14491
2005-05-30 18:39:39 +00:00
Ulf Lamping
cb51c2662a fix highlighting length, if more than one RPC call is in a TCP PDU
set "n*DCERPC" in the proto column if more than one RPC call in a TCP PDU, overwriting the interface name, as there's probably more than one interface involved

add some more RPC info to the toplevel RPC proto_item

add a comment, if some bytes are not dissected but might be in the next TCP PDU

svn path=/trunk/; revision=14490
2005-05-30 18:37:19 +00:00
Ronnie Sahlberg
2edd8a7a00 add MMC READ DISC INFORMATION cdb
svn path=/trunk/; revision=14486
2005-05-30 12:09:39 +00:00
Ronnie Sahlberg
3b4e688073 add MMC READ TRACK INFORMATION cdb
svn path=/trunk/; revision=14485
2005-05-30 11:16:08 +00:00
Ulf Lamping
feb55854c7 fix #215: the field hf_smb_print_spool_file_name used the wrong type, use FT_STRINGZ to add a string
svn path=/trunk/; revision=14482
2005-05-30 03:10:37 +00:00
Ulf Lamping
f3037e2f53 add two more tvb_ensure_bytes_exist() calls to fix #216
When I look at the remaining code, I fear this will become a never ending story :-(

svn path=/trunk/; revision=14481
2005-05-30 02:58:13 +00:00
Ulf Lamping
c173da9fec fix #201: add format_text before output of the DNS name, in case it contains invalid chars
svn path=/trunk/; revision=14479
2005-05-29 13:02:57 +00:00
Ulf Lamping
2b30b539ee fix #86: use format_text before adding version string to the info column
svn path=/trunk/; revision=14478
2005-05-29 12:27:31 +00:00
Ulf Lamping
7c07e00f1d fix #11: add a [truncated] to the label, if the message to display is too long
svn path=/trunk/; revision=14477
2005-05-29 11:23:42 +00:00
Ronnie Sahlberg
acaf8730be add MMC RESERVE TRACK cdb
svn path=/trunk/; revision=14476
2005-05-29 08:45:09 +00:00
Ronnie Sahlberg
bbf29dd862 MMC SET STREAMING command
svn path=/trunk/; revision=14475
2005-05-29 08:29:55 +00:00
Jörg Mayer
0fc3001d6a Add minimal 802.11j decoding. There's not fun in doing more unless
someone provides a capture file.


svn path=/trunk/; revision=14474
2005-05-29 08:19:11 +00:00
Ronnie Sahlberg
aa7157462c remove offset and len from the signature of dissect_scsi_payload()
svn path=/trunk/; revision=14473
2005-05-29 03:18:53 +00:00
Ronnie Sahlberg
e66ff913ff make all callers of dissect_scsi_cdb() first create a new subset tvb
change the signature for dissect_scsi_cdb since we no longer need to pass offset over.



svn path=/trunk/; revision=14472
2005-05-29 02:55:12 +00:00
Ronnie Sahlberg
fc9688991f create a subset tvb before calling off to the SCSI dissector
so that the right part of the hexpane is highlighted when one clicks on an nondissected data line

svn path=/trunk/; revision=14471
2005-05-29 02:30:49 +00:00
Ronnie Sahlberg
6eb6d5f9af minor prettification
in the decode pane for the SCSI protocol,
put the name of the CDB on the protocol line


svn path=/trunk/; revision=14470
2005-05-29 01:54:22 +00:00
Ronnie Sahlberg
ae9968883e update iscsi so that when we have ImmediateData we also call SCSI to decode the
payload (DATAOUT)  and not just the scsi CDB.



svn path=/trunk/; revision=14469
2005-05-29 01:49:09 +00:00
Ronnie Sahlberg
3007142732 add MMC READ BUFFER CAPACITY command
svn path=/trunk/; revision=14467
2005-05-28 13:29:45 +00:00
Ronnie Sahlberg
5d7e4750d2 add the SynchronizeCache command for MMC
svn path=/trunk/; revision=14466
2005-05-28 13:01:14 +00:00
Ulf Lamping
f8b3fe7668 add some tvb_ensure_bytes_exist() calls, fixes #197, #202 and #208
svn path=/trunk/; revision=14465
2005-05-28 12:49:19 +00:00
Ronnie Sahlberg
fb65ef09eb updates to mmc, add more dissection of GET_CONFIGURATION and READ_TOC
svn path=/trunk/; revision=14464
2005-05-28 12:45:38 +00:00
Ronnie Sahlberg
5c1e7a37de some more MMC4 updates
svn path=/trunk/; revision=14462
2005-05-28 08:27:44 +00:00
Ronnie Sahlberg
3df89a9d25 more scsi refactoring
starting to implement MMC codeset : CDROM/DVD



svn path=/trunk/; revision=14461
2005-05-28 05:42:39 +00:00
Ronnie Sahlberg
fd6d7dd38e refactor scsi dissector toi be table driven so it will be easier to add new
commandsets.



svn path=/trunk/; revision=14460
2005-05-28 03:37:16 +00:00
Olivier Biot
97babfb98d From Gilbert Ramirez - Fix a FT_NONE with a bitmask (shouldn't have one).
svn path=/trunk/; revision=14459
2005-05-28 00:51:56 +00:00
Ronnie Sahlberg
0890269d05 from Gilbert,
make kink compile again on non-kerberos builds.

encapsulate a call to decrypt kerberos to only be compiled in when compiling with kerberos.


svn path=/trunk/; revision=14458
2005-05-27 21:39:38 +00:00
Ronnie Sahlberg
6879e6da67 from didier fix for the regression for bug 62
svn path=/trunk/; revision=14457
2005-05-27 21:33:27 +00:00
Anders Broman
d328993c0d From Martin Mathieson
packet-rdt.c:
- register a configurable UDP port (off by default, but needed where setup traffic isn't captured)
- dissect extra 'buffer info' fields
- move bit fields into 'flags' subtrees
- misc. minor fixes and improvements (mainly formatting)
Missed eralier...

svn path=/trunk/; revision=14456
2005-05-27 18:35:19 +00:00
Luis Ontanon
4cd25ccc5e don't use a static buffer for preference values, allocate it, and, if necessary reallocate so that
the string always fits.


svn path=/trunk/; revision=14455
2005-05-27 18:33:09 +00:00
Gilbert Ramirez
c2454f0260 Add a "-G fields3" report which prints the bitmask of the field, and avoids
printing the blurb twice, like fields2 does.
Add a script, fsanity.py, to check sanity of FT definitions. Right now the
only check is for bitmasks for integer-like fields.

svn path=/trunk/; revision=14454
2005-05-27 15:13:09 +00:00
Ronnie Sahlberg
94d8512749 From T.Nakashima
updates to KINK


svn path=/trunk/; revision=14453
2005-05-27 08:53:07 +00:00
Ronnie Sahlberg
864245ef6e cket wsp is creating string items and later appending to them and their value at runtime which breaks when the TRY_TO_FAKE_THIS_ITEM() is used.
Add a comment to proto_item_append_string() explaining the "danger" and what needs to be done if one decides to use proto_item_append_string()

Add a small change to WSP so that it will disable this speed optimization so not to trigger a DISSECTOR_BUG in proto_item_append_string()




svn path=/trunk/; revision=14452
2005-05-27 06:00:08 +00:00
Guy Harris
cb3bc515e2 The DESIRE_ and OS_ values are bit indices, not numerical values that
appear by themselves; get rid of the value_string tables for them.

svn path=/trunk/; revision=14450
2005-05-27 02:30:10 +00:00
Anders Broman
7f936ea1c4 These 2 patches make RDT support pretty complete now:
From Martin Mathieson:

packet-rdt.c:
- register a configurable UDP port (off by default, but needed where setup traffic isn't captured)
- dissect extra 'buffer info' fields
- move bit fields into 'flags' subtrees
- misc. minor fixes and improvements (mainly formatting)

packet-rtsp.c:
- improve detection of RDT as the transport
- allow interleaved frame data to be dissected as RDT packets

svn path=/trunk/; revision=14443
2005-05-26 20:11:35 +00:00
Gerald Combs
4a5deae575 In some places we call proto_tree_add_item() with hfindex and length
values that may not be valid (e.g. dissect_ber_octet_string()
in packet-ber.c).  If the length is invalid, get_uint_value() or
get_int_value() will abort.  Change them to throw an exception instead.
This keeps us from having to do a lot of extra work in the dissector.

Fixes bug 182.


svn path=/trunk/; revision=14437
2005-05-26 14:53:39 +00:00
Guy Harris
4a1414164f Add some more reassembly routines.
svn path=/trunk/; revision=14430
2005-05-25 08:25:14 +00:00
Ulf Lamping
d35789c6c7 fix IRemUnknown2 UUID
svn path=/trunk/; revision=14429
2005-05-24 20:01:08 +00:00
Ulf Lamping
5fd2ecb1d5 add values for STDOBJREF flags
svn path=/trunk/; revision=14428
2005-05-24 20:00:14 +00:00
Ulf Lamping
c911c15371 dissect ORPC this/that of RemoteCreateInstance
svn path=/trunk/; revision=14427
2005-05-24 19:59:20 +00:00
Ulf Lamping
5812f26b65 dissect ServerAlive response
svn path=/trunk/; revision=14426
2005-05-24 19:57:37 +00:00
Gerald Combs
1c650087ac Add extra TLV length checks and signedness fixes. Fixes the infinite loop in
bug 196.

svn path=/trunk/; revision=14425
2005-05-24 16:46:18 +00:00
Gerald Combs
1a5605dc21 Throw an exception instead of calling g_assert_not_reached(). Fixes bug 175.
svn path=/trunk/; revision=14424
2005-05-24 13:50:20 +00:00
Jörg Mayer
19e90d9a5c Warning fix:
packet-bacapp.c:1264: warning: ISO C does not allow extra ';' outside of
a function


svn path=/trunk/; revision=14420
2005-05-23 12:32:37 +00:00
Jörg Mayer
4a6049d3b1 Warning fix:
packet-camel.h:49: warning: 'dissect_camel_DestinationAddress' declared 'static' but never defined


svn path=/trunk/; revision=14419
2005-05-23 12:19:00 +00:00
Jörg Mayer
83f9a803ac Warning fix:
packet-bacapp.c:1266:1: warning: C++ style comments are not allowed in ISO C90
packet-bacapp.c:1266:1: warning: (this will be reported only once per input file)


svn path=/trunk/; revision=14418
2005-05-23 12:18:10 +00:00
Anders Broman
33aa290b25 From Steve Karg:
* added additional value string enumerations from BACnet-2004
* removed vendor specific value string enumerations
* corrected some value strings enumerations that were incorrect
* refactored some common strings as strings + format
* refactored some value strings to use a reserved range and a 
proprietary range by using val_to_split_str function which now correctly 
shows the split range when a value is not matched.
* corrected some spelling errors
* converted some item text values to dissector registration
* added protocol tree for the BACnet tag headers
* added value strings tree display for some bit string BACnet properties
* added value strings tree display for some enumerated BACnet properties
* changed the conversion of signed, unsigned, and enumerated BACnet 
values to use ntohx functions.
* added proper handling for large values of signed, unsigned, and 
enumerated BACnet values.
* refactored BACnet Null and Boolean Tag tree
* refactored BACnet Real and Double Tag tree
* changed comments into functions for special tags
* changed some white space to match existing file style
* refactored tvb_reported_length to tvb_length_remaining to simplify
* corrected octet-string tree when length is zero
* refactored octet-string tree to use tvb_bytes_to_str
* corrected application tagged productions that were context tagged
* corrected context tagged productions that were application tagged
* corrected offset for BACnet character strings
* refactored some identical service request tree handling
* changed confirmed APDU to highlight the correct portion of the APDU
* changed some dissector registration values to display as decimal
* changed cast in call to iconv() to fix compiler warning
* corrected bit-wise AND in AtomicFile tree handling

packet-bvlc.c
* added error text in tree when encoded length doesn't match actual length

svn path=/trunk/; revision=14417
2005-05-23 05:52:28 +00:00
Anders Broman
c40a7d2ad9 From Javier Acuna:
filter packets by their Billing ID

svn path=/trunk/; revision=14409
2005-05-21 09:13:28 +00:00
Ulf Lamping
d2233711d9 add get_manuf_name_if_known (returns NULL if unknown) in addition to get_manuf_name
svn path=/trunk/; revision=14405
2005-05-20 21:44:17 +00:00
Luis Ontanon
98d824e05b dup the filter string so that it can be freed without problems.
fixes bug 195


svn path=/trunk/; revision=14402
2005-05-20 19:40:10 +00:00
Luis Ontanon
bc1292ff1d some cosmetic fixes
svn path=/trunk/; revision=14401
2005-05-20 19:38:24 +00:00
Anders Broman
416c350db1 Use value_string for codec values/strings.
svn path=/trunk/; revision=14400
2005-05-19 20:35:30 +00:00
Anders Broman
b8cd3ff407 Display version number and product number as strings.
svn path=/trunk/; revision=14399
2005-05-19 20:34:35 +00:00
Anders Broman
59516e5f4f Add Sony and Nokia VendorID:s
svn path=/trunk/; revision=14398
2005-05-19 20:33:59 +00:00
Guy Harris
d444801e4a Clean up indentation.
Add some comments with questions.

Mark an unused argument as such, and get rid of an unused variable.

svn path=/trunk/; revision=14396
2005-05-19 09:26:15 +00:00
Luis Ontanon
3f36640526 - add an isup stats_tree with statistics regarding message types and the directions in which they flow.
svn path=/trunk/; revision=14393
2005-05-18 13:51:49 +00:00
Anders Broman
443d4bf1c1 Add a dissector for h221 nonstandard data which can easily be expanded with publically avalable data or
replaced by a propriatary one.

svn path=/trunk/; revision=14392
2005-05-18 05:44:12 +00:00
Anders Broman
399e571547 Make it possible to dissect h221nonstandard data and fix some compile warnings from asn2eth.
svn path=/trunk/; revision=14388
2005-05-17 20:32:30 +00:00
Anders Broman
dadf75a031 From Mark C Brown,:
Fixes for LAP-B (SX25L2) and X.25 (SX25L3) nettl trace records.

svn path=/trunk/; revision=14386
2005-05-17 19:51:09 +00:00
Anders Broman
4968c6f086 From Yuriy Sidelnikov:
A perfectly good tvb_bytes_to_str() has been used instead of string_to_hex. 

svn path=/trunk/; revision=14384
2005-05-17 19:21:45 +00:00
Anders Broman
090464f76e Add some more AVP:s.
svn path=/trunk/; revision=14383
2005-05-17 19:15:31 +00:00
Anders Broman
dc82444047 Add TCP port for "radan-http 8088/tcp Radan HTTP" from IANA.
svn path=/trunk/; revision=14378
2005-05-16 18:24:27 +00:00
Anders Broman
cd773d0e99 Add some more media types.
svn path=/trunk/; revision=14377
2005-05-16 18:15:33 +00:00
Anders Broman
a14646212b From Martin Mathieson:
new version of the RDT dissector.  It turns out that
specs are available for this protocol on www.helixcommunity.org  - this
version was written by myself and Tom Marshall of RealNetworks, Inc.

I Changed stream_id and asm_rule_number to be guint16 to fix compiler warnings.

svn path=/trunk/; revision=14372
2005-05-16 06:16:45 +00:00
Anders Broman
7263d93115 From Tim Endean:
Ss-code is Optional in some cases.

svn path=/trunk/; revision=14371
2005-05-15 21:17:29 +00:00
Ronnie Sahlberg
cb2fc4e58b from martin m
prettify dcerpc


svn path=/trunk/; revision=14369
2005-05-14 22:05:56 +00:00
Gerald Combs
f404b15be5 When we catch an exception, make sure we don't throw the same exception again
(and catch it again in the process).  Fixes bug 170.

svn path=/trunk/; revision=14368
2005-05-14 21:13:07 +00:00
Ronnie Sahlberg
4c29a93f64 from dinesh
fix to make Zone_Alias objects decode properly


svn path=/trunk/; revision=14367
2005-05-14 21:08:20 +00:00
Ronnie Sahlberg
c07f0f0a45 From Guillaume Chazarain
New protocol : ARMAGETRONAD    dissector for the protcol used by the game of the same name


svn path=/trunk/; revision=14366
2005-05-14 21:00:43 +00:00
Gerald Combs
7effa95f95 Throw an exception if AndXOffset is less than the current offset. Fixes bug
163.  I'm not sure if this fix is entirely correct, but it doesn't appear to
have affected any SMB captures here adversely.

svn path=/trunk/; revision=14365
2005-05-14 19:13:02 +00:00
Ronnie Sahlberg
432a015797 add decoding of teh REMOVABLE bit in inquiry data
svn path=/trunk/; revision=14364
2005-05-14 17:41:07 +00:00
Ronnie Sahlberg
ceb1c26871 add a missing field to the REPORT LUNS datain pdu
svn path=/trunk/; revision=14363
2005-05-14 17:12:45 +00:00
Luis Ontanon
1eeda6e946 - make sure contextId and transactionId are added to the tree as filterable fields even if they are larger than 4 octets
- set COL_INFO to something useful


svn path=/trunk/; revision=14361
2005-05-13 11:16:05 +00:00
Guy Harris
38c139dce3 Squelch a compiler warning (GCC 4.0's data flow analysis is
interprocedural, so it knows "sip_parse_line()" doesn't always set
"*token_1_len", but it doesn't know that if it doesn't return OTHER_LINE
it *does* always set it, so it's safe not to set it as long as it's
never used if the return value is OTHER_LINE).

svn path=/trunk/; revision=14355
2005-05-12 02:55:59 +00:00
Guy Harris
bd29cb1267 Fix a routine to return the value it's supposed to return.
svn path=/trunk/; revision=14354
2005-05-12 02:51:59 +00:00
Guy Harris
3a8d46d8e9 Always set "*success" in "ipxnet_addr_lookup()" before returning (thanks
and a tip of the hat to GCC 4.0's interprocedural data flow analysis for
catching this one!).

svn path=/trunk/; revision=14353
2005-05-12 02:50:27 +00:00
Anders Broman
92b1092937 Reinsert Gerards patch (r14342) which was lost.
svn path=/trunk/; revision=14352
2005-05-11 22:20:11 +00:00
Anders Broman
eac5e05d3a pinfo->p2p_dir not set in the new gsm_map dissector causing problems with dissection of SMS messages.
svn path=/trunk/; revision=14350
2005-05-11 22:00:50 +00:00
Anders Broman
0232c81b91 From Viorel Suman:
Enable a proper deconding of an alphanumeric 7-bit encoded SMS TP-Originating-Address.

svn path=/trunk/; revision=14349
2005-05-11 21:59:44 +00:00
Ronnie Sahlberg
4e3c7cc716 From Hannes Gredler
support for Juniper PPPOE encapsulation


svn path=/trunk/; revision=14346
2005-05-11 11:24:17 +00:00
Ronnie Sahlberg
fcab322ada Some applications do very naughty things like reusing a port for a different protocol during different stages of an application cycle.
This is very naughty and will cause problems when we have assigned a dissector to a dynamic port using conversation_set_dissector().


To make ethereal handle this case I have changed the try_conversation_dissector() to allow it to fail and return 0,   meaning   yes there is indeed a protocol registered for this conversation but that protocol rejected this packet.
(which only happens for "new" style dissectors, "old" style dissectors will never reject a packet that way)

When this happens  the decode_udp_port() helper will still allow other dissectors to be tried, in the hope that the conversation is now used for some other protocol and thus someone else might be able to decode the packet.


Update SNMP and TFTP dissectors to  check that even if there already is a conversation but that conversation does NOT have snmp/tftp registered as the dissector for it, then create a new conversation anyway and attach the proper dissector.

Since ethereal keeps track of which frame number a conversation started in, this actually works really well.



svn path=/trunk/; revision=14345
2005-05-11 10:40:53 +00:00
Luis Ontanon
5535853bf2 - export Audio Codec modes from isup/bicc
- detailed dissection of GSM/UMTS speech code list ETSI 126 103 (3gpp 26.103 v3.0.0)
- use it for H.248


svn path=/trunk/; revision=14343
2005-05-10 21:54:37 +00:00
Anders Broman
88c39bc93b Fix dissection of mo-forwardSM
svn path=/trunk/; revision=14342
2005-05-10 20:09:09 +00:00
Ronnie Sahlberg
39e517a9b3 make SNMP over UDP a new style dissector and add some heuristics to check if this is SNMP or not,
svn path=/trunk/; revision=14339
2005-05-10 08:49:27 +00:00
Gerald Combs
c64e5e59f6 Make a field type check more strict. Remove some unnecessary code.
svn path=/trunk/; revision=14338
2005-05-10 03:10:09 +00:00
Gerald Combs
cd321f5958 Make sure we don't feed a null string to strncmp(). Fixes bug 161.
Make sure we don't free static memory.  Fix a small memory leak.

svn path=/trunk/; revision=14337
2005-05-10 03:08:36 +00:00
Jörg Mayer
78d0e8b33d I just found a packet with an option e. As the value looked very much
like the mac-address of the switch, I added decoding of option e as
mac address.


svn path=/trunk/; revision=14336
2005-05-09 11:21:16 +00:00
Lars Roland
9a47db0c3d Add another sanity check to the new SIP URI parser.
Just to be sure.

svn path=/trunk/; revision=14335
2005-05-09 01:21:41 +00:00
Lars Roland
74328742ed Some fixes for the new SIP contact header parser.
svn path=/trunk/; revision=14334
2005-05-09 01:15:45 +00:00
Lars Roland
20901fcedf only lower-case ASCII letters, numbers,
underscores, and dots are allowed in the
preference name. 

Fix it the camel dissector.

svn path=/trunk/; revision=14333
2005-05-09 00:11:03 +00:00
Lars Roland
5f092fe201 Mark a function parameter as unused
svn path=/trunk/; revision=14332
2005-05-08 23:29:55 +00:00
Lars Roland
01f10ccd00 When saying that I remove the trailing white spaces I should do it, too.
So I do it now and do some more reindentation, too.

svn path=/trunk/; revision=14331
2005-05-08 22:39:38 +00:00
Lars Roland
e5134e2f2d Improve dissection of SIP contact header and counting of bindings in REGISTER messages.
Introduce a function for disseting a sip uri in general

TODO: 
- add dissection of contact and uri parameters
- simplify the ugly code for dissecting "to" and "from" headers
      by using the new function for uri dissection

svn path=/trunk/; revision=14330
2005-05-08 22:19:18 +00:00
Lars Roland
429d72c457 Reindent dissect_sip_common() and remove trailing white spaces from packet-sip.c.
svn path=/trunk/; revision=14329
2005-05-08 21:17:37 +00:00
Anders Broman
fd075dadf0 From Javier Acuna:
Added some code to dissect DateAndTime.

svn path=/trunk/; revision=14328
2005-05-08 20:35:44 +00:00
Lars Roland
52d26f6eb8 Increase size of an integer to prevent an integer overflow
Fixes Bug 162

svn path=/trunk/; revision=14325
2005-05-07 00:14:11 +00:00
Ronnie Sahlberg
a456014e29 prettify YPSERV
svn path=/trunk/; revision=14324
2005-05-06 10:11:08 +00:00
Gilbert Ramirez
61e5a33ea2 A fix for the previous fix for the infinite loop in bootp, bug #160.
svn path=/trunk/; revision=14323
2005-05-06 02:08:30 +00:00
Gilbert Ramirez
01a3ed9c58 Check the offset delta while we loop through the options.
Make sure the delta is > 0.
This intends to fix bug 160, although with a capture file
to test it, I can't be totally sure.

svn path=/trunk/; revision=14322
2005-05-06 01:56:40 +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
Guy Harris
fff7cd2f34 Change some data types, and add initializations, to squelch compiler
warnings.

Fix indentation.

svn path=/trunk/; revision=14315
2005-05-05 11:05:15 +00:00
Guy Harris
25443a7a87 Change data types to match those of "iconv()", at least on OS X.
svn path=/trunk/; revision=14314
2005-05-05 11:03:46 +00:00