Commit graph

5437 commits

Author SHA1 Message Date
Jörg Mayer
ba62d2e1b3 include packet-cdt.h to declare prototypes
svn path=/trunk/; revision=18689
2006-07-09 11:18:13 +00:00
Ulf Lamping
c2e7ac88f2 don't use only upper case letters for ResolveWin32UUID parameter and variable names
svn path=/trunk/; revision=18688
2006-07-08 15:04:20 +00:00
Ulf Lamping
78bda25f6d if the request/response subdissector couldn't be called because of missing bind information,
add a generated field telling the user and add an expert info entry

This often happens when the capture misses the binding procedure at the beginning of a conversation "capture start too late".

svn path=/trunk/; revision=18687
2006-07-08 14:55:43 +00:00
Gerald Combs
974c67ec86 Catch another infinite loop. Fixes bug 985.
svn path=/trunk/; revision=18686
2006-07-08 01:40:53 +00:00
Gerald Combs
545236879f Fix more bugs reported by Ilja van Sprundel.
packet-pktc.c:
  Catch an underflow.

packet-ospf.c:
  Don't burn CPU cycles unnecessarily.

packet-rpc.c:
  Catch an overflow.

packet-mq.c:
  Check a header size.

Fix up whitespace.

svn path=/trunk/; revision=18685
2006-07-07 22:39:23 +00:00
Ulf Lamping
515562005d add missing #include <epan/emem.h> to fix a related warning
svn path=/trunk/; revision=18684
2006-07-07 21:01:01 +00:00
Gerald Combs
ec75c41241 Fix our loop checks.
svn path=/trunk/; revision=18683
2006-07-07 20:11:06 +00:00
Gerald Combs
58e634a3ef Fix another infinite loop. Remove redundant code.
svn path=/trunk/; revision=18681
2006-07-07 15:13:11 +00:00
Anders Broman
12161363c5 From Martin Mathieson:
packet-diameter.c
- show vendor ID as a decimal number

diameter/chargecontrol.xml
- add more AVP entries from 3GPP TS 32.299 (6.6.0)

svn path=/trunk/; revision=18679
2006-07-07 04:51:12 +00:00
Gerald Combs
bbc5a76517 Fix more bugs found by Ilja van Sprundel.
packet-mount.c:
  Don't allocate a huge amount of memory.

packet-ntp.c:
  Fix a possible format string bug.

packet-ndps.c:
packet-nmas.c:
  Fix an off-by-one buffer error.

svn path=/trunk/; revision=18678
2006-07-07 04:01:09 +00:00
Gerald Combs
7976c442db Fix a few format string bugs found by Ilja van Sprundel.
svn path=/trunk/; revision=18677
2006-07-07 00:45:54 +00:00
Ulf Lamping
6018876eea add another CBA DCOM HRESULT
svn path=/trunk/; revision=18675
2006-07-06 21:39:50 +00:00
Gerald Combs
f2d83a530e Catch an infinite loop.
svn path=/trunk/; revision=18672
2006-07-06 16:47:50 +00:00
Jörg Mayer
2c5f918366 New dissector for the cisco wireless ids communication protocol
(name invented by me, better suggenstions welcome).

svn path=/trunk/; revision=18671
2006-07-06 10:58:48 +00:00
Jörg Mayer
a3430f8bb1 Includeing prefs.h once is sufficient
svn path=/trunk/; revision=18670
2006-07-06 10:39:37 +00:00
Ronnie Sahlberg
3e3c4312a3 the pidl parameter is now --ws-parser and not --eth-parser
svn path=/trunk/; revision=18669
2006-07-06 07:51:58 +00:00
Gerald Combs
a4c816cfc3 Fix an infinite loop in dissect_ber_tagged_type(). Fix up whitespace.
svn path=/trunk/; revision=18668
2006-07-05 21:33:01 +00:00
Gerald Combs
de826c3425 Don't pass an empty OID to sprint_realloc_variable(). This should fix a
recent fuzz error.

Fix up whitespace.

svn path=/trunk/; revision=18667
2006-07-05 21:30:25 +00:00
Gerald Combs
3ec4dc74e8 Fix a format string bug. This should fix some of the current fuzz
crashes.

svn path=/trunk/; revision=18666
2006-07-05 19:14:59 +00:00
Gerald Combs
9022de04b1 Make our tvb exists before we try to dereference it. Fixes some of the
current fuzz errors.

svn path=/trunk/; revision=18665
2006-07-05 18:47:21 +00:00
Jörg Mayer
16f0ca977a Add a comment about a Cisco proprietary tag.
svn path=/trunk/; revision=18663
2006-07-05 14:57:25 +00:00
Anders Broman
2c39ec122c From Jeff Morriss:
- changes the ISUP dissector preference to follow MTP3's preference 
rather than having its own (similar to SCCP, M3UA, etc.).  I did not 
obsolete the old preference because it was never put out in a release 
(only SVN users would have seen it).  I can change that if desired.

- add dissection of ANSI CRM message

svn path=/trunk/; revision=18661
2006-07-05 05:11:22 +00:00
Anders Broman
e2c1051a56 From Willem Dekker:
The attached patch fixes this and converts the sms content (7 bit encoded, gms 03.38 alphabet)  into utf8.

svn path=/trunk/; revision=18660
2006-07-05 05:05:29 +00:00
Ronnie Sahlberg
b1215a0a85 coverity 201
remove some dead code introduced in the recent rewrite



svn path=/trunk/; revision=18654
2006-07-04 09:51:47 +00:00
Tomas Kukosa
956dcf3ca0 get rid of warning message
svn path=/trunk/; revision=18653
2006-07-04 09:02:26 +00:00
Tomas Kukosa
c333c6b5bd few formal changes in PER dissector (rename asn_* types to asn1_* ones)
svn path=/trunk/; revision=18652
2006-07-04 06:49:53 +00:00
Ronnie Sahlberg
735240b656 make the string allocated with g_,alloc since preferences have a scope longer than se
svn path=/trunk/; revision=18651
2006-07-04 03:59:36 +00:00
Ronnie Sahlberg
a8113a9dd0 memory allocated by strdup is not frred by using g_free
replace with se storage


svn path=/trunk/; revision=18650
2006-07-04 03:37:15 +00:00
Ronnie Sahlberg
b9ee7a9b4f replace the two remaining g_malloc with ep_alloc
this indirectly fixes a tiny memory leak with one of the g_mallocs



svn path=/trunk/; revision=18649
2006-07-04 03:27:14 +00:00
Ronnie Sahlberg
45cb7d3fab check_var_length can also return ewp allocated memory now
svn path=/trunk/; revision=18648
2006-07-04 03:15:58 +00:00
Ronnie Sahlberg
889fe1c6fe make new_format_oid return ep allocated data.
this also removes several small memory leaks through get_oid_name and get_oid_str_name where the callers nevber freed the data





svn path=/trunk/; revision=18647
2006-07-04 02:36:18 +00:00
Ronnie Sahlberg
c27681ad4d make format_oid use ep allocated memory internally instead of malloced memory
svn path=/trunk/; revision=18645
2006-07-04 02:15:55 +00:00
Ronnie Sahlberg
69ccdaa778 make format_var return ep allocated memory
svn path=/trunk/; revision=18644
2006-07-04 01:56:52 +00:00
Guy Harris
6dee3c0d76 Note what the standards are for FDDI.
svn path=/trunk/; revision=18643
2006-07-04 00:58:08 +00:00
Ronnie Sahlberg
a24ff36da6 from Stephen Fisher
REXEC support


svn path=/trunk/; revision=18642
2006-07-03 22:49:39 +00:00
Anders Broman
2032e960d7 From Martin Mathieson:
packet-diameter.c
--------------------------
I completely reindented dissect_avps() before I made any changes, but 
when ignoring white space (in tkdiff, -w plus checking 'Ignore blanks 
when diffing'), its easy to see the small changes I've made:
- when fail to find AVP info, show code in tree parent in decimal (as 
specs do)
- add an expert info (undecoded, note) to indicate unknown AVP codes

diameter/imscxdx.xml
-------------------------------
- added 'Associated-Identities'

svn path=/trunk/; revision=18641
2006-07-03 21:18:36 +00:00
Anders Broman
2a5e5f26a1 From Nils Ljungberg:
activate_secondary_pdp_contex_acc - radio priority missing, QoS wrongly dekoded.
Fault in i detach_req: should be ELEM_OPT_TLV
identiy half-octeten ignored.
 "Cause" written as "LLC SAPI"
Decoding of TFT.

svn path=/trunk/; revision=18640
2006-07-03 21:10:14 +00:00
Jaap Keuter
3e2659699e From: Hannes Gredler
attached a patch for the BGP dissector for correct display of
VPLS NLRIs as per the latest spec (draft-ietf-l2vpn-vpls-bgp-08).

svn path=/trunk/; revision=18638
2006-07-03 08:38:30 +00:00
Tomas Kukosa
6ceb7937bc remove name field from per_sequence_t structure, it can be retrieved from field information
svn path=/trunk/; revision=18637
2006-07-03 07:03:57 +00:00
Jaap Keuter
e850e6bd97 Rewrite of dissector: get rid of static structures and use helper functions available in the form of ptvcursor. Add AF_INET6 support to fix bug 961.
svn path=/trunk/; revision=18636
2006-07-01 19:19:35 +00:00
Ulf Lamping
be94c1a5b0 lower the expert info level from NOTE to CHAT for the multiple PDU message, as this is a common behaviour
svn path=/trunk/; revision=18634
2006-07-01 12:19:33 +00:00
Ulf Lamping
692a3adfbb remove two old comments
svn path=/trunk/; revision=18632
2006-07-01 12:13:54 +00:00
Ronnie Sahlberg
ca3288b0f7 minor indentation changes
put an entry in the tree for the encrypted payload



svn path=/trunk/; revision=18629
2006-07-01 05:41:30 +00:00
Guy Harris
fa10d33734 Include <epan/oid_resolv.h> to declare get_oid_str_name().
svn path=/trunk/; revision=18627
2006-07-01 00:11:49 +00:00
Guy Harris
a3099ba15c Get rid of an unused variable.
svn path=/trunk/; revision=18626
2006-07-01 00:10:03 +00:00
Guy Harris
211c2dcd24 Get rid of an unused variable.
svn path=/trunk/; revision=18625
2006-07-01 00:09:32 +00:00
Guy Harris
1502a3ea05 true_false_strings are just structures, not arrays of structures.
svn path=/trunk/; revision=18624
2006-07-01 00:08:34 +00:00
Guy Harris
d8bb12debc Use #if 0/#endif, not commenting out, to remove a routine, so we don't
have to worry about comments in the routine.

Fix up indentation a bit.

svn path=/trunk/; revision=18623
2006-07-01 00:07:52 +00:00
Tomas Kukosa
ba9d5cd625 fix wrong terminator record in per_sequence_t tables
svn path=/trunk/; revision=18621
2006-06-30 10:18:25 +00:00
Ronnie Sahlberg
0e34335c80 from aaron christensen
fix dissection of get_auth_attr



svn path=/trunk/; revision=18619
2006-06-30 07:51:52 +00:00
Ronnie Sahlberg
d0aae6dd3e from metze
prettify dissection of filters containing substring and extensiblematch



svn path=/trunk/; revision=18617
2006-06-29 21:04:37 +00:00
Anders Broman
18c69d17b0 Add a heuristic table to SUA (SUA and SCCP should share the same table) to heuristically
dissect RANAP ower SUA.

svn path=/trunk/; revision=18616
2006-06-29 20:39:53 +00:00
Ulf Lamping
f4c7cae6b0 add various enhancements to the CBA-ACCO dissector, including an added profinet_type field to the packet_info struct
svn path=/trunk/; revision=18615
2006-06-29 19:46:51 +00:00
Ulf Lamping
5616d05c1f keep the (optional) Object UUID in the call value
svn path=/trunk/; revision=18613
2006-06-29 18:51:30 +00:00
Tomas Kukosa
9be9eb8e14 use "type function" instead of "field function" in PER CHOICE and SEQUENCE tables
it matches asn2wrs approach and makes generated dissectors source shorter

svn path=/trunk/; revision=18612
2006-06-29 15:26:41 +00:00
Guy Harris
20b7999d60 Fix description of EAPOL Key Descriptor Version values, as per mail from
Michael Stevens.

svn path=/trunk/; revision=18610
2006-06-29 09:53:12 +00:00
Ronnie Sahlberg
9957aa8e0d ssl update register protocols with a decryption key with the protocol name instead of a "tunneled protocol" fake port thing.
this break old preference settings   but as we havent shipped any win32 version with this feature yet    it shouldnt be any drama



see wiki for updates on the new format


(we still need many many updates and cleanups to the code   but the non-backward compatible preference change must go in asap)



svn path=/trunk/; revision=18609
2006-06-29 09:06:41 +00:00
Ronnie Sahlberg
24c8815c09 make these two protocols (that are commonly transported atop SSL) register themself with their name so the new SSL preference parsing will be able to find them
svn path=/trunk/; revision=18608
2006-06-29 08:31:38 +00:00
Ulf Lamping
61396bca97 the drep parameter of dissect_dcerpc_uuid_t() should be guint8 * instead of char * (just like all the other dissect_dcerpc_...() functions).
This should fix some "differ in signedness" warnings (and maybe will raise new ones, which should be fixed at the calling places then)

svn path=/trunk/; revision=18605
2006-06-29 08:08:36 +00:00
Ronnie Sahlberg
a134276421 make the three decryption preferences only be visible IF wireshark is compiled for ssl decryption (==with libgcrypt and gnutls)
this makes it easier for users to determine whether their versaion of wireshark can or can not decrypt ssl traffic



svn path=/trunk/; revision=18604
2006-06-29 07:31:52 +00:00
Anders Broman
ef7bfcdd45 Update a reference and a comment.
svn path=/trunk/; revision=18603
2006-06-29 06:32:21 +00:00
Anders Broman
3074f01988 From Martin Peylo:
Bug 978 TIPC: Malformed Packet when valid "Cluster Internal Connection Based Non-Routed Message

Bug 979 TIPC: descriptions switched in dissected package

Bug 980 TIPC: "Source Droppable" bit is missing in dissected message

svn path=/trunk/; revision=18602
2006-06-29 06:27:57 +00:00
Gerald Combs
835afe4a96 Reset ldm_tree to NULL each time we dissect an LDAP packet. This should
fix a current Buildbot crash.  Fix up whitespace.

svn path=/trunk/; revision=18601
2006-06-28 22:07:23 +00:00
Gerald Combs
8e5bdb964d Pass tvb_format_text() through a format string, in case it returns any
"%" characters.

svn path=/trunk/; revision=18600
2006-06-28 20:30:42 +00:00
Graeme Lunt
832136aee8 Support for the acp127-notification-request extension.
svn path=/trunk/; revision=18599
2006-06-28 19:31:49 +00:00
Graeme Lunt
5f1d7923bf Support for the message-token, proof-of-delivery and recipient-certificate p1 envelope extensions.
Patch for unknown built-in content type.


svn path=/trunk/; revision=18598
2006-06-28 19:07:10 +00:00
Ulf Lamping
d8725b9436 add dissection of the RemoteCreateInstance method (as far as known)
svn path=/trunk/; revision=18597
2006-06-28 18:54:19 +00:00
Ulf Lamping
690bfd0bff add dissection of custom marshalled OBJREF's (as far as known)
svn path=/trunk/; revision=18596
2006-06-28 18:51:24 +00:00
Tomas Kukosa
56d7db0c08 remove functions register_ber_oid_name() and get_ber_oid_name() from packet-ber.c, they were only OID but not BER related
use add_oid_str_name() and get_oid_str_name() instead of them

svn path=/trunk/; revision=18595
2006-06-28 14:19:08 +00:00
Ronnie Sahlberg
45aac4eb43 coverity 200 remove redundant null tests for pinfo->fd
svn path=/trunk/; revision=18594
2006-06-28 07:51:31 +00:00
Ronnie Sahlberg
1bcccd9863 coverity 199 remove a pointless test for NULL for something that can never be null.
svn path=/trunk/; revision=18593
2006-06-28 07:44:47 +00:00
Ronnie Sahlberg
a2e5a1c806 coverity 198
svn path=/trunk/; revision=18592
2006-06-28 07:37:54 +00:00
Tomas Kukosa
0fcacced04 export functions from oid-resolv.h
svn path=/trunk/; revision=18591
2006-06-28 07:01:15 +00:00
Tomas Kukosa
7d9564c459 few OID names
svn path=/trunk/; revision=18590
2006-06-28 06:50:39 +00:00
Anders Broman
0bf4780bf2 From Martin Mathieson:
Fix Bug 976

Looking at frame 170 in the trace, it looks like 
tvb_get_ephemeral_text() struggles with the null character in the middle 
of the 4th parameter (in the WWW-Authenticate header) and returns NULL.  
The attached patch uses tvb_format_text() instead which also does a 
better job of showing the string.

svn path=/trunk/; revision=18589
2006-06-27 22:04:35 +00:00
Anders Broman
93f7312e1d From Neil Piercy:
Just to add dissector name registration to the main IETF AMR dissector.

svn path=/trunk/; revision=18587
2006-06-27 19:16:38 +00:00
Anders Broman
5f09b2fcce From Neil Piercy:
The patch avoids the crash for unknown messages, adds the Common Id 
message dissection which caused it, and also add dissector name 
registration for the 2 other protocols which this file can provide.

svn path=/trunk/; revision=18586
2006-06-27 19:15:43 +00:00
Ulf Lamping
c63ce3b15d MSVC doesn't like the conversion from guint64 to double, use gint64 instead (should be safe if I understand the implementation correct)
svn path=/trunk/; revision=18585
2006-06-27 16:50:28 +00:00
Ulf Lamping
f661fd9b80 #include <epan/value_string.h> must be done, even if HAVE_LIBGNUTLS isn't defined
svn path=/trunk/; revision=18584
2006-06-27 16:41:32 +00:00
Ronnie Sahlberg
ad274d0542 make the called subdissectors create their protocol expansion at the first level of the tree and not deep inside the SSL layer
makes the traces much more readable


svn path=/trunk/; revision=18583
2006-06-27 13:51:13 +00:00
Ronnie Sahlberg
16d463dac6 from Authesserre Samuel
SSL updates and DTLS support


svn path=/trunk/; revision=18582
2006-06-27 13:36:10 +00:00
Tomas Kukosa
f8ae861c94 the 1st very simple attempt to support RFC 2198 Redundant Audio Data
svn path=/trunk/; revision=18581
2006-06-27 12:40:53 +00:00
Ronnie Sahlberg
ff22d9d066 fix a tiny memory leak where wireshark would lose a few kb once upon startup if there was no radius directory
svn path=/trunk/; revision=18580
2006-06-27 12:12:31 +00:00
Ronnie Sahlberg
5dd51dc735 fix a tiny memory leak where we would lose a few kbyte once when wireshark is starting up
svn path=/trunk/; revision=18579
2006-06-27 12:05:05 +00:00
Ulf Lamping
ecb07acdef add a new column DCE/RPC context ID
svn path=/trunk/; revision=18578
2006-06-26 20:46:15 +00:00
Jaap Keuter
846331e8a6 Fix Ethereal bug 1004. Make UDP dissector work on top of IPv6 by filling in pinfo fields correctly.
svn path=/trunk/; revision=18574
2006-06-25 12:15:35 +00:00
Ronnie Sahlberg
139b870383 restore display of optional field names when the optional bit is displayed in the tree
svn path=/trunk/; revision=18573
2006-06-24 12:03:24 +00:00
Ronnie Sahlberg
c72123bf4b coverity 197 dead code
svn path=/trunk/; revision=18572
2006-06-24 11:50:47 +00:00
Ronnie Sahlberg
ee469dc8ea coverity 149 dead code
svn path=/trunk/; revision=18571
2006-06-24 05:45:06 +00:00
Ronnie Sahlberg
0911f08cb2 change a parenthesis
svn path=/trunk/; revision=18570
2006-06-24 05:39:38 +00:00
Ronnie Sahlberg
b945d54c9f remove some dead code coverity 17
svn path=/trunk/; revision=18567
2006-06-24 00:01:33 +00:00
Ronnie Sahlberg
617227fe2a change a comment to #if to make it clearer the code is disabled
svn path=/trunk/; revision=18566
2006-06-23 23:51:55 +00:00
Ronnie Sahlberg
2258dfd5a9 coverity 172
remove a dead code condition


svn path=/trunk/; revision=18565
2006-06-23 23:44:17 +00:00
Ulf Lamping
f62e617029 fix the reading of UUID's from the Win32 registry, it was broken as we switched to UNICODE compilation
I thought there was a bugzilla entry about this, but couldn't find it

svn path=/trunk/; revision=18561
2006-06-23 18:06:54 +00:00
Ronnie Sahlberg
142763b216 coverity 174
ifdef out a few lines of dead code for a feature that is not yet finished

remove two compiler warnings about uninitialized variables (they are not uninitialized, just gcc being dumb)



svn path=/trunk/; revision=18558
2006-06-23 12:04:00 +00:00
Ronnie Sahlberg
cd65440deb coverity 190
remove some dead code


svn path=/trunk/; revision=18557
2006-06-23 09:27:17 +00:00
Ronnie Sahlberg
143f429c61 remove some dead code
coverity 191

svn path=/trunk/; revision=18556
2006-06-23 09:15:20 +00:00
Ronnie Sahlberg
332df10d7e coverity warning 177 deadcode
replace overly convoluted code with much simpler code.

stateid is a simple 16 byte structure and there is no need to make it more complex than it is.



svn path=/trunk/; revision=18555
2006-06-23 09:02:54 +00:00
Guy Harris
f6f7bd756d The joys of the C switch statement - you have to remember to use
"break;" between cases except in those rare situations where you *want*
fallthrough.

svn path=/trunk/; revision=18550
2006-06-22 21:55:24 +00:00
Ulf Lamping
efb558955d add another PROFINET specific subtype (5:CHASSIS_MAC)
svn path=/trunk/; revision=18549
2006-06-22 19:19:41 +00:00
Ronnie Sahlberg
946a39d4fc the dissector for AssertionValue that is implemented in the template file
did not check the implicit_tag flag and caused extensiblematch filters to show up as malformed packets.




svn path=/trunk/; revision=18540
2006-06-22 10:29:49 +00:00
Jaap Keuter
a41dc5d874 Initial fix for bug 974. It does implement RSP header decoding, it lacks RSP trailer decoding. ASF 2.0 messages added to ASF decoder .
svn path=/trunk/; revision=18539
2006-06-22 00:07:46 +00:00
Anders Broman
67f84666c1 Put the correct IE names in GTPv1 messages.
svn path=/trunk/; revision=18538
2006-06-21 20:51:55 +00:00
Ulf Lamping
5e62ced7e3 comment out the "catapult_dct2000_board_ports_only" part, so the Win32 buildbot has at least a chance to compile again
This is really not the preferred solution, but the current situation is even more ugly.

svn path=/trunk/; revision=18537
2006-06-21 20:34:28 +00:00
Jaap Keuter
036661ed3d Somewhat improve heuristic when SIP is encapsulated in another protocol.
svn path=/trunk/; revision=18531
2006-06-21 17:57:10 +00:00
Ronnie Sahlberg
f27bb044dd two things have irritated me immensly with nfs filehandles
1, (minor) the heuristics are too weak and everyting is always decoded either as netapp filehandles or one of the others   even when just capturing ibetween say two classic unix boxens
2, (major) you can not filter on specific subfields of the filehandle


observation: 5 people or less in the world care about implementation specific storage of data inside an opaque blob.


remove the too weak heuristics for nfs filehandles.
make decoding of filehandles accorrding to specific implementations controlled by a preference setting.
default this setting to "unknown"

display unknown filehandles using proto_tree_add_item()  FT_BYTES/BASE_HEX to make it fitlerable instead of a useless proto_tree_add_text()


wiki needs to be updated tomorrow


svn path=/trunk/; revision=18530
2006-06-21 09:45:50 +00:00
Ulf Lamping
53a3dd33e7 update PROFINET port2/3 status text
svn path=/trunk/; revision=18529
2006-06-21 07:30:11 +00:00
Ulf Lamping
df377ffcc5 fix a comment
svn path=/trunk/; revision=18527
2006-06-21 07:26:39 +00:00
Gerald Combs
f7e38bd5e6 Change ETH_VAR_IMPORT to WS_VAR_IMPORT. Try to fix a duplicate variable
definition in the Catapult DCT2000 code.

svn path=/trunk/; revision=18524
2006-06-20 18:30:54 +00:00
Ronnie Sahlberg
797bb2d5d7 for iscsi traces where there is a lot of packetloss the dissector frequently gets out of sync
and the weak heuristics often cause wireshark to mistake some segment containing read/write data to be iscsi.


make the heuristics to check that a packet really is iscsi much stronger


svn path=/trunk/; revision=18523
2006-06-20 13:16:50 +00:00
Anders Broman
0e1b053f82 From Albert Chin:
This fixes a redefine of AF_INET6 on AIX 4.3.3. We pull in <sys/socket.h> so the OS can define it first, nullifying the #define in epan/inet_v6defs.h.

svn path=/trunk/; revision=18522
2006-06-20 05:59:55 +00:00
Anders Broman
c72d4e8f2e From Albert Chin:
Fix some C++ comments in C source files and fixes some non-constant initializations.

svn path=/trunk/; revision=18521
2006-06-20 05:57:29 +00:00
Anders Broman
d327d37e82 Fix Ethereal bug 994 in Wireshark:
MIP Advertisement reverse tunneling flag not dissected

svn path=/trunk/; revision=18520
2006-06-19 15:54:13 +00:00
Anders Broman
764e3ac167 New rutine tvb_format_text_wsp() which will change "whiite space" characters to space
before output.

svn path=/trunk/; revision=18519
2006-06-19 15:53:03 +00:00
Ronnie Sahlberg
c71d5ef7cb coverity 195
remove a redundant check for str==NULL
since str can never be NULL here


svn path=/trunk/; revision=18517
2006-06-19 10:18:42 +00:00
Ronnie Sahlberg
75030295d1 add tracking of TID -> sharenames
reuse the recent structure for fid->filename mappings since the problemspace is virtually the same


(go to tired of trying to find the sharename in 10mpacket traces with 1000s of shares)



svn path=/trunk/; revision=18516
2006-06-19 09:44:15 +00:00
Ronnie Sahlberg
15c935b535 make fid->filename tracking work for files opened with NTCreateAndX
This needs to be done for all other Create/Open calls as well but would notmally just be 6 lines tyo add.

I rarely see older methods to open files   so others using older clients are encoraged to use these 6 lines to the other places where needed.




svn path=/trunk/; revision=18515
2006-06-19 07:41:09 +00:00
Ronnie Sahlberg
986085204d add infrastructure to make tracking of fid->filename easy to implement and use
svn path=/trunk/; revision=18514
2006-06-19 07:39:19 +00:00
Ronnie Sahlberg
d76b58cbfb track smb FIDFs when tehy are opened and closed.
add an expansion to the fid that display which frame itr was opened in and when it was closed.



someone may want to add tracking of actual filenames here as well.   i am not sure i need that feature myself   so ...



svn path=/trunk/; revision=18512
2006-06-18 05:45:40 +00:00
Ronnie Sahlberg
ab54bfdf50 include emem.h
svn path=/trunk/; revision=18508
2006-06-18 05:15:55 +00:00
Ronnie Sahlberg
533be475fc include emem.h
svn path=/trunk/; revision=18507
2006-06-18 05:14:45 +00:00
Ronnie Sahlberg
a5db166102 rename add_fid() to dissect_smb_fid() as a firsdt step towards adding tracking of filename/openedframe/closedframe tracking for smb fids
svn path=/trunk/; revision=18506
2006-06-18 01:58:34 +00:00
Ronnie Sahlberg
9b67217fb5 ethereal to wireshark changes
svn path=/trunk/; revision=18499
2006-06-17 12:04:30 +00:00
Ronnie Sahlberg
0c222fdbd0 ethereal to wireshark change
svn path=/trunk/; revision=18498
2006-06-17 12:00:41 +00:00
Ronnie Sahlberg
9647ea21f8 ethereal to wireshark change
svn path=/trunk/; revision=18497
2006-06-17 11:57:26 +00:00
Ronnie Sahlberg
85f49f1d49 fix for coverity 182
this bug can not currently trigger    but if someone would rename the module
in the future then this could potentially cause a null dereference.



svn path=/trunk/; revision=18494
2006-06-17 11:11:34 +00:00
Ronnie Sahlberg
847090fe54 fix coverity 188
at the same time, get rid of some unused parameter compiler warnings


svn path=/trunk/; revision=18493
2006-06-17 10:47:10 +00:00
Ronnie Sahlberg
d8e1827401 allocate the correct size of buffer to store the itlq structure for scsi
we used the wrong size which caused emem to complain that the canary value had been stomped upon.

another win for the canary feature.  thanks gerald


svn path=/trunk/; revision=18491
2006-06-17 08:40:14 +00:00
Ronnie Sahlberg
2849771e3d make ndmp track itl structures
everytime a ndmp_[scsi|tape]_open is seen   create a new itl

we need an itl structure to be able to know what commandset a certain device is using.




svn path=/trunk/; revision=18490
2006-06-17 08:22:03 +00:00
Ronnie Sahlberg
cea0653059 we need a itl structure to decode a scsi cdb properly.
make dissect_scsi_cdb abort with an assert if called with a null pointer for itl.

This means scsi over ndmp will be aborted by an assert sicne ndmp passes a null pointer here always but at least is better than a segv since some cdb's require itl to decode properly.


next checkin will fix ndmp in this regard.



svn path=/trunk/; revision=18489
2006-06-17 05:42:55 +00:00
Guy Harris
535a8bd006 Not all UN*Xes have MAP_ANONYMOUS; some have MAP_ANON instead, and some
have neither.  For those with MAP_ANON but not MAP_ANONYMOUS, use
MAP_ANON; for those with neither, add some code to use "/dev/zero".

svn path=/trunk/; revision=18488
2006-06-17 02:31:56 +00:00
Jaap Keuter
2288c8590d From Albert Chin
HP-UX doesn't have MAP_ANON but it does have MAP_ANONYMOUS. Moreoever,
according to mmap(2) on RHEL:
       MAP_ANONYMOUS
              The mapping is not backed by any file; the fd and offset argu-
              ments are ignored.  This flag in conjunction with MAP_SHARED is
              implemented since Linux 2.4.

       MAP_ANON
              Alias for MAP_ANONYMOUS. Deprecated.


svn path=/trunk/; revision=18486
2006-06-16 21:30:58 +00:00
Guy Harris
2d20359c26 Include <epan/dissectors/packet-tcp.h> to declare tcp_dissect_pdus().
svn path=/trunk/; revision=18483
2006-06-16 07:18:25 +00:00
Guy Harris
753aa36dbf "proto_tree_add_text()" supports printf-style formats; there's no need
to format into a buffer and then pass that buffer.

Make a count an "int" rather than a "size_t" to squelch a (valid)
compiler warning.

svn path=/trunk/; revision=18482
2006-06-16 07:17:00 +00:00
Anders Broman
c19f6b2d97 gsm_a: Dissect LLC
Q.931: Add Bit 8 first in Bearer Cap IE

svn path=/trunk/; revision=18477
2006-06-15 21:14:26 +00:00
Anders Broman
e803b5cefa Fix BUG 971 Facility IE dissection error in GSM_DTAP.
svn path=/trunk/; revision=18476
2006-06-15 21:12:47 +00:00
Ulf Lamping
28f87e7d3b add a missing status code
svn path=/trunk/; revision=18470
2006-06-15 11:43:35 +00:00
Ulf Lamping
39e7f020e6 fix the hresult "filter" fields
svn path=/trunk/; revision=18469
2006-06-15 11:42:47 +00:00
Tomas Kukosa
f0f319acf1 - BER_MAX_OID_STR_LEN removed and replaced with MAX_OID_STR_LEN
- x411 and dop regenerated
- dissect_ber_tagged_type() prepared (support in asn2wrs will follow)

svn path=/trunk/; revision=18468
2006-06-15 07:46:07 +00:00
Anders Broman
012f0c5f73 RANAP:
Handle the case where length is two octets.

SS-Operations.asn - cosmetict change.

svn path=/trunk/; revision=18466
2006-06-15 05:40:21 +00:00
Ronnie Sahlberg
2f95f76a1e fix tcp reassembly to work again for
ldap   and ldap+sasl


remove a recent ber length validation in packet-ber.c that cant work and breaks reassembly  and also makes all ber pacvket sspanning multiple segments show up as malformed packets.



svn path=/trunk/; revision=18465
2006-06-14 11:51:25 +00:00
Jörg Mayer
b2fe8eb03e No , at end of enum
svn path=/trunk/; revision=18463
2006-06-14 08:11:29 +00:00
Jörg Mayer
392e584e1e Include <ctype.h> to fix some warnings. Regenerate the
dissector.

svn path=/trunk/; revision=18461
2006-06-14 08:08:51 +00:00
Jörg Mayer
49e50f70d0 configure.in:
Check for libgcrypt 1.1.0 (note: I don't know which version
        is required, so maybe the version number needs to be changed
        for this test to work reliably).

packet-ipsec.c:
        - Replace __USE_LIBGCRYPT__ by HAVE_LIBGCRYPT to follow
          conventions.
        - Warning fixes: signedness in sscanf (%i -> %u)
        - Warning fixes: mixed declaration and code


svn path=/trunk/; revision=18460
2006-06-14 08:04:43 +00:00
Ulf Lamping
f1f0e294b4 (on behalf of the PROFIBUS Nutzerorganisation e.V. Deutschland):
add Media Redundancy and Media Redundancy Realtime Protocol dissectors (PN-MRP and PN-MRRT)

svn path=/trunk/; revision=18454
2006-06-13 18:26:49 +00:00
Ulf Lamping
aa748fc102 dcom_tvb_get_nwstringz0(): convert output to hexdump if the string contains nonprintable characters
svn path=/trunk/; revision=18453
2006-06-13 18:18:53 +00:00
Tomas Kukosa
a063a87af5 - "next tvb" list moved from h225 to new file next_tvb.[ch]
- h225 updated and regenerated
- restore calling subdissectors for SNMP variables which was broken with new SNMP

svn path=/trunk/; revision=18451
2006-06-13 13:21:12 +00:00
Tomas Kukosa
a557a61ae0 new function epan_get_version()
svn path=/trunk/; revision=18450
2006-06-13 08:18:50 +00:00
Ronnie Sahlberg
f3c5f96124 from metze
make the display of the filters more similar to how the ldap c api represents
filters and how they are commonly represented in documentation and other texts.




svn path=/trunk/; revision=18449
2006-06-13 07:44:37 +00:00
Guy Harris
6d2e9ee5f7 Constify to fix compiler warnings.
Check for printable ASCII - 0x7F is >= 0x20, but it's not printable, and
0x80 through 0xFF aren't ASCII.

Note that we should perhaps be using RFC 2252-style schemas to figure
out which attribute and assertion values are text and which are binary.

svn path=/trunk/; revision=18447
2006-06-13 05:39:55 +00:00
Anders Broman
f51e366267 Fix some warnings.
svn path=/trunk/; revision=18445
2006-06-12 21:48:51 +00:00
Ulf Lamping
fca1199357 add some more DCOM related HRESULTS
svn path=/trunk/; revision=18437
2006-06-12 19:28:54 +00:00
Ulf Lamping
974baa0485 slightly extend information about TCP checksum offloading problems (still far from being a real good way to handle this)
svn path=/trunk/; revision=18436
2006-06-12 19:27:05 +00:00
Ulf Lamping
2ed2cdc39d I couldn't find the filter string to show only the marked frames until I had a look at the source code (the corresponding field was hidden) -> that's not very intuitive.
So make the field "frame.marked" visible and tag it as generated.

Move both "time reference" and "marked frame" fields towards the end of the "frame" protocol fields.

Should be copied over to trunk-1.0

svn path=/trunk/; revision=18435
2006-06-12 19:24:36 +00:00
Ronnie Sahlberg
b501e15fe9 prettify dissection of LDAP search filters.
svn path=/trunk/; revision=18431
2006-06-12 08:30:07 +00:00
Anders Broman
81bda938ff From Martin Mathieson:
This patch:
- treats the variant field as a variable-length string field.  This is 
needed for some of the more complicated protocols where the variant 
number of the embedded protocol is also represented

- the patch to Makefile.am was not applied from 
http://www.wireshark.org/lists/wireshark-dev/200606/msg00009.html

svn path=/trunk/; revision=18427
2006-06-11 08:26:55 +00:00
Ronnie Sahlberg
452226586d rework the previous patch slightly since we really need to push a string upward to our callers to be able to generate and display nice filter expressions on the top line as the original ldap dissectopr did
svn path=/trunk/; revision=18421
2006-06-10 06:48:09 +00:00
Ronnie Sahlberg
fcf198a69d add simple heuristics to the decoding of assertionvalues to make it display ascii strings as ascii and binary data as hex bytes
svn path=/trunk/; revision=18420
2006-06-10 05:07:42 +00:00
Ronnie Sahlberg
5e49882844 make CLDAP show up as CLDAP in the dissectyion tree and not as LDAP
this also makes the "cldap" filter work


svn path=/trunk/; revision=18419
2006-06-10 04:29:26 +00:00
Guy Harris
3d93d3f99c Mark "inap.tcap.itu_ssn" and "inap.tcap.itu_ssn1" as obsolete
preferences, so we don't warn about them, we just silently discard them.

svn path=/trunk/; revision=18418
2006-06-10 00:26:48 +00:00
Guy Harris
a85199af18 Make dissect_tivoconnect() a proper "new-style" dissector, and register
it as such.

Use "tvb_strncaseeql()" to do the check for "tivoconnect" at the
beginning of the packet.

svn path=/trunk/; revision=18415
2006-06-09 23:06:38 +00:00
Ronnie Sahlberg
1edbac09c0 fix for bug 766
display truncated responses as "truncated response" and not "malformed packet"



svn path=/trunk/; revision=18412
2006-06-09 22:55:25 +00:00
Ronnie Sahlberg
e3bdf2986f From Christoph Werle
fix for ieee802.11 aid


svn path=/trunk/; revision=18411
2006-06-09 22:06:21 +00:00
Ronnie Sahlberg
912d222720 update properties
svn path=/trunk/; revision=18410
2006-06-09 21:45:06 +00:00
Ronnie Sahlberg
795e49d637 From Thomas Dreibholz
RSerPool protocol stack and four new protocols


svn path=/trunk/; revision=18409
2006-06-09 21:41:02 +00:00
Ronnie Sahlberg
de2e6dc731 some updates from new pidl
svn path=/trunk/; revision=18408
2006-06-09 21:17:58 +00:00
Ronnie Sahlberg
ecdde88d46 from tim endean
handle the "broken" case when someone sends an indefinite length that is 0.



svn path=/trunk/; revision=18407
2006-06-09 21:09:57 +00:00
Ronnie Sahlberg
067de606f2 from Stephen Fisher
make icmp timestamps more readable



svn path=/trunk/; revision=18406
2006-06-09 20:44:16 +00:00
Ronnie Sahlberg
fea1419b6f from Metze
fix the bug where decryption of dcerpc wrapped inside gsskrb sometimes fail




svn path=/trunk/; revision=18404
2006-06-09 08:54:23 +00:00
Jörg Mayer
eb808f2cdb rtcp.profile-specific-extension was defined twice
svn path=/trunk/; revision=18400
2006-06-08 14:42:53 +00:00
Jörg Mayer
904756e54b Compile fix: update generated rnsap files
svn path=/trunk/; revision=18399
2006-06-08 14:37:28 +00:00
Jörg Mayer
10d81045a1 warning fix: no , at end of enum
svn path=/trunk/; revision=18398
2006-06-08 14:36:45 +00:00
Jörg Mayer
548d9ec98e warning fix: make function static
svn path=/trunk/; revision=18397
2006-06-08 14:36:17 +00:00
Anders Broman
78d971d999 MAke it possible to get a tvb with a BIT STRING, regenerate PER dissectors.
svn path=/trunk/; revision=18396
2006-06-08 06:07:18 +00:00
Anders Broman
581dc56d63 MAke it possible to get a tvb with a BIT STRING, regenerate PER dissectors.
svn path=/trunk/; revision=18395
2006-06-08 06:06:17 +00:00
Gerald Combs
d5da1670f1 Update the download link in the help dialog. More Ethereal -> Wireshark.
svn path=/trunk/; revision=18391
2006-06-07 22:57:54 +00:00
Anders Broman
41dc49bc3e From Michail Koreshkov:
Added option "ANSI MAP" in Preferences menu, that ansi_map protocol dissector can parse packets with non-standart SSN.

svn path=/trunk/; revision=18358
2006-06-06 18:39:49 +00:00
Anders Broman
65aadc0d79 From Martin Mathieson:
- shows profile-specific extension data at the end of SR/RR reports (if 
packet length has not yet been reached after parsing normal data) and 
advances offset (further packets were not recognised+dissected as this 
data wasn't being skipped).
- checks that the length of the RTCP data in the whole frame matches the 
combined length from the length fields (the last check in RFC 3550, "A.2 
RTCP Header Validity Checks") with a generated field and expert info 
when wrong.
- reports the length field in all of the message types consistently (the 
length was confusingly shown multiplied by 4 only in APP packets...)

svn path=/trunk/; revision=18357
2006-06-06 18:26:57 +00:00
Tomas Kukosa
a12a5a7148 uncomment newly supported TYPE-IDENTIFIER usage and per regeneration
svn path=/trunk/; revision=18339
2006-06-05 06:52:50 +00:00
Tomas Kukosa
1f24a713be - packet-per.[ch]: Open Type support
- asn2wrs.py: TYPE-IDENTIFIER and ABSTRACT-SYNTAX information object classes support

svn path=/trunk/; revision=18338
2006-06-05 06:49:52 +00:00
Jörg Mayer
49618dfd6d warning fix: declare some functions static
svn path=/trunk/; revision=18335
2006-06-04 18:22:03 +00:00
Jörg Mayer
af663527d2 warning fix: guint16 is always <= 0xFFFF
svn path=/trunk/; revision=18334
2006-06-04 17:48:18 +00:00
Jörg Mayer
98477bc4e4 Add some rudimentary dissector for what seems to be
Telkonets ethernet over powerline communication protocol.

svn path=/trunk/; revision=18333
2006-06-04 13:07:13 +00:00
Anders Broman
5f6f853d16 From Martin Mathieson:
- while parsing fmtp lines, the dissector looks for the MPEG4 'profile-level-id' parameter.  If there is no '=' present, it was throwing an exception and the frame marked as malformed (see e.g. the attached
capture)
- I've added a few comments where the code wasn't obvious to me...

svn path=/trunk/; revision=18332
2006-06-03 11:48:27 +00:00
Ronnie Sahlberg
d72e2d6f6c some functions return dos error codes and not nt status codes
svn path=/trunk/; revision=18331
2006-06-03 02:03:52 +00:00
Guy Harris
013ca90c42 Get rid of unused variable.
svn path=/trunk/; revision=18328
2006-06-03 00:44:02 +00:00
Anders Broman
b590de7ce0 From Richard van der Hoff:
Q.931:I
mprovesthe dissection of Q.931 Channel 
Identification information elements, by using proper (filterable) header 
fields rather than text tree items.

H253:
make the h.263 dissector dissect the group-of-block 
number which comes after a GOB start code.

svn path=/trunk/; revision=18323
2006-06-02 20:29:05 +00:00
Anders Broman
770777bd17 dissect_geographical_description updates.
svn path=/trunk/; revision=18318
2006-06-02 16:58:22 +00:00
Jörg Mayer
3e3dc39b29 The actual file packet-tivoconnect.c was missing
svn path=/trunk/; revision=18314
2006-06-02 07:11:11 +00:00
Jörg Mayer
d9b930a7d7 image/wireshark.rc.in
svn path=/trunk/; revision=18310
2006-06-02 06:50:57 +00:00
Anders Broman
409519d0f2 From Kees Cook:
A dissector for "TiVoConnect Beacon" traffic.

svn path=/trunk/; revision=18308
2006-06-02 05:31:41 +00:00
Anders Broman
2143fccee3 Correct dissect_geographical_description.
svn path=/trunk/; revision=18307
2006-06-02 05:02:54 +00:00
Anders Broman
6471c00a55 From Cvetan Ivanov:
H225.cnf
I noticed is that the voip call flow graph does not have a label for the setupAck packet. I traced this to the empty frame_label.

voip_calls.c
It seems to me that in gtk/voip_calls.c tmp_h323info->guid is pointer itself, therefore: 
memcmp(&tmp_h323info->guid 
should in fact read: 
memcmp(tmp_h323info->guid

svn path=/trunk/; revision=18304
2006-06-01 20:19:51 +00:00
Ronnie Sahlberg
66bf41c493 the very recently added unaligned-per support and the ulp dissector could cause an infinite loop in dissect_per_constrained_integer()
if the interval spans the entire 32 bit range.


special case the two common cases when this may happen  until a real fix is included.

if the range variable becomes 0 due to 32bit overflow   do a g_assert_not_reached to prevent an infinite loop.



this function should be enhanced to work with 64 bit integers.


svn path=/trunk/; revision=18299
2006-06-01 10:16:43 +00:00
Anders Broman
ed5e8f550c Complete reasembly code.
svn path=/trunk/; revision=18279
2006-05-31 20:22:51 +00:00
Gerald Combs
eb71f7fb96 Rename the main executable to "wireshark", along with more conversions:
ethereal.com -> wireshark.org
  mailing lists and addresses
  ETHEREAL -> WIRESHARK
  Man pages
  Automake/Autoconf names


svn path=/trunk/; revision=18271
2006-05-31 19:12:15 +00:00
Gerald Combs
8958bab6de Tethereal/tethereal -> TShark/tshark.
svn path=/trunk/; revision=18268
2006-05-31 17:38:42 +00:00
Michael Tüxen
232c213eca Editorial fixes from Thomas Dreibholz.
svn path=/trunk/; revision=18265
2006-05-31 13:41:35 +00:00
Tomas Kukosa
34e1acfc08 get rid of few warnings in packet-per.c
svn path=/trunk/; revision=18264
2006-05-31 13:38:10 +00:00
Ronnie Sahlberg
697974ae8d improve the tcp retransmission vs outoforder heuristics to address the issue in PeterBruno's email of may18
dont reply to mailinglist that issue has been resolved since "ethereal" is still in limbo


svn path=/trunk/; revision=18263
2006-05-31 11:15:45 +00:00
Tomas Kukosa
9b2a95f2d4 H.245 update to version 12 (10/2005)
svn path=/trunk/; revision=18262
2006-05-31 07:33:47 +00:00
Gerald Combs
b15974d094 libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ of
changes here.  It compiles OK on OS X, but hasn't been tested anywhere else.

svn path=/trunk/; revision=18260
2006-05-31 00:23:01 +00:00
Anders Broman
c510c6118e Preparations for reassembly. Currently there is a problem with the rrlp dissector...
svn path=/trunk/; revision=18258
2006-05-30 20:52:43 +00:00
Anders Broman
9aa99b16fe Ethereal->Wireshark
svn path=/trunk/; revision=18248
2006-05-29 20:44:06 +00:00
Anders Broman
9491711ab4 From Martin Mathieson:
- shows profile-specific extension data at the end of SR/RR reports (if 
packet length has not yet been reached after parsing normal data) and 
advances offset (further packets were not recognised+dissected as this 
data wasn't being skipped).

svn path=/trunk/; revision=18245
2006-05-29 18:16:23 +00:00
Anders Broman
581f2e92aa From Martin Mathieson:
This version of the patch won't look for the authentication scheme (it 
just skips that part for Authentication-Info headers).  I tested it 
using the enclosed file (pasted from the RFC and fed through 
od/text2pcap, then messed around with so I could test the other new 
parameters, even if they don't really belong in that header...).

svn path=/trunk/; revision=18244
2006-05-29 18:13:55 +00:00
Tomas Kukosa
667fed5915 - h225.asn renamed to H323-MESSAGES.asn
- h245.asn renamed to MULTIMEDIA-SYSTEM-CONTROL.asn
- rollback changes in .asn sources to keep them in original ITU-T form and put necessary changes into .cnf files
- PER dissectors regenerated

svn path=/trunk/; revision=18238
2006-05-29 13:06:44 +00:00
Anders Broman
996d4db495 Ethereal->Wireshark
svn path=/trunk/; revision=18234
2006-05-28 19:49:07 +00:00
Ronnie Sahlberg
42a4ebe633 basic sdp dissector for the bluetooth stack
svn path=/trunk/; revision=18229
2006-05-28 06:14:20 +00:00
Anders Broman
c20d559c91 Fix bug 973:
While in 3GPP spec, the last two (Down/up nextPDCP-PDU seq. no.) would be 2 
BYTES. So ethreal could not read the message correctly. We have to modify the 
log to make Ethreal analysis it.

Add disection of TargetID.

svn path=/trunk/; revision=18228
2006-05-27 22:09:07 +00:00
Anders Broman
859e520bdf From Markus Meier:
Better dissection of chanel descriptions.

svn path=/trunk/; revision=18227
2006-05-27 18:26:04 +00:00
Anders Broman
949a2d9bf7 Handle the case with only one speech sample.
svn path=/trunk/; revision=18226
2006-05-27 18:25:08 +00:00
Anders Broman
f377855e9f Dissect RTP Redundancy Support correctly.
svn path=/trunk/; revision=18225
2006-05-27 18:24:29 +00:00
Ronnie Sahlberg
36171caca7 the bluetooth SCO transport layer from the affix bluetooth patch
svn path=/trunk/; revision=18224
2006-05-27 06:45:46 +00:00
Ronnie Sahlberg
666c144dd4 add reassembly of bluetooth ACL packets
doing the reassembly internally in acl instead of calling reassembly.c since the fragmentation is so simple and packets are so small anyway so full reassembly.c support would be overkill.



svn path=/trunk/; revision=18223
2006-05-27 06:10:52 +00:00
Ronnie Sahlberg
38a0ca26c6 initial bluetooth rfcomm dissector.
this dissector will not yet detect when ppp is passed over the rfcomm link
but the old code to detect and deescapt the ppp data is still in the dissector, though ifdeffed out   to serve as inspiration when ppp over rfcomm captures are made available.


the only captures i have with rfcomm are for raw serial communications so they dont contain any ppp frames. :-(



svn path=/trunk/; revision=18221
2006-05-27 01:52:02 +00:00
Ronnie Sahlberg
a002e7b0c8 pass both chandle and cid from l2cap to higher layer protocols.
higher layer protocols need the chandle, cid and direction (from pinfo) in order to identify packets for the same "conversation"

(it is not a conversation per se in bluetooth butn one unidirectional flow that we track)


svn path=/trunk/; revision=18220
2006-05-26 22:34:33 +00:00
Ronnie Sahlberg
fd8f1cee34 protocols running atop ACL/L2CAP needs to be able to track pdus based on
acl chandle + direction + l2cap-CID    to uniquely identify a single specific
flow of PDU packets.

So we need to pass the chandle upp from acl to l2cap at least.



It would have been nice to handle this using "conversations" but the bluetooth
stack does not eaily map to the idiom host:port<->host:port

instead in bluetooth you have unidirectional flows that are identified by ACL-chandle:L2CAP-CID:direction     and additional state held inside l2cap  would attach two such flows together into a "conversation".
Bluetooth packets themself    only indentify "half" of the two way conversation.




svn path=/trunk/; revision=18218
2006-05-26 08:30:56 +00:00
Tomas Kukosa
604000a6b3 - remove some #.MODULE_IMPORT from .cng files
- regenerate BER dissectors so as to change rest of Ethereal->Wireshark and asn2eth -> asn2wrs

svn path=/trunk/; revision=18217
2006-05-24 12:24:54 +00:00
Anders Broman
d17dad9ead Atempt to fix bug 967 crash on fuzzed SNMP capture. I can't reproduce the Bug.
svn path=/trunk/; revision=18216
2006-05-23 20:36:49 +00:00
Anders Broman
b727e4e355 From Markus Meier:
The UMA-message Handover From UMAN Command includes the complete L3-message (and header) and not only the handover-IE's.

svn path=/trunk/; revision=18215
2006-05-23 19:02:05 +00:00
Anders Broman
1814821adc From Martin Mathieson:
- Many DCT2000 protocols can be embedded within an IP primitive 
message.  Add a heuristic to see if we can find the protocol payload 
within in IP primitive message, and look for an ethereal dissector 
matching the DCT2000 protocol name (this is useful for simple protocol 
testing where no physical links are involved)
- Make some more of these protocols (diameter, http, mgcp) findable by name
- Adds protocol 'variant' number to stub and dissector
- Break the duplicated writing of the stub header out into a separate 
function

svn path=/trunk/; revision=18212
2006-05-23 05:48:00 +00:00
Anders Broman
28509cb311 Dissect rrlp payload.
svn path=/trunk/; revision=18211
2006-05-23 05:35:20 +00:00
Tomas Kukosa
fbd2a3fe3e - fix bugs in dissect_per_octet_string() introduced with unaligned variant
- step to new ASN.1 API - pass asn_ctx_t* through PER dissectors instead of packet_info*
- PER ALIGNED/UNALIGNED flag moved to asn_ctx_t
- PER created tree item pointer moved to asn_ctx_t
- add nbap into PER dissectors in asn1/Makefile.nmake
- use add_oid_str_name() instead of register_ber_oid_name() in H.225 and H.245
- export asn_ctx_init from library
- PER dissectors regenerated

svn path=/trunk/; revision=18209
2006-05-22 11:49:50 +00:00
Ronnie Sahlberg
6075ec39fb ethereal->wireshark
svn path=/trunk/; revision=18207
2006-05-22 08:21:22 +00:00
Ronnie Sahlberg
f0b33a4789 ethereal->wireshark updates
svn path=/trunk/; revision=18206
2006-05-22 08:14:01 +00:00
Ronnie Sahlberg
89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Ronnie Sahlberg
feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Guy Harris
629f0ecbe5 Put a newline at the end of the file.
svn path=/trunk/; revision=18193
2006-05-20 21:45:07 +00:00
Jaap Keuter
f08e4931e1 From Ted Percival:
I have updated the TELNET dissector to dissect encryption negotiation
commands as specified by RFC 2946. 

svn path=/trunk/; revision=18187
2006-05-18 17:08:41 +00:00
Guy Harris
635ae7e19a As suggested by Jim Prince, pass the right argument to "getcwd()" - the
buffer argument is a mallocated buffer, so sizeof doesn't return its
size, it returns the size of the pointer to the buffer.  Fixes bug 907.

svn path=/trunk/; revision=18186
2006-05-18 12:01:33 +00:00
Guy Harris
402a762818 Put a newline at the end of the file.
svn path=/trunk/; revision=18184
2006-05-18 11:34:57 +00:00
Lars Roland
d9b9565032 Improve fix for Bug 915 by using GetVersionEx() as it is recommended by Microsoft. Tested on Win98 SE.
svn path=/trunk/; revision=18183
2006-05-18 00:25:14 +00:00
Anders Broman
86d8177cc1 Decode Ext-GeographicalInformation.
svn path=/trunk/; revision=18182
2006-05-17 20:09:48 +00:00
Anders Broman
aefbf4ab72 Fix decoding of Ext-GeographicalInformation.
svn path=/trunk/; revision=18181
2006-05-17 19:30:57 +00:00
Anders Broman
fff13e4653 Add missing add_new_data_source.
svn path=/trunk/; revision=18180
2006-05-17 18:11:12 +00:00
Anders Broman
2002225c79 Fix BUGs:
955 UMA: Handover Command message not decoded.
956 UMA: multirate-configuration not decoded correctly .
957 UMA: Received Signal Level List not decoded.

svn path=/trunk/; revision=18179
2006-05-17 18:09:14 +00:00
Ulf Lamping
1c69907dcd attempt to fix #915:
if the GetVersionEx() call fails, force the dwPlatformId to VER_PLATFORM_WIN32_WINDOWS so the return value from VirtualProtect() won't trigger an assert.

svn path=/trunk/; revision=18178
2006-05-17 09:28:14 +00:00
Ronnie Sahlberg
6217c69fdd for "connection oriented channels" place a generated psm field in the display to make it filterable and also to show what the payload should be.
svn path=/trunk/; revision=18177
2006-05-17 08:25:54 +00:00
Anders Broman
622f6d8922 PER:
Adapt dissect_per_octet_string to unaligned PER.
Call rrlp dissector from ulp dissector. 

svn path=/trunk/; revision=18176
2006-05-16 22:00:18 +00:00
Anders Broman
8d6661b911 From Axel Schwenke:
- complete dissector for greeting/login packets
- nearly complete dissector for requests, except:
  + parameters for COM_EXECUTE
  + requests from replication slave
- added some features to response dissectors

svn path=/trunk/; revision=18174
2006-05-16 19:07:48 +00:00
Anders Broman
56f73049b9 From Martin Mathieson:
- adds application/xpidf+xml as a media type known to be xml
- appends /xml to the protocol column (as SDP does).  It would be nice 
to append the top-level element, or the name taken from a matching DTD, 
but this will do for now (at least its a short name).
- corrects the help text for the preference.  I can see that it is 
registered as a heuristic for "http", "sip" and "media"

I've also included a slightly updated version of reginfo.dtd (RFC 3680) 
for the dtds folder.

svn path=/trunk/; revision=18173
2006-05-16 19:04:53 +00:00
Ronnie Sahlberg
5857560a7f add dissection of the bluetooth btl2cap layer
svn path=/trunk/; revision=18170
2006-05-16 08:31:34 +00:00
Jaap Keuter
c59f032fec Change return value checking to the true meaning of the spec:
"If the function succeeds, the return value is nonzero."
This may or may not solve bug 915.

svn path=/trunk/; revision=18168
2006-05-15 21:42:02 +00:00
Anders Broman
a23a5b603a Fix bug 951 UMA: message URR_RELEASE not decoded corretly
and 952 UMA: IE length-field of UMA-message can always be 2 bytes 

svn path=/trunk/; revision=18167
2006-05-15 20:23:37 +00:00
Anders Broman
5b69723fdc dissect_diameter_tcp should be static void
svn path=/trunk/; revision=18166
2006-05-15 20:22:24 +00:00
Anders Broman
7f033bd485 PER Enumerated is working now.
svn path=/trunk/; revision=18165
2006-05-15 20:21:33 +00:00
Guy Harris
aa4b59de6f Don't throw an exception in oid_to_subid_buf() if the generated OID is
zero-length - oid_to_subid_buf() can be called when we're not in the
middle of a dissection, and throwing a "dissector bug" assertion in that
case is itself a bug.

svn path=/trunk/; revision=18164
2006-05-15 17:58:39 +00:00
Tomas Kukosa
31547dee95 regenerated with new asn2eth
svn path=/trunk/; revision=18158
2006-05-15 06:36:17 +00:00
Tomas Kukosa
726820fd03 updated to H.235.0:09/2005 and H.235.8:09/2005
svn path=/trunk/; revision=18157
2006-05-15 06:32:01 +00:00
Tomas Kukosa
aada0116b7 H.225, H.245, H.450 regenerated with new asn2eth
svn path=/trunk/; revision=18156
2006-05-15 06:27:53 +00:00
Anders Broman
2f568ce9ea From Jelmer Vernooij:
Add proper dissection for the Ack message in OSCAR's Messaging SNAC family.

svn path=/trunk/; revision=18153
2006-05-15 05:27:23 +00:00
Guy Harris
654d0bd25d Make "oct" in "dis_field_ud()" a guint8, as we never stuff anything
bigger than an 8-bit value in it, and guint is too big as we pass
something based on it to a routine expecting a guint16.

svn path=/trunk/; revision=18152
2006-05-15 02:49:42 +00:00
Ronnie Sahlberg
e78afc6518 add bluetooth acl dissection
the fragment reassembly from the old patch is commented out since it has to be redone completely using emem and se_trees  the proper way.
but to do this i would need example captures of fragmented bluetooth traffic first.



svn path=/trunk/; revision=18149
2006-05-14 10:18:29 +00:00
Anders Broman
e49fe267e6 Remove stupid code.
svn path=/trunk/; revision=18148
2006-05-14 08:17:39 +00:00
Ronnie Sahlberg
db2af21552 delete the wrong evt dissector
svn path=/trunk/; revision=18147
2006-05-14 07:47:21 +00:00
Ronnie Sahlberg
d68e6dfbe1 checkin the correct hci evt dissector
svn path=/trunk/; revision=18146
2006-05-14 07:46:37 +00:00
Ronnie Sahlberg
c7096041a8 bluetooth hci event dissector
svn path=/trunk/; revision=18145
2006-05-14 06:24:57 +00:00
Anders Broman
396a33dbee snmp: Hopfully fix bug Bug 925.
Add packet-ulp.c missing from last commit.

svn path=/trunk/; revision=18144
2006-05-13 22:18:08 +00:00
Anders Broman
ecac136d4d Make dissect_per_constrained_integer handle unaligned PER.
Add ULP TCP port preference decode IPv4/IPv6 fields.

svn path=/trunk/; revision=18143
2006-05-13 12:06:56 +00:00
Anders Broman
7c4b8c8b88 Fix Bug 938 ISUP IAM message marked as Malformed packet - Location number without address digits
wrongly decoded.

svn path=/trunk/; revision=18138
2006-05-11 20:32:43 +00:00
Graeme Lunt
6c381119a9 Removal of useless "Field Information" introduced in r18125
svn path=/trunk/; revision=18133
2006-05-11 16:42:38 +00:00
Jaap Keuter
3b323f7b53 Implement DVMRP_V3_NEIGHBORS_2 presentation.
svn path=/trunk/; revision=18128
2006-05-10 22:18:41 +00:00
Jaap Keuter
0d8d153d99 Fix for bug 924. Adding preference whether to check the DVMRP V3 Major/Minor version.
svn path=/trunk/; revision=18127
2006-05-10 22:11:11 +00:00
Graeme Lunt
5169737698 Wrong exported symbol
svn path=/trunk/; revision=18126
2006-05-10 20:39:42 +00:00
Graeme Lunt
ab19b927c8 "Field Information" context menu item that will bring up a web page reference to a field type of FT_OID
svn path=/trunk/; revision=18125
2006-05-10 19:50:54 +00:00
Anders Broman
30fc91887c Add 3GPP Radio Resource LCS Protocol (RRLP) packet dissector
svn path=/trunk/; revision=18124
2006-05-10 16:51:41 +00:00
Ronnie Sahlberg
e3585b9185 from Christoph Scholz's bluetooth patch
add dissection of HCI Command protocol to ethereal


svn path=/trunk/; revision=18122
2006-05-10 10:38:53 +00:00
Ronnie Sahlberg
f5691aaba6 add Bluetooth to the long protocol name
svn path=/trunk/; revision=18120
2006-05-10 07:55:52 +00:00
Anders Broman
102bb4be54 Preparations to be able to handle unaligned PER.
svn path=/trunk/; revision=18119
2006-05-10 05:58:06 +00:00
Anders Broman
956d317fb8 - Some minor asn1 corrections
- Dissect Enumerated correctly
- Add message to info col.

svn path=/trunk/; revision=18117
2006-05-09 19:01:20 +00:00
Gerald Combs
8baf6e0ae2 The AMID type and tag are two bytes, not four. The PSID should be shown
in decimal, not hex.

svn path=/trunk/; revision=18116
2006-05-09 18:30:52 +00:00
Jörg Mayer
9b90db037d Propset...
svn path=/trunk/; revision=18115
2006-05-09 14:32:38 +00:00
Michael Tüxen
3365271c04 Make top_tree static. This allows ethereal to be built on Mac OS X.
svn path=/trunk/; revision=18113
2006-05-09 10:20:28 +00:00
Ronnie Sahlberg
01f6f60b62 Add the first layer of the bluetooth stack dissecting the hci h4 single byte
refactyored from the affix patch by Christoph Scholz



svn path=/trunk/; revision=18112
2006-05-09 09:13:20 +00:00
Graeme Lunt
abefaf32bf Basic Encoding Rules (BER) encoded file reading. Not really a packet trace format but still useful for dissecting arbitrary BER/DER ASN.1.
svn path=/trunk/; revision=18110
2006-05-08 19:56:36 +00:00
Graeme Lunt
146d22767c LDAP attribute type dissector framework including support for "netlogon" attribute and PKI attributes
svn path=/trunk/; revision=18109
2006-05-08 17:52:42 +00:00
Graeme Lunt
e0f8325deb Better split between dissectors and fixes for s4406 SEQ OF defined extensions
svn path=/trunk/; revision=18108
2006-05-08 17:46:58 +00:00
Graeme Lunt
c725ebe242 FT_STRING => FT_OID where applicable
svn path=/trunk/; revision=18107
2006-05-08 17:45:12 +00:00
Anders Broman
9740278a1d Fix bug 926 OID wrongly decoded.
svn path=/trunk/; revision=18106
2006-05-08 17:30:24 +00:00
Ronnie Sahlberg
dd40edccd9 use request/response tracking structure from NDMP and hang a scsi itlq nexus off it so that cdb/datain/dataout/response tracking for scsi forks also for the ndmp transport.
svn path=/trunk/; revision=18105
2006-05-08 09:20:34 +00:00
Ronnie Sahlberg
ad8137903a add tracking of request/response and responsetime to ndmp
we need this in order to be able to provide proper itlq structures to the scsi dissector   so that response data from scsi is dissected properly.



svn path=/trunk/; revision=18104
2006-05-08 08:21:36 +00:00
Anders Broman
1f8782a66d From Bill Meier:
Fix bug 833 (remove 'dead' code flagged by Coverity); 
Update defines based upon current version of FreeTDS tds.h; Reformat defines for readability;

svn path=/trunk/; revision=18103
2006-05-07 18:39:47 +00:00
Anders Broman
4e54a1a204 Fix an ASN1 error and use the IAANA registered ports.
svn path=/trunk/; revision=18102
2006-05-07 13:22:30 +00:00
Ronnie Sahlberg
dcb63e2a9f from Chris Audley
fix for bug 909


svn path=/trunk/; revision=18100
2006-05-06 21:52:47 +00:00
Ronnie Sahlberg
7521c5a32c update the itl structure so that it sets the cmdset field to the current command set even for the case where we have not detected it by seeing the inquiry response.
Make teh msb of the cmdset variable indicate whether we detected the commandset from the trace or whether we used the default value from preferences.

indicate in the dissection of the packet whether the command set is "known" or whether we are using the default one.

make scsi srt stats work even for when we are using the "default" dommandset. Previously scsi srt would ignore all pdus for itl sessions where the "default" command set was used.



svn path=/trunk/; revision=18098
2006-05-05 22:01:45 +00:00
Ulf Lamping
6f6bd1f10a add two missing DCOM Dispatch error codes
svn path=/trunk/; revision=18097
2006-05-05 19:32:49 +00:00
Ulf Lamping
758e24c81d fix dissection of IDispatch Invoke dissection, if rgdispidNamedArgs array isn't NULL
svn path=/trunk/; revision=18096
2006-05-05 19:31:23 +00:00
Ulf Lamping
cf17ccd7ac fix VARIANT BOOL meaning
svn path=/trunk/; revision=18095
2006-05-05 19:29:50 +00:00
Ulf Lamping
5714310d78 fix spelling: PROFInet -> PROFINET
svn path=/trunk/; revision=18094
2006-05-04 19:48:33 +00:00
Anders Broman
9aa7db0042 From LEGO fix "Dissector bug, Protocol H248"
svn path=/trunk/; revision=18093
2006-05-04 18:25:43 +00:00
Jaap Keuter
8f88da8a16 From Menno Andriesse
By popular request (sort of...) here is a patch for the S5066 dissector to enable TCP port preference.

svn path=/trunk/; revision=18092
2006-05-04 16:50:52 +00:00
Jaap Keuter
ad27b43867 From: Thomas Boehne
But since most PLCs now offer to run the protocol directly on TCP, I attached a little patch.

svn path=/trunk/; revision=18090
2006-05-04 15:04:05 +00:00
Ronnie Sahlberg
5a8a9702fe force the AssertionValue type to be displayed as a STRING instead of as hex BYTES.
Most of the time  AssertionValue will contain an ascii string   so make it always display as a string to make the display "correct" most of the time insterad of being "wrong" most of the time.

There are situations when AssertionValue contains binary data though  and in those cases the display will be "wrong" (but not more wrong than the old dissector anyway)


What someone really should do (someone interested in ldap that is) to make it more correct would be to implement a dissector for AssertionValue in the template file and having the dissector check if any of the bytes of the octet string has a value <32   and if so display it in hex as   0x.....
It all bytes have values >=32   then it shoudlk display it as a string "...
instead.

Someone interested in ldap may spend time on this refinement.



svn path=/trunk/; revision=18089
2006-05-04 10:19:32 +00:00
Ronnie Sahlberg
ac1721573d from Guenther Deschner
Two more Kerberos error codes where it has been witnessed that the payload contains a PA-DATA structure with the magic salt containing an nt status code



svn path=/trunk/; revision=18088
2006-05-04 08:54:58 +00:00
Anders Broman
0167df6139 col_append_str() instead of col_set_str() by mistake.
svn path=/trunk/; revision=18087
2006-05-03 19:32:27 +00:00
Anders Broman
abbbc2c4da Use the asn2eth generated snmp dissector.
svn path=/trunk/; revision=18086
2006-05-03 19:09:03 +00:00
Anders Broman
0a00782704 Add dissection of country code if number is in international format and Number plan is E164.
svn path=/trunk/; revision=18085
2006-05-03 18:57:32 +00:00
Anders Broman
2670be5859 Fix Bug 916 PurgeMS decoding error in GSM MAP.
Get rid of som unused ASN1 code and some asn2eth warnings. 

svn path=/trunk/; revision=18084
2006-05-03 18:49:37 +00:00
Ronnie Sahlberg
c18467254d do some template magic to make ethereal dissect CLDAP RPC again.
i dont think it is the optimal way to solve this but it is better than nothing for the time being.


svn path=/trunk/; revision=18083
2006-05-03 10:59:15 +00:00
Anders Broman
dbdb3729de From Paolo Abeni:
authesserre samuel <sauthess@gmail.com> kindly pointed out an issue with session renegotiation in the current ssl decryption code. 

Encrypted handshake message are decrypted, but the dissector try to interpret the encrypted code. Renegotiation messages are therefore ignored. The attached pcap trace and key can be used to trigger the issue.

The attached patch fix the problem storing the decrypted version of encrypted handshake message and dissecting it when available. The patch also fix bad issue with des cipher (alike the issue fixed in my previous post)

svn path=/trunk/; revision=18081
2006-05-03 05:29:04 +00:00
Anders Broman
97419848da From Andrei Emeltchenko:
I attached patch to add preferences in SDP for RTP stream detection. By default SDP decodes RTP stream but now I can disable it.

svn path=/trunk/; revision=18080
2006-05-03 05:07:04 +00:00
Anders Broman
437baee301 Fix Bug 913 DateAndTime dissection error in CAMEL CallInfoReportArg
svn path=/trunk/; revision=18079
2006-05-02 20:26:49 +00:00
Guy Harris
e5001116f1 Do the ESP payload decoding, and pass it to the subdissector, regardless
of whether we're building a protocol tree or not - you have to call
subdissectors in either case.

svn path=/trunk/; revision=18078
2006-05-02 19:58:19 +00:00
Anders Broman
b7f54f3e5a Makefiles for OMA UserPlane Location Protocol packet dissection..
svn path=/trunk/; revision=18077
2006-05-02 19:48:03 +00:00
Anders Broman
6cdc37b8b9 Add OMA UserPlane Location Protocol packet dissector
svn path=/trunk/; revision=18076
2006-05-02 19:44:12 +00:00
Anders Broman
0fdfab9fc6 MSVC is picky about assignments in declarations.
svn path=/trunk/; revision=18074
2006-05-02 19:07:38 +00:00
Guy Harris
25bead5edf Not all compilers support unnamed struct/union fields within
structs/unions (GCC supports it "for compatibility with other
compilers"; presumably that's not for compatibility with the version of
Sun C that rejected it - was that a PCCism?).

svn path=/trunk/; revision=18072
2006-05-02 18:02:08 +00:00
Gilbert Ramirez
e3899ed4a4 Add infrastructure for display filter functions.
Add upper() and lower() display filter functions for string fields.

svn path=/trunk/; revision=18071
2006-05-02 14:26:17 +00:00
Ronnie Sahlberg
7edd136c88 implement decryption of and dissection of
EncKrbCredPart

Packet 18 in sample capture kerberos-Delegation.zip on the wiki contains this structure.



svn path=/trunk/; revision=18069
2006-05-02 08:42:19 +00:00
Guy Harris
c52a72703d Add newlines to the ends of the files.
svn path=/trunk/; revision=18068
2006-05-02 07:56:21 +00:00
Guy Harris
30820fa73e Include <epan/strutil.h> to define g_ascii_isprint() on systems with
GLib 1.2[.x].

svn path=/trunk/; revision=18061
2006-05-01 17:43:29 +00:00
Graeme Lunt
f48115ba5c Operation request/result correlation and timing.
svn path=/trunk/; revision=18058
2006-05-01 10:17:59 +00:00
Anders Broman
2ebbe973de Use the asn2eth generated ldap dissector.
svn path=/trunk/; revision=18057
2006-05-01 10:04:10 +00:00
Graeme Lunt
759203ed61 Preference to disable BER length sanity check (needed for asn2eth LDAP dissector).
svn path=/trunk/; revision=18056
2006-05-01 09:26:40 +00:00
Ronnie Sahlberg
d1da7d875d MS KDC sends a PA_DATA with a magic salt containing an nt status code also for ERR_BADOPTION which can be seen in the constrained-delegation.zip capture on the wiki sample captures page.
svn path=/trunk/; revision=18055
2006-05-01 08:48:33 +00:00
Guy Harris
098facb0f7 It's g_strdup_printf(), not g_sprintf_alloc().
Declare "error", and properly terminate a string.

svn path=/trunk/; revision=18054
2006-05-01 08:09:39 +00:00
Ronnie Sahlberg
9c18c35c38 remove a test for NULL we dont need since itlq can not be null here and thus we
dont need to test for it.

this unnecessary test for itlq==NULL was shown by coverity issue 151



svn path=/trunk/; revision=18052
2006-05-01 07:32:09 +00:00
Guy Harris
0dfbc73cbe Handle the case where we *can't* determine the pathname in which to find
programs, by reporting it with a dialog box that at least attempts to
indicate what the problem is, and by giving up early on running dumpcap.

svn path=/trunk/; revision=18051
2006-05-01 06:51:14 +00:00
Guy Harris
56728f40ed Have "pdu_store_sequencenumber_of_next_pdu()" return the newly-allocated
"struct tcp_multisegment_pdu"; that lets it be used in one case where
the code in it was duplicated.

Make "desegment_tcp()" loop rather than recursing - not all compilers
will necessarily recognize the tail recursion.

Catch heuristic dissectors that reject a packet but also request
(whether deliberately or accidentally) that more data be added.

svn path=/trunk/; revision=18050
2006-05-01 02:32:16 +00:00
Guy Harris
5179074cd1 UDP and SCTP aren't byte-stream protocols, so they don't offer TCP-style
reassembly.  UDP has no notion of reassembly - that's done at the IP
layer - and SCTP has its own notions of reassembly which it currently
doesn't provide.  As such, TCP-style reassembly isn't possible for
JXTA-over-UDP or JXTA-over-SCTP.

As for TCP, a heuristic dissector for a TCP-based protocol can't request
more data if it's rejecting a packet; make it not do so.  That should
fix the recent buildbot crash, although there are still some reassembly
problems with that capture (c05-http-reply-r1.pcap.gz in the menagerie
and on the SampleCaptures page of the Wiki) that aren't fixed yet.

svn path=/trunk/; revision=18049
2006-05-01 02:28:01 +00:00
Graeme Lunt
84764fec29 Operational Attributes and Syntaxes
svn path=/trunk/; revision=18048
2006-04-30 12:53:26 +00:00
Jaap Keuter
1ce378de2a Fix for bug 881. Adding processing of error packet when server greeting is expected.
svn path=/trunk/; revision=18047
2006-04-30 10:33:36 +00:00
Ronnie Sahlberg
0c1d1e600f tcp reassembly updates
use tcp_multisegment_pdu and se_tree_lookup32_le()   to track pdu boundaries for tcp reassembly just as this structure is used for the same purpose when reassembly is not enabled.

get rid of a hashtable and two memchunks we no longer need
tcp_segment_table    tcp_segment_key_chunk and   tcp_segment_address_chunk


This makes tcp reassembly work for out-of-order segments   as well as when reassembly completes in one segment and when the tail of the segment contains the head of the next pdu  which we did not handle before.


tcp reassembly should be much better and efficient now    modulo introduced regressions.




svn path=/trunk/; revision=18046
2006-04-30 10:27:55 +00:00
Guy Harris
bb0bd36d00 Constify some stuff, to eliminate compiler warnings and to make a table
that isn't written const.

svn path=/trunk/; revision=18044
2006-04-30 09:14:42 +00:00
Guy Harris
075dac4aad No C++/C99 comments, please (GCC warns about them in the Solaris
buildbot build, even though the code is #if 0'ed out).

svn path=/trunk/; revision=18043
2006-04-30 08:59:26 +00:00
Guy Harris
fe6af4d65d Add some simple sanity checking of BVLC packets, so if you're unlucky
enough to have a non-BVLC packet from or to port 47808, we're likely to
reject it and let another dissector try it.  Fixes bug 855 (in which an
MS Messenger packet was unlucky enough to have come from that port).

Add value_string tables to some fields, and just use
proto_tree_add_uint() to add them to the protocol tree, rather than
generating our own text for them.

svn path=/trunk/; revision=18033
2006-04-29 18:54:54 +00:00
Guy Harris
f3d1963924 Clean up indentation; use 2-space indentation throughout.
Save the media encoding name in the transport_info_t structure rather
than in a global variable.  Allocate it with tvb_get_ephemeral_string()
so it's released after the packet is completely processed.  Do *NOT*
assume it's necessarily non-null in decode_sdp_fmtp(), as the code flow
doesn't guarantee that to be true.

proto_tree_add_string() now suffices for adding a particular SDP item -
strings are now displayed "safely", with escaping of non-printable
characters done.

Update a comment (we no longer have the Big Transfer Vector to allow
plugins to call dissector functions in Windows, we have those functions
in a DLL).

svn path=/trunk/; revision=18031
2006-04-29 17:31:20 +00:00
Jörg Mayer
8661cd1846 chrisaudley@yahoo.com:
Patch to fix:
[Bug 904] FIX protocol dissector missing some message types


svn path=/trunk/; revision=18030
2006-04-29 15:25:44 +00:00
Guy Harris
e5d0659195 A dissector called from tcp_dissect_pdus() has to return void. (If you
want to have a dissector capable of rejecting packets, you need to
reject the packet before you call tcp_dissect_pdus() - once you're doing
reassembly, etc., it's too late to reject the packet.)

svn path=/trunk/; revision=18029
2006-04-29 09:30:09 +00:00
Anders Broman
13d178a3fc Check Payload type before dissecting fmtp parameters.
svn path=/trunk/; revision=18028
2006-04-28 21:42:18 +00:00
Anders Broman
039e39d8b4 Fix bug 896 by using tcp_dissect_pdus() .
svn path=/trunk/; revision=18027
2006-04-28 21:41:13 +00:00
Gerald Combs
e58dbf5e91 Fix logic used to test protection under Windows OT. Only initialize
our page size and OS version information once.

svn path=/trunk/; revision=18025
2006-04-28 16:40:39 +00:00
Ronnie Sahlberg
703869d3d6 tcp analysis updates to prepare for later tcp reassembly updates
now that we have se_tree_lookup32_le   we can do the tracking of pdu boundaries much more efficiently.

track pdu boundaries by a new  tcp_multisegment_pdu  structure that is indexed by sequence numbers and let this structure replace the older tcp_next_pdu structure.

with se_tree_lookup32_le  we no longer need to track segment by segment and can get rid of the two hash tables
tcp_pdu_tracking_table
tcp_pdu_skipping_table
Neither do we need the tree   tcp_pdu_time_table anymore so that one is gone as well.

remove various other functions that are no longer needed due to removing the structure and the tables/tree


this part of the code shoul;d be much more readable now   and also a bit faster



svn path=/trunk/; revision=18024
2006-04-28 09:44:02 +00:00
Guy Harris
d44c620df0 Don't change rflags for any properties other than
IEEE80211_RADIOTAP_FLAGS.

svn path=/trunk/; revision=18022
2006-04-28 06:29:19 +00:00
Guy Harris
4a84a894d9 This was completely broken, as the "length" variable actually reflected
the amount of data left in the radiotap header after the fields we've
processed so far, not the total length of the header, so it couldn't be
used to skip past the radiotap header and get a tvbuff of the packet
data.  Fix that.

svn path=/trunk/; revision=18020
2006-04-27 19:58:32 +00:00
Guy Harris
89ff9ef701 From Diego Petteno and Daniel Black: add more libraries to the list of
libraries with which we link libethereal, fixing the reopened bug 878.

svn path=/trunk/; revision=18019
2006-04-27 19:12:50 +00:00
Gerald Combs
36b80f1043 Properly grow our buffers for utf_8to16().
svn path=/trunk/; revision=18017
2006-04-27 14:58:46 +00:00
Jaap Keuter
b1c230fb59 From Mark C. Brown:
The code was incorrectly bounds checking AndXOffset.  AndXOffset is only
relevant when AndXCommand is not 0xFF.  This patch corrects erroneous
"Malformed packet" exceptions.

svn path=/trunk/; revision=18015
2006-04-26 22:53:00 +00:00
Gerald Combs
301a5f1e32 If we're running under Windows 95/98/Me, don't abort if we can't protect
our guard pages.

svn path=/trunk/; revision=18011
2006-04-26 21:06:52 +00:00
Anders Broman
fd42a33307 Add dissection of MPEG4 fmtp parameter.
svn path=/trunk/; revision=18010
2006-04-26 20:16:57 +00:00
Jörg Mayer
dbbd8cd9a1 authesserre samuel <sauthess@gmail.com>:
The current ssl decryption code does not work for 3des session.
The attached patch fixes the problem.


svn path=/trunk/; revision=18004
2006-04-26 15:10:23 +00:00
Ronnie Sahlberg
1df4fecef5 add tracking of ndmp conversations and use this to track the version used if we have seen the CONNECT_OPEN request.
rename the preference to DEFAULT protocol version   to indicate it is only used for those conversation where we have not automatically detected the version used.




svn path=/trunk/; revision=18003
2006-04-26 09:40:49 +00:00
Ronnie Sahlberg
59f9aa6a8c NOTIFY_[DATA|MOVER]_HALTED requests no longer take an XDR string containing the reason for version 4 of ndmp and forward.
svn path=/trunk/; revision=18002
2006-04-26 07:58:45 +00:00
Anders Broman
f9468fe33f Add some more ANSI Message types and Parameters dissect ANSI cause.
svn path=/trunk/; revision=18000
2006-04-25 19:12:08 +00:00
Jörg Mayer
21ec14f314 Add a URL
svn path=/trunk/; revision=17995
2006-04-25 13:41:05 +00:00
Ronnie Sahlberg
2f08653337 rename some value_Strings from ..._val to ..._vals
svn path=/trunk/; revision=17991
2006-04-25 01:42:35 +00:00
Ulf Lamping
333633806c fix win32 build:
scsi_mmc_val					DATA
scsi_sbc2_val					DATA
scsi_ssc2_val					DATA

BTW: these values should be renamed to ..._vals as in every other dissector I know!

svn path=/trunk/; revision=17989
2006-04-25 01:00:16 +00:00
Ronnie Sahlberg
c8cc76e2e2 SCSI Service Response Time Staistics
svn path=/trunk/; revision=17984
2006-04-24 23:09:34 +00:00
Anders Broman
75b44d4de7 Preparations to include ANSI ISUP dissection.
svn path=/trunk/; revision=17981
2006-04-24 19:11:33 +00:00
Ronnie Sahlberg
acbaf3fe1f change the signature for dissect_scsi_snsinfo() to take itlq and itl structures
update the comment in packet-scsi.c   to reflect that it is the transport now that is responsible to track itl and itlq data

make scsi tapable

svn path=/trunk/; revision=17974
2006-04-24 08:16:18 +00:00
Guy Harris
47bb33f1cb Use 2-space indentation.
Clean up the checks for STP vs. RSTP vs. MSTP.

Show the version 3 length field as a separate field, rather than as the
top-level item for the MSTP stuff.

"Trust" the version 3 length field, so that if it doesn't agree with the
packet length, we report a malformed frame (as we should).

svn path=/trunk/; revision=17973
2006-04-24 05:04:30 +00:00
Guy Harris
45f4f65ba5 Use proto_tree_add_item() whenever possible; this simplifies the code,
and, in particular, means we don't, for example, use tvb_get_ntohs() to
fetch a 4-byte quantity - that fixes bug 883.

The MST config name is either null-terminated or null-padded; mark it as
such.

svn path=/trunk/; revision=17972
2006-04-23 20:14:33 +00:00
Guy Harris
1fda855c07 Export tvb_uncompress to plugins; fixes bug 893.
svn path=/trunk/; revision=17971
2006-04-23 19:13:48 +00:00
Guy Harris
9b639bacaa From Diego Petteno: link the shared libethereal against the ADNS
library.  If that's not done, it leaves to ethereal or other binaries
using it the job of linking adns within them.  This behaviour is
unreliable and breaks when using the --as-needed flag for GNU ld
(version 2.16 or better 2.17).

svn path=/trunk/; revision=17969
2006-04-23 18:50:58 +00:00
Ronnie Sahlberg
72adb19810 put some exchange tracking info in scsi CDBs and DATA pdus
svn path=/trunk/; revision=17957
2006-04-22 10:31:30 +00:00
Ronnie Sahlberg
e09c0cde8c add the spc commands to the mmc tables
svn path=/trunk/; revision=17956
2006-04-22 10:15:00 +00:00
Ronnie Sahlberg
351b882cbb add the spc commands to the smc and ssc tables
svn path=/trunk/; revision=17955
2006-04-22 10:00:05 +00:00
Ronnie Sahlberg
4e4e2f2406 add all supported SPC commands used by SBC to the SBC tables
svn path=/trunk/; revision=17954
2006-04-22 09:23:52 +00:00
Ronnie Sahlberg
a0f84a5726 start prettifying the dissection
make scsi responses also display the opcode in the info column


svn path=/trunk/; revision=17953
2006-04-22 04:42:07 +00:00
Ronnie Sahlberg
e776696d14 the scsi transports (fc/fcp and iscsi) now track both itl and itlq
structures for scsi.

we no longer need the scsi_task_id structure passed by pinfo->private_data   so get rid of it.

we no longer need the (broken by design) scsi_task_data   hash table   since this has been replaced byt hte itl and itlq structures and tracking




svn path=/trunk/; revision=17952
2006-04-22 02:16:52 +00:00
Ronnie Sahlberg
73e65216bc remover the lun parameter from dissect_scsi_cdb/payload since this is now part of the exchange data in itlq
remove the two fields opcode and devtype from the scsi_task_data structure since these are also part of the itlq and itl structures



svn path=/trunk/; revision=17949
2006-04-21 22:00:38 +00:00
Anders Broman
aa6ce770d0 From Jeff Morris:
I tried out the 0.99.0pre1 release and I noticed that all my SCCP management messages (on SSN==1) were getting decoded as TCAP.  Turns out that the INAP dissector (due to a bug) registers to SSN==1 by default (instead of 106 and 241).  Rather than just fix that bug, the attached patch modifies the INAP dissector to use a range preference (like GSM MAP, TCAP, etc.).


svn path=/trunk/; revision=17945
2006-04-21 18:11:20 +00:00
Jaap Keuter
65ab879c00 From Chris Maynard:
Using the attached patch, this file was generated via "File -> Export -> as XML
- "PDML" (packet details) file ...".  As can be seen in the file, the 1st
packet now contains the value for the "media", whereas previously it did not.

svn path=/trunk/; revision=17943
2006-04-21 15:10:27 +00:00
Ronnie Sahlberg
60e65f4869 updates to get the fc and scsi dissectors
and get rid of some breakage in the design


let the scsi transport keep track of itl (initiator, target, lun) matching
and let it pass a itl structure to scsi   that is persistent across packets.

let scsi use this itl structure to track device type for a specific itl instead of the (must have been) broken hashtable.

update both iscsi and fc to track the itl structure for scsi and schange the scsi signature to accept itl as a parameter.


more to come.



svn path=/trunk/; revision=17942
2006-04-21 11:08:24 +00:00
Jaap Keuter
ada5c36ff3 From: Shashidhar Bhandare
I have added ISUP dissector support for decoding four ANSI ISUP messages for decoding: CRM, CRA, CVT and CVR

svn path=/trunk/; revision=17939
2006-04-20 21:17:18 +00:00
Jaap Keuter
947ae3c301 From Mark C. Brown:
Small patch to set the direction correctly.

svn path=/trunk/; revision=17934
2006-04-20 20:29:57 +00:00
Anders Broman
4447785ed7 Add some more Media types.
svn path=/trunk/; revision=17927
2006-04-20 15:24:04 +00:00
Anders Broman
5bf31ac5bd Fix bugs:
883 checkIMEIres dissection Error in GSM MAP - branch needed for v1,v2 on Response as well
884 The "absentSubscriberParam" can not be dissected in gsm-map - missing IMPLICIT.

svn path=/trunk/; revision=17926
2006-04-20 15:23:17 +00:00
Jaap Keuter
1c68c4b581 From Hannes Gredler:
attached a patch to display LMP bandwith values in Mbps format
rather than the Byte/s format which is IMO a bit awkward to read.

svn path=/trunk/; revision=17923
2006-04-20 10:55:06 +00:00
Ronnie Sahlberg
2b2f2e3f03 rename hte itlq structures to itlq
svn path=/trunk/; revision=17922
2006-04-20 09:43:56 +00:00
Ronnie Sahlberg
a72d39bb05 rename the fc_exchange_data structure to the more appropriate itlq_nexus_t
svn path=/trunk/; revision=17921
2006-04-20 09:16:09 +00:00
Guy Harris
fd1cec8917 Rename "make-reg-dotc" to "make-dissector-reg", and do the same for the
Python versions, as it no longer makes only "register.c", it can also
make a "plugin.c" file for a plugin.

When making "plugin.c", there's no need to include "register.h", as it's
not defining any functions declared there.

svn path=/trunk/; revision=17919
2006-04-20 02:21:28 +00:00
Anders Broman
746598b9e9 From Martin mathieson:
While looking at bug 882 (which seems to have been fixed since 0.10.14) I noticed the RTCP heuristic dissector wasn't picking up the frame.

This patch fixes the parenthesis to test the packet-type properly.

svn path=/trunk/; revision=17914
2006-04-19 19:45:56 +00:00
Anders Broman
02821ce8e5 From Karsten P. Hoffmann:
The 'info'-part should display the invoke id of confirmed service as well, since it is much easier to match request and reply without typeing any filter rules or so. 

svn path=/trunk/; revision=17913
2006-04-19 19:28:11 +00:00
Anders Broman
a70b907c4a Handle 64bits signed/unsigned integers and get rid of some extra LF:s.
svn path=/trunk/; revision=17911
2006-04-19 18:59:29 +00:00
Anders Broman
7fcc6f767b Add some applications
svn path=/trunk/; revision=17910
2006-04-19 18:58:13 +00:00
Guy Harris
0c873b006a Update comments.
Fix the Makefile.nmake files to pass the output type argument to
make-reg-dotc or make-reg-dotc.py.

Make tools/make-reg-dotc executable.

svn path=/trunk/; revision=17904
2006-04-19 09:52:23 +00:00
Guy Harris
008d0d6c00 Have make-reg-dotc and make-reg-dotc.py generate either a register.c for
libetheral or a plugin.c for a plugin, rather than having plugin.c for a
dissector call the routines from register.c.  This means we don't ahve
multiple register_all_protocols() and register_all_protocol_handoffs()
routines, and that all the plugin boilerplate is automatically
generated.

svn path=/trunk/; revision=17903
2006-04-19 09:26:16 +00:00
Jaap Keuter
583f9e5436 Fix for bug 875. Adding description for groups 19-26.
svn path=/trunk/; revision=17895
2006-04-18 11:52:28 +00:00
Jaap Keuter
96d739b790 From W. Borgert:
Currently, the filename IOR.txt is hardcoded into ethereal.
The patch allows the user to change it. Thanks for applying!

svn path=/trunk/; revision=17894
2006-04-18 10:04:18 +00:00
Anders Broman
375ba77274 From Martin Mathieson:
These patches:
- fix the bounds errors reported by coverity in bug 879
- fix a couple of other potential bounds errors (length checking 1st & 2nd lines in file)
- reorder catapult_dct2000_phdr so that normal protocol pseudo-header info is at the start.  This means that the stub dissector can avoid the nasty
(overlapped) memcpy
- a little whitespace fixing

svn path=/trunk/; revision=17886
2006-04-17 18:46:14 +00:00
Jaap Keuter
b59ad33b63 From Thomas Anders:
- allow DHCP option 43 suboption 8 (OUI) for CableLabs clients to be a 6-byte string (as required for DOCSIS CMs) to 
  account for inconsistencies in different CableLabs specifications
- add new DHCP option 60 fields 0x0d (IP Filters Support) and 0x0e (LLC Filters Support) for CableLabs DOCSIS 2.0 CMs
- rename PKT_CM_* variables to have a DOCS_CM prefix instead (overdue, as indicated by an existing comment)
- update specification references

svn path=/trunk/; revision=17884
2006-04-17 08:38:08 +00:00
Guy Harris
8d17de8776 make-reg-dotc and make-reg-dotc.py were moved.
svn path=/trunk/; revision=17882
2006-04-17 02:11:04 +00:00
Guy Harris
e7d75a821d Move "make-reg-dotc" and "make-reg-dotc.py" to the "tools" directory, so
that it can more easily be used when building plugins.

svn path=/trunk/; revision=17881
2006-04-17 00:41:54 +00:00
Anders Broman
1c26abfe29 From W. Borgert:
the attached patch enables the explicit GIOP dissection. This fixes erronous decoding, if methods of two different CORBA interfaces have the same name, which happens frequently.

The generated GIOP plugins (CosEvent, CosNaming, Parlay, Tango) need to be re-generated to make use of the fix.

svn path=/trunk/; revision=17880
2006-04-16 23:16:46 +00:00
Anders Broman
7d61c89d91 Calculate Timezone correctly fixes http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=876
svn path=/trunk/; revision=17878
2006-04-16 22:48:47 +00:00
Jaap Keuter
12de0d5145 From Steve Karg:
1) BACnet signed values were being decoded incorrectly for negative
values since BACnet tries to be clever and minimizes the number of bytes
sent on the wire and drops the leading FF on negative values.  For
example, -200 is passed as FF 38 on the wire, but would display as 65336.
2) Since the BACnet unsigned values were decoded using a 64-bit entity,
I changed the decoding such that allows all 8 bytes to be decoded.  The
function can now decode 5, 6, and 7 byte values.
3) Corrected warning about signed/unsigned in a pointer parameter.

svn path=/trunk/; revision=17877
2006-04-16 22:03:04 +00:00
Guy Harris
f45378f3bc Squelch a compiler warning.
svn path=/trunk/; revision=17876
2006-04-16 22:00:11 +00:00
Anders Broman
1d1cf3790a bssgp - handle LLC PDU of 0 length.
Gsm_a - radio pri included in Modify PDP context request.

svn path=/trunk/; revision=17875
2006-04-16 19:14:21 +00:00
Guy Harris
1fddaf0211 The code to read hcidump files sets the p2p pseudo-header for
WTAP_ENCAP_BLUETOOTH_H4.

svn path=/trunk/; revision=17874
2006-04-16 10:54:32 +00:00
Ulf Lamping
cb1f23eecc fix #865: if the timestamps fraction (m/u/nsec) of a packet is out of range (<0 or >1000000000) add a generated line to the protocol tree and a corresponding expert info entry
A special marker in the packet list would be too much effort to implement

svn path=/trunk/; revision=17865
2006-04-14 13:32:03 +00:00
Anders Broman
75f2454646 SVN properties...
svn path=/trunk/; revision=17864
2006-04-14 13:12:13 +00:00
Anders Broman
af554c2f75 From Martin Mathieson:
patch and new files provide support for Catapult DCT2000 
.out files to wiretap and ethereal.

This wiretap support (catapult_dct2000.c+h) appends a short header to 
each packet giving some context, and a corresponding ethereal dissector 
(packet-catapult-dct2000.c) parses this before passing the real payload 
onto an existing ethereal dissector (for ethernet, ip, lapd, ppp, 
frame-relay,...).

For now, there is only support for saving dct2000 files in their own 
format, although I may add support for converting between dct2000 and 
libpcap later.

updated version of these files and patch, now with support 
for MTP2.  Olivier's trace used the ANSI variant - the MTP2 and MTP3 
decode fine with the right preferences set (although the ISUP dissector 
reports a reserved/retired message type).

Witha a change to NOT to declare gboolean catapult_dct2000_board_ports_only;
as extern as MSVC choked on it.

svn path=/trunk/; revision=17862
2006-04-14 12:41:06 +00:00
Anders Broman
f92ed70a3f From Martin Mathieson:
-  Also show vpi/vci in info column 

svn path=/trunk/; revision=17859
2006-04-13 22:30:20 +00:00
Anders Broman
93e95ca62b From Frederic Roudaut:
I updated my previous patch of ESP :

* It now check authentication for (similar to the ICMP checksum):

- NULL Authentication
- HMAC-SHA1-96 [RFC2404]
- HMAC-SHA256
- HMAC-MD5-96 [RFC2403] (2)

I put aside AES-XCBC-MAC-96 [RFC3566] because I did not succeed to have 
a working implementation.
I added a field for any authenticator of 12bytes length (without 
authentication process)

* I also correct the printing of this authenticator field which was 
decrypted :-[ .


Thus, with this patch  if libgcrypt is linked withe ethereal you should 
have the availability to :
- decrypt packets
- check authentication
 at the same time or not.
If noone of these options are set (or libgcrypt is not available) you 
also may use the previous heuristic.

svn path=/trunk/; revision=17858
2006-04-13 22:26:13 +00:00
Guy Harris
336cc54807 Pass the right tree argument to the DOCSIS dissector if "treat all
frames as DOCSIS" was selected.  Fixes bug 872.

svn path=/trunk/; revision=17856
2006-04-13 19:06:52 +00:00
Anders Broman
ae3b5c3766 Fix bug 597:
- Add TCP reassembly to get the proper packet length
- Add "result = check_ucp(tvb, &endpkt);" in dissect_udp_commong to fill some variables used.

svn path=/trunk/; revision=17843
2006-04-08 13:03:18 +00:00
Ulf Lamping
01ee2cc369 set SVN properties correct "when will I ever learn" :-(
svn path=/trunk/; revision=17842
2006-04-08 00:20:00 +00:00
Ulf Lamping
4196c4c80f add packet-dcom-dispatch.h
svn path=/trunk/; revision=17841
2006-04-08 00:17:51 +00:00
Ulf Lamping
384c960017 bring HRESULT values in the right order
svn path=/trunk/; revision=17840
2006-04-07 22:05:34 +00:00
Ulf Lamping
69f822f177 some of the CBA interfaces are actually derived from IDispatch, dissect the methods accordingly
svn path=/trunk/; revision=17839
2006-04-07 22:03:58 +00:00
Ronnie Sahlberg
9481eac669 make dissect_scsi_rsp() take an exchange structure as parameter instead of just a lun.
this finally allows us to have scsi.time  for scsi transactions   but we need to cleanup and refactor the other three scsi entrypoints before we should implement scsi srt    to make the other three also take an exchange data structure as parameter from their transports (and get rid of the pinfo->private_data )


svn path=/trunk/; revision=17838
2006-04-07 10:15:15 +00:00
Anders Broman
5683612f36 Fix bug 851
svn path=/trunk/; revision=17837
2006-04-06 20:50:48 +00:00
Jaap Keuter
cdc0de3de5 Better read NTP LSW from the right spot
svn path=/trunk/; revision=17836
2006-04-06 20:47:22 +00:00
Jaap Keuter
0834b09ca2 From: Martin Mathieson
- fixes bug 863 (RTCP sender report's NTP time display incorrect - use using wrong bytes)
- makes NTP timestamp MSW and LSW proper filterable fields, displaying them in dec and hex
- when doing roundtrip calculations, rationalise fields added, add link to LSR frame whenever it matches

svn path=/trunk/; revision=17834
2006-04-06 13:30:45 +00:00
Ronnie Sahlberg
2fbe952694 change iscsi to track transaction data in a fc_exchange_data structure just as the fc / fcp transport does.
while reusing this structure for multi-purpose would make it berret suited to move the struct from packet-fc.h to packet-scsi.h
we would have to include packet-scsi.h   for everyone that includes packet-fc.h  and that are a few dependencies.
(would have to include it even in packet-llc.c)

so leave it as a fc structure for now.




svn path=/trunk/; revision=17833
2006-04-06 11:05:18 +00:00
Ronnie Sahlberg
26bbda330d remove the hashtables for pdu tracking and replace with an se_tree
indexed by itt


svn path=/trunk/; revision=17832
2006-04-06 10:41:49 +00:00
Ronnie Sahlberg
ab6c16c365 attach the iscsi_session to the conversation instead of using a hashtable to map conversation to iscsi_session.
use the pointer to iscsi_Session  as conversation index for the exchange tracking for now,   it works just as well   and will be replaced with better exchange tracking shortly  anyway



svn path=/trunk/; revision=17831
2006-04-06 09:47:31 +00:00
Ronnie Sahlberg
2536bbc863 get rid of a field we are not using
svn path=/trunk/; revision=17830
2006-04-06 09:16:10 +00:00
Ronnie Sahlberg
0257503efc add a field for storing the scsi opcode in the exchange struct.
it is silly that scsi has to track these things itself  when all the transports
already keep track of exchanges.

the scsi transports should all use the fc_exchange_data structure to pass lun to scsi and where scsi kan store the opcode between requests and data/response packets




svn path=/trunk/; revision=17829
2006-04-06 08:33:08 +00:00
Ronnie Sahlberg
4aa5a68788 use the fc exchange structure to track LUN values from fcp command all the way through to the response
and get rid of the broken hashtable used for the same purpose previously.

some additional cleanups.


svn path=/trunk/; revision=17827
2006-04-06 03:15:16 +00:00
Ronnie Sahlberg
507b3a384f use the fc exchange data to track fcp response times
svn path=/trunk/; revision=17826
2006-04-06 02:46:41 +00:00
Ronnie Sahlberg
33af09f927 make fc pass the fchdr structure as pinfo->private data to higher layer protocols
svn path=/trunk/; revision=17825
2006-04-06 02:15:41 +00:00
Ronnie Sahlberg
ec77d1cc28 remove another field from a structure that we never use.
svn path=/trunk/; revision=17824
2006-04-06 02:04:22 +00:00
Ronnie Sahlberg
dd62a0f458 remove a field we no longer use in this dissector from the conversation structure.
svn path=/trunk/; revision=17823
2006-04-06 01:17:36 +00:00
Ronnie Sahlberg
a72a698985 move conversation tracking out from the type specific subdissectors and track them in the main entry point for the protocol dissector instead.
this is semi-temporary though since FCP will always sit ontop of FC which also tracks the same conversations  so there is no need to do a redundant conversation tracking in fcp itself.



svn path=/trunk/; revision=17822
2006-04-06 01:16:23 +00:00
Ronnie Sahlberg
26f24ec097 decode the first two bytes of the negotiate protocol request as buffercode
svn path=/trunk/; revision=17821
2006-04-05 23:33:35 +00:00
Ronnie Sahlberg
fb2cf0df34 from metze
dissect smb2 break responses   used by a server to break an oplock


these unsolicited responses are sent with a commandseqnum of -1   so mark these in the header as unsolicited as well



svn path=/trunk/; revision=17820
2006-04-05 21:38:41 +00:00
Michael Tüxen
083cda3e63 Update PPIDs to latest IANA regsitration status.
svn path=/trunk/; revision=17819
2006-04-05 20:24:48 +00:00
Anders Broman
5426b944ee Expand some value strings, get map_error from gsm_map use the added IE's.
svn path=/trunk/; revision=17818
2006-04-05 18:54:43 +00:00
Anders Broman
d66ccda16a Add some IE:s
svn path=/trunk/; revision=17817
2006-04-05 16:05:29 +00:00
Anders Broman
ba35e5d4d9 Frof Jeff Morriss:
The attached patch adds support for the Japan SS7 variants (TTC/NTT) to 
the MTP3, MTP3MG, SCCP, and SCCPMG dissectors.  It's not as thoroughly 
implemented nor tested as I'd like, but it does a good job of at least 
the basic dissection and I'm out of time for now.

It also fixes bug I found in the SCCP dissector where it would show an 
End of Optional parameter even when the Optional pointer was 0.

svn path=/trunk/; revision=17815
2006-04-05 16:03:36 +00:00
Ronnie Sahlberg
5e89308fe3 from previous commit
dont dereference cdata null pointer


svn path=/trunk/; revision=17814
2006-04-05 10:07:49 +00:00
Ronnie Sahlberg
4a8bcee67f create the protocol tree in the main function and not down in the individual helper functions
svn path=/trunk/; revision=17813
2006-04-05 09:51:14 +00:00
Ronnie Sahlberg
342c290c42 remove some crap
svn path=/trunk/; revision=17812
2006-04-05 08:58:16 +00:00
Ronnie Sahlberg
a9f636b41d imake fcp responses that do carry a scsi response code
call the scsi response dissector as well
(so that eventually we can do things like SRT for SCSI)


it doesnt work yet since fcp is using some incredibly broken logic to
track state between frames.

the cdata stuff can just not ever work exscept for single scan tethereal dissection.
is there noone at all looking at these protocols wioth ethereal?
has noone noticed it is completely broken yet?


sigh,    soon   i think i will be able to add the originally estimated trivial to implement   SCSI SRT



svn path=/trunk/; revision=17811
2006-04-05 08:51:45 +00:00
Ronnie Sahlberg
6fd403ee95 make reportluns use the new macros to catch and flag alloclen truncation
svn path=/trunk/; revision=17810
2006-04-05 07:25:57 +00:00
Ronnie Sahlberg
d06fea3fa6 cleaning up bits and pieces
replacing the hashtables with a better exchange   se_tree



svn path=/trunk/; revision=17809
2006-04-05 05:51:51 +00:00
Anders Broman
0d4dbda02b Add a dissector for Nortels LGE Monitor protocol.
svn path=/trunk/; revision=17808
2006-04-05 05:05:42 +00:00
Ronnie Sahlberg
1808675f72 add dissection of the fcp response bidir read residual field
svn path=/trunk/; revision=17807
2006-04-05 01:17:32 +00:00
Ronnie Sahlberg
a7dd0aeac8 move some arrays from the header to fcp.c
svn path=/trunk/; revision=17806
2006-04-04 22:22:18 +00:00
Ronnie Sahlberg
cd7baad861 refactoring of the fcp response dissector
add missing flags to the dissection   and during refactoring fix several things that just can not have worked previously.




svn path=/trunk/; revision=17805
2006-04-04 22:21:48 +00:00
Ronnie Sahlberg
0283e3ab17 major refactoring of the ifcp dissector.
remove the port preference setting and replace it with strong heuristics instead
(attempt but fail to set a conversation dissector when the heuristics and the dissection match)

use tcp_dissect_pdus() for reassembly and pdu tracking and get rid of the try-to-step-through-the-pdu-to-find-where-the-next-pdu-starts thing.




svn path=/trunk/; revision=17804
2006-04-04 11:58:56 +00:00
Ronnie Sahlberg
94f416ca62 fix for bug #856
dont try to lookup a NULL string since this string will be dereferenced
in the ghashtable   hash callback



svn path=/trunk/; revision=17802
2006-04-04 07:53:39 +00:00
Ronnie Sahlberg
ab9b2e6836 dislay a flags field as "Flags" instead of "SCCS Flags"
svn path=/trunk/; revision=17801
2006-04-03 20:39:55 +00:00
Ronnie Sahlberg
54d8591809 use col_set_fence() after we have populated the info column with the SCSI details so that if there are other pdus followinf this scsi pdu in the packet they will not overwrite it
svn path=/trunk/; revision=17800
2006-04-03 20:29:53 +00:00
Ronnie Sahlberg
5ee1c8d1e4 add dissection of the inq sync flag
sort the entries in scsi_verdesc_val   so it is easier to add missing entries


svn path=/trunk/; revision=17799
2006-04-03 20:12:24 +00:00
Anders Broman
e47e1c864d Fix bug http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=850 problems with tagged assignments.
Add som OID names. 

svn path=/trunk/; revision=17798
2006-04-03 19:07:52 +00:00
Gerald Combs
34335a2bc1 Add a null pointer check. Fixes the current Buildbot menagerie failure.
svn path=/trunk/; revision=17797
2006-04-03 14:44:56 +00:00
Ronnie Sahlberg
10a0fd2105 a krb_error pdu with the error_code ERR_CLIENT_REVOKED
issued by ms kdc contains a PA_DATA structure with a salt that contains an
nt_status code explaining why the client was not allowed to get a (tgt) ticket



svn path=/trunk/; revision=17796
2006-04-03 08:55:04 +00:00
Ronnie Sahlberg
f886744b64 further prettification of the inq dissector.
further refactorinf of  the scsi  alloc_len macros



svn path=/trunk/; revision=17795
2006-04-03 08:20:54 +00:00
Ronnie Sahlberg
700a7f527a dissect byte 7 of the inq response
svn path=/trunk/; revision=17794
2006-04-03 03:19:52 +00:00
Ronnie Sahlberg
0f1f0c8d8a add dissection of byte 6 of inq response
(except fopr 3 bits that only exist for pscsi)


svn path=/trunk/; revision=17791
2006-04-03 02:40:07 +00:00
Ronnie Sahlberg
d5585760e7 add dissection of the flags in byte 5 of the inquiry response
svn path=/trunk/; revision=17788
2006-04-03 01:44:56 +00:00
Ronnie Sahlberg
ae66a76a1a prettify dissection of the aca flags byte in the inq response data.
add dissection of two additional bits and the respdataformat bitvield

add booleans for the filter fields

make all the fields filterable



svn path=/trunk/; revision=17787
2006-04-03 00:55:21 +00:00
Ronnie Sahlberg
2376539aab the hash,name,fullname of an nfs filehandle are all
generated items

mark them as generated items in the dissect pane


svn path=/trunk/; revision=17785
2006-04-02 23:24:00 +00:00
Ronnie Sahlberg
695b605cbb change TRY_SCSI_SHORT_TRANSFER to use the allocation length specified in the CDB
instead of the allocation length from the data pdu   since sometimes the datapdu will be completely empty and thus we cant extract it from the data pdu.
(unclear if this is really allowed by scsi   but anyway)
this should make the scsi transfer length checking more correct.


update mmc  getconfiguration   and spc  inquiry  to use these macros
and flag these packets that are short due to a too small alloc_len
as truncated due to scsi  and not being short/malformed packets.


at the same time,  get rid of a few horrible   offset+x   in the inquiry dissector and replace with proper offset incrementation instead.





svn path=/trunk/; revision=17784
2006-04-02 22:50:46 +00:00
Ronnie Sahlberg
d9227587f0 prettify dissection of nfsv3 fattr3 structure
put useful info like type,mode,uid,gid on the expansion lines so we dont have to open the expansion to see these values.

allow it to push this info multiple expansion lines upward
and optionally (such as for GETATTR replies) put this info in the info column as well




svn path=/trunk/; revision=17783
2006-04-02 21:04:11 +00:00
Anders Broman
30ade25ed3 From Martin Mathieson:
Removes the use of the deprecated proto_tree_add_item_hidden() function

I was adding the 'msmms.command.unknown' field in lots of places (a 
habit of mine in my own dissectors), but this probably isn't useful.

svn path=/trunk/; revision=17782
2006-04-02 19:38:36 +00:00