Commit Graph

3183 Commits

Author SHA1 Message Date
Anders Broman a784b12150 If version is v6 let the IPv6 dissetor handle it.
svn path=/trunk/; revision=17649
2006-03-16 20:14:47 +00:00
Anders Broman cfbc70a648 Add some extension IE:s
- APN Restriction
 - RAT Type
-  IMEI(SV)

svn path=/trunk/; revision=17648
2006-03-16 20:13:17 +00:00
Jaap Keuter c673b2f4f1 Fixed skipCount decoding. Added "relevant function" tag and put relevant function into INFO column.
svn path=/trunk/; revision=17646
2006-03-16 17:47:45 +00:00
Jaap Keuter d3efbd7284 Superfluous check on 'secret' removed.
Coverity CID 31

svn path=/trunk/; revision=17645
2006-03-16 12:27:50 +00:00
Luis Ontanon 182553b988 From: Peter Johansson
have mtp3_pc_hash() explicitly returning pc.

From me:
 break; execution inside the switch.


svn path=/trunk/; revision=17643
2006-03-16 10:23:09 +00:00
Ronnie Sahlberg 107f59142d the new type of sid/rid structure is for lookupnames2 not lookupnames
svn path=/trunk/; revision=17642
2006-03-16 08:47:19 +00:00
Jaap Keuter 87212ed160 Add missing preference storage.
svn path=/trunk/; revision=17639
2006-03-15 21:22:11 +00:00
Anders Broman 61b223303a From Greg Morris:
Modification to (proto.h) is made to add an additional expert group type of PI_REQUEST_CODE to allow Request tag information to be passed to the expert tap. This is for such reasons where a dissector would like to echo specific information about certain types of requests. For example: NCP connection request is really a request not a REPLY_CODE. Same is true for the TCP SYN request.

Changes to packet-ncp.c
1. Server broadcast message flag. Now indicates if the message is a pending message or an oplock clear notification.
2. Cleanup of packet signature detection process. Previous method had some flaws so I redesigned it. Appears to be solid now.
3. Echo NCP Server Session information to expert tap.
 
Note on item #3: NCP Connection+Task = NCP Session, a Single connection can have many tasks. The server sees each connection/task as a unique session. For this reason the NCP session information is now echoed to the expert composite statistics so that you can easily identify the different NCP processes and sessions. It is important to NCP analysis to understand that each session is most likely a different program on the requesting host sharing the same NCP connection.
 
Changes to packet-ncp2222.inc
1. Comment out the echo of NCP connection info to expert tap. Replaced by NCP sessions.
2. Add displayEID in request decode (resolves Coverity defect for dead code in NCP dissector)
 
Changes to ncp2222.py
1. Fix for endian display of bindery object type in NCP 0x1720.
2. Fix for size of bindery object type to 2 bytes instead of 4 to match other bindery NCP's.

svn path=/trunk/; revision=17636
2006-03-15 18:56:35 +00:00
Anders Broman 522757cae0 from Martim Mattieson:
This small patch will cause the current AVP dictionary to be freed and 
repopulated when relevant preferences have changed.

svn path=/trunk/; revision=17635
2006-03-15 18:55:12 +00:00
Anders Broman c26db21d54 From RABRET Laurent RD-MAPS-ISS:
Please find enclosed a patch for the BGP dissector.
A 0 length IP address is valid in NLRI dissection. It just means "0/0 address".

svn path=/trunk/; revision=17634
2006-03-15 18:53:54 +00:00
Ronnie Sahlberg 5dd314e53a lookupnames2 takes a different sid structure compared to lookupnames
update it to dissect it as such and create new helpers for the new structure  that takes one extra guint32 at the end of the previous structure.


svn path=/trunk/; revision=17632
2006-03-15 08:26:21 +00:00
Anders Broman 38d4e1d0c8 From Motonori Shindo:
The code assumes Template FlowSet contains only one Template Record, which is not necessarily true. Please find attached the patch to fix it.

svn path=/trunk/; revision=17630
2006-03-15 06:19:15 +00:00
Anders Broman b69c251c80 From Martin Mathieson:
> This patch:
> - adds a few filterable fields (currently there are only hidden
> boolean fields for request and response).

svn path=/trunk/; revision=17629
2006-03-15 06:17:35 +00:00
Anders Broman c6a21a1d14 From Martin Mathieson
>>>This patch:
>>>- makes it possible to turn off use of the XML AVP dictionary (which 
>>>relies upon the XML lib being installed).  A failed load results in 3 
>>>annoying dialogs popping up the first time a diameter packet is read. 
>>>Default is previous behaviour.

svn path=/trunk/; revision=17628
2006-03-15 06:16:12 +00:00
Ronnie Sahlberg 329b915b66 coverity bug 139
actually allow dissection of RELEASE_LOCKOWNER call
instead of letting it hang as dead code



svn path=/trunk/; revision=17626
2006-03-14 08:11:18 +00:00
Ronnie Sahlberg 6ea1f1a77c coverity bug 68
prevent a very very long loop


svn path=/trunk/; revision=17625
2006-03-14 07:47:19 +00:00
Ronnie Sahlberg 2f37e2de15 coverity bug 44
svn path=/trunk/; revision=17621
2006-03-14 05:38:47 +00:00
Ronnie Sahlberg 0e46ae1dd6 handle coverity bug 36
svn path=/trunk/; revision=17620
2006-03-14 05:30:26 +00:00
Ronnie Sahlberg 877d757062 put the opcode as a generated field inside data pdus for scsi
svn path=/trunk/; revision=17619
2006-03-14 04:56:40 +00:00
Ronnie Sahlberg dd99a25837 prettifu getconfiguration response
svn path=/trunk/; revision=17618
2006-03-14 01:18:43 +00:00
Ronnie Sahlberg 0398f48341 set current_proto to SCSI so that the exception handler will show the correct protocol
fix length in getconfiguration()  so that we provide the proper one (+4)
to avoid marking valid packets as malformed.



svn path=/trunk/; revision=17616
2006-03-13 22:35:14 +00:00
Ulf Lamping 3048f90e45 remove a compiler warning
svn path=/trunk/; revision=17613
2006-03-13 22:19:36 +00:00
Ronnie Sahlberg cdf3a2b322 if tcp checksum validation is enabled
and if the checksum is wrong
and if the checksum field is 0x0000

mark the packet as [Checksum Offloaded] and still allow reassembly of
tcp segmetns


since it is most likely just a tco checksum offload engine and not a real checksum error



svn path=/trunk/; revision=17612
2006-03-13 20:50:50 +00:00
Ronnie Sahlberg edcaaee164 SCSI is fairly unique among the ethereal protocols in that it is sometimes normal for a PDU we receive back froma device to be truncated.
(report luns with allocation length 8 for example)

Therefore it is a bit wrong to mark these packets as [malformed packets]
Since they are truncated by scsi   and this is NOTY an error condition.


Add a new exception type  :  ScsiBoundsError
If this exception is caught by packet-frame, then print an appropriate message
instead of [malformed packet]

For SCSI, add helper macros TRY_SCSI_SHORT_PACKET   and END_...


If the packet was not short in the normal sense (snaplen < packetlen) then intercept the exception for BoundsError and rethrow it as ScsiBoundsError instead.





svn path=/trunk/; revision=17611
2006-03-13 10:29:00 +00:00
Anders Broman 11c3d3d90d From Ming Zhang
added another command preventallowmediaremoval besides those 3.

> enhanced packet-scsi.c a bit to decode 3 more scsi commands
> 
> getperformance
> setcdspeed
> readdiscstructure.



svn path=/trunk/; revision=17610
2006-03-13 06:23:59 +00:00
Ulf Lamping 297ed538fc mark parser error messages as Ethereal generated
svn path=/trunk/; revision=17593
2006-03-11 20:19:20 +00:00
Luis Ontanon cff34ee126 Close the files after reading!
svn path=/trunk/; revision=17591
2006-03-11 18:19:48 +00:00
Luis Ontanon 19f81800ba use se_trees instead of GHashTables,
rename binding into assoc(iation) which is the AOC name.
move the definition of sccp_assoc_t to packet-sccp.h so that information regarding sccp associations it can be used by user protocols



svn path=/trunk/; revision=17590
2006-03-11 15:30:52 +00:00
Ronnie Sahlberg 27de4cfd39 give se_trees names so that it is easier to debug and to log how often certain trees are accessed
svn path=/trunk/; revision=17587
2006-03-11 13:02:41 +00:00
Ronnie Sahlberg fb48a75091 remove some unusued parameters
svn path=/trunk/; revision=17586
2006-03-11 12:33:15 +00:00
Luis Ontanon 6e4aa06681 Avoid a coverity false positive (CID 38) from being considered.
svn path=/trunk/; revision=17585
2006-03-11 12:12:10 +00:00
Ronnie Sahlberg 90bec589e8 second try to fix the bug
svn path=/trunk/; revision=17583
2006-03-11 12:03:28 +00:00
Ronnie Sahlberg 662346cf94 the code forgot to update offset *offset++ is not the same as offset++ :-)
svn path=/trunk/; revision=17582
2006-03-11 12:00:59 +00:00
Luis Ontanon f7b7ade499 Mark coverity's CID 105 as a false positive.
(The macro GET_MSG_TYPE does propper bounds checking but coverity doesn't consider it (may not be able to resolve the ?: operator) )


svn path=/trunk/; revision=17581
2006-03-11 11:55:49 +00:00
Luis Ontanon 40f5303a8e replace GHashTables with se_trees
svn path=/trunk/; revision=17579
2006-03-11 11:45:36 +00:00
Ronnie Sahlberg 76a2df4a58 dont declare variables in the middle of a code block. many compilers do not like that.
svn path=/trunk/; revision=17573
2006-03-11 00:58:16 +00:00
Luis Ontanon e50663a09c Add a function that returns an unique guint32 for each dpc.
svn path=/trunk/; revision=17572
2006-03-10 22:05:23 +00:00
Luis Ontanon 4e1ca8f2c3 fix coverity CIDs 113 and 114.
while at it change the h248 context analysis to use se_trees instead of GHashTables


svn path=/trunk/; revision=17571
2006-03-10 22:01:10 +00:00
Anders Broman 281e4a7ebb Fix CID 6 - Unused code.
svn path=/trunk/; revision=17565
2006-03-10 07:06:21 +00:00
Ulf Lamping 854c700502 don't use g_message() inside dissector code
svn path=/trunk/; revision=17557
2006-03-09 21:18:44 +00:00
Olivier Biot f0c3253d6e Fix coverity Error CID: 15.
svn path=/trunk/; revision=17553
2006-03-09 16:21:39 +00:00
Gerald Combs 172556500d Remove MIN and MAX defines, which GLib provides.
svn path=/trunk/; revision=17551
2006-03-09 16:00:33 +00:00
Ronnie Sahlberg 6cdabceaca coverity #40
fix null dereference 

svn path=/trunk/; revision=17546
2006-03-09 11:44:56 +00:00
Ronnie Sahlberg 2872f8b94a coverity #5
bug causing cosmetic " " spaces to be missing between fields printed to the screen.


svn path=/trunk/; revision=17545
2006-03-09 11:34:08 +00:00
Anders Broman 8482a05592 Fix Bug 725:
0.10.14 shows "malformed packet" when showing H323 CS: FACILITY message with opcode "Calltransfer initiate" 

svn path=/trunk/; revision=17542
2006-03-09 06:02:42 +00:00
Tim Potter 89d7f897a2 Display more info for some PXE DHCP options:
- Display UUID for tag #97 (Client machine identifier)
  - Display UNDI major and minor version for tag #94 (Client network 
    interface identifier) 
  - Use value strings for tag #93 (Client system architecture)

The byte ordering is messed up for the GUID though.

svn path=/trunk/; revision=17541
2006-03-09 04:31:10 +00:00
Olivier Biot 5cd8dbd028 Fix Coverity issue CID: 14 in wkh_accept_encoding().
svn path=/trunk/; revision=17539
2006-03-08 22:52:31 +00:00
Gerald Combs d2c8d80b33 Fix a couple of compilation warnings.
svn path=/trunk/; revision=17538
2006-03-08 22:42:24 +00:00
Jaap Keuter e77c4cdfc4 Consolidate duration decoding and presentation
svn path=/trunk/; revision=17536
2006-03-08 21:48:36 +00:00
Ulf Lamping e147c558bf fix bug 772: and again, don't pass a NULL pointer to a printf like function on WIN32
svn path=/trunk/; revision=17535
2006-03-08 21:39:25 +00:00
Gerald Combs 9406c5db24 Use Unicode for all native Win32 calls. Unicode Windows applications
use UTF-16 internally and GTK+ 2.x uses UTF-8, which means we have to
do a lots of conversions.

Add utf_8to16() and utf_16to8 convenience functions to strutil.c.

svn path=/trunk/; revision=17534
2006-03-08 20:55:32 +00:00
Anders Broman def11f9418 CID4 and CID3 Change
if ((value >= 1) || (value <= 0x4a)) {

to  if ((value >= 1) && (value <= 0x4a)) {

svn path=/trunk/; revision=17533
2006-03-08 18:58:08 +00:00
Anders Broman b4d028c47e Fix:
Coverity CID19 Remove an uneccesarry line
CID20 Use the code from the asn2eth generated dissector while at it.

svn path=/trunk/; revision=17532
2006-03-08 18:56:13 +00:00
Tomas Kukosa 3b5ed30a0d better support for ASN.1 Enumerated type in PER decoding
support in asn2eth will follow

svn path=/trunk/; revision=17530
2006-03-08 13:50:04 +00:00
Ronnie Sahlberg 3cd2777adc fix minor bug coverity 74
length_remaining could become -1 and if so the next tvb access (tvb_memcpy()) would cause an exception.    not really an ethereal since it would have no ill effects in reality.



change !=0   to >0    to make it more clear what we actually test.




svn path=/trunk/; revision=17528
2006-03-08 11:09:02 +00:00
Luis Ontanon 6007c31402 Avoid passing junk to ssl_debug_printf fmt if a weird cipher is found ().
FIxes Coverity's run 14 CID 81


svn path=/trunk/; revision=17525
2006-03-08 10:53:12 +00:00
Ronnie Sahlberg b1a11016ec remove a redundant if statement
this if statement always evaluate to true since it is called from a single place that is only entered if the very same expression is also true there.




svn path=/trunk/; revision=17524
2006-03-08 10:51:33 +00:00
Ronnie Sahlberg 806a5c8d95 for really really weird malformed lanman packets it is theoretically possible
that trp is uniunitialized.



coverity bug 46



svn path=/trunk/; revision=17523
2006-03-08 10:36:28 +00:00
Luis Ontanon 8284947d84 Hide #line directives inside comments so that coverrity shows the errors it has found. It appears that Coverity doesn't look for source files but in the same dir where the generated file resides.
svn path=/trunk/; revision=17519
2006-03-08 09:49:31 +00:00
Ronnie Sahlberg d2ae498e21 coverity bug 73
dont call fragment_add   when len is -1 (or really really large if seen as a guint32)




svn path=/trunk/; revision=17518
2006-03-08 09:43:06 +00:00
Ronnie Sahlberg 9e6a992bd6 coverity turned up a false positive in cid 37
smb_info is guaranteed to always be non-NULL
so the test for !=NULL (which triggered coverity) is redundant



svn path=/trunk/; revision=17517
2006-03-08 09:03:10 +00:00
Ronnie Sahlberg b4c4d56509 remove some harmless but redundant code
coverity  cid 31


svn path=/trunk/; revision=17516
2006-03-08 08:35:13 +00:00
Ronnie Sahlberg ed9d4d16c7 potential dereference of null pointer
coverity cid 39


svn path=/trunk/; revision=17512
2006-03-07 21:18:08 +00:00
Ronnie Sahlberg 60590c0163 fix a potential assignment of a wild pointer
fixes coverity cid 128


svn path=/trunk/; revision=17511
2006-03-07 20:52:23 +00:00
Anders Broman 317c8e5f92 Fix Coverity CID: 8 dead code.
svn path=/trunk/; revision=17510
2006-03-07 20:51:05 +00:00
Ronnie Sahlberg 06d73310c9 fix a potential null dereference
found in coverity cid:48


svn path=/trunk/; revision=17509
2006-03-07 20:47:20 +00:00
Gerald Combs 1a4719ef8d Fix Coverity run 12, CID 104: Don't overflow a guint8, and don't read past
the end of an array.

Update the release notes.

svn path=/trunk/; revision=17506
2006-03-07 19:53:57 +00:00
Anders Broman 4e232aa98e Dissect part of TIPCv2.
svn path=/trunk/; revision=17503
2006-03-07 18:19:42 +00:00
Jaap Keuter 3b2760d2df Catch negative return value, leading to near infinite loop.
Filed as coverity bug 136.

svn path=/trunk/; revision=17498
2006-03-07 15:22:57 +00:00
Luis Ontanon 14c4d6fad9 From Jeff Morris,
Avoid an off by one error in dissect_fields_dnsea() and dissect_fields_onsea()

Fixes Bug 794


svn path=/trunk/; revision=17495
2006-03-07 14:02:25 +00:00
Ronnie Sahlberg 7fc017a5c4 rewrite of some hairy code
fixes (hopefully) coverity bug 137


svn path=/trunk/; revision=17492
2006-03-07 10:25:42 +00:00
Luis Ontanon 0cfdbc3676 - contsify a variable in packet-alcap.c to see if a fake bug reported by coverty goes away.
- fix an off by one error in packet-telnet.c reported by coverty


svn path=/trunk/; revision=17487
2006-03-07 04:33:46 +00:00
Anders Broman 0c8b1090f4 From Ming Zhang:
Update on dissector packet-scsi

* modepage processing for MMC
* support cmd Get Event Status Notification
* support cmd start stop unit for mmc

svn path=/trunk/; revision=17484
2006-03-06 20:06:05 +00:00
Gerald Combs f99ad2e895 Handle a null pointer. Fixes bugs 778 and 787.
svn path=/trunk/; revision=17483
2006-03-06 19:49:34 +00:00
Ronnie Sahlberg 07c2845fe7 get rid of another slow hashtable and one global variable and
replace it with a better and memleak free se_tree



svn path=/trunk/; revision=17480
2006-03-06 14:30:34 +00:00
Ronnie Sahlberg 51f8a228f6 replace one hashtable storing filehandles with a new se tree
this should make it quite a bit faster than before.



svn path=/trunk/; revision=17479
2006-03-06 13:45:30 +00:00
Ronnie Sahlberg 4caa47a1ac replace a g_malloc()/g_free() pair with ep_alloc() instead
svn path=/trunk/; revision=17478
2006-03-06 10:39:31 +00:00
Ronnie Sahlberg 745994c364 add helper to build (red/black) trees from a key that is a vector of guin32 arrays.
test this functionality by calling these vector insert/lookup tree functions from the nfs dissector for when filehandles are used as a key.

these vector functions could also be used to efficiently store conversations :
se_tree_key_t[6] = {
	{ addr_len/4,   &src_addr },
	{ addr_len/4,	&dst_addr },
	{ 1,		&src_port32 },
	{ 1,		&dst_port32 },
	{ 1,		&protocol32 },
	{ 0, NULL }
}


(the nfs dissector needs a LOT of work. It is very painful to work with 
very large nfs traces with all the memory it wastes (and eats) as well as how slow all the tables make it)



svn path=/trunk/; revision=17477
2006-03-06 10:25:19 +00:00
Anders Broman 7f2bd47f5e From Jeff Morriss:
The M3UA I-G and -bis specify a couple of registration result codes that 
the M3UA dissector doesn't currently understand.  The attached patch fixes that.

svn path=/trunk/; revision=17476
2006-03-06 06:21:01 +00:00
Anders Broman 07ca040c73 From Jhon Sullivan:
Version 0.47a of eMule extends the eDonkey protocol to support files up to 256GB in length. This patch adds support for the new packet types, and changes to existing packets, used to support this.

In addition, it seems to be getting more common to use compression on the index server connection. The packets used are just like the uncompressed versions, except transmitted as a zlib compressed stream, so I've added dissection for the contents of those too.

Plus a couple of bugfixes to the UDP packet dissection.

svn path=/trunk/; revision=17475
2006-03-06 06:19:11 +00:00
Anders Broman d19c901b52 Make a new PER function dissect_per_enumerated() and use it for the two places in RANAP where
extensions has been made to enumerations. asn2eth should be updated to use it.

svn path=/trunk/; revision=17474
2006-03-05 20:21:19 +00:00
Anders Broman 226a976d88 Add the actual dissector, win makefile and update the asn1 makefile.
svn path=/trunk/; revision=17473
2006-03-05 18:39:53 +00:00
Graeme Lunt 77cf86d3d6 ACP133 attribute syntaxes and attribute definitions used by the DAP, DSP and DISP dissectors. Also includes X.402 definitions and OID registrations for object classes.
svn path=/trunk/; revision=17471
2006-03-05 11:28:13 +00:00
Ronnie Sahlberg 8ed89ff326 convert another hashtable for tcp into se_tree
svn path=/trunk/; revision=17470
2006-03-05 05:36:46 +00:00
Ronnie Sahlberg 0881211a12 initial implementation of binary tree support with se allocation scope
this is to test out a basic implementation of binary trees and the api required for the helpers


svn path=/trunk/; revision=17467
2006-03-05 04:01:34 +00:00
Anders Broman a8b8b3d9ff From Ming Zhang:
Updated dissector packet-scsi to

* decode the device configuration mode page;
* decode the request sense response;
* fix a wrong lens print in several writeX(). this happens when one packet contains several iscsi pdu. one write data pdu will be explained as request with LEN extracted (but it is not a cdb so it was wrong).
* split the dissect_scsi_snsinfo() into 2 parts so the sense data decode part can be a subroutine shared by requestsense() and maybe more places.


svn path=/trunk/; revision=17460
2006-03-04 10:10:48 +00:00
Anders Broman ee72a05d9c Fix bug 786
There is error when ethereal dissects UMTS AMR codec info.
The "Initial Codec Mode" does not exist in 3GPP TS 26.103(v4.a.0)
but OM(Optimization Mode) is correct parameter.

svn path=/trunk/; revision=17458
2006-03-04 10:07:19 +00:00
Guy Harris 11d6f896b8 Squelch a compiler warning.
svn path=/trunk/; revision=17455
2006-03-03 10:14:27 +00:00
Anders Broman 8d2bc60b91 The attached patch adds support for LAPD frames captured using vISDN thru
libpcap. The support has already been included in libpcap.

The patch adds a new wiretap encapsulation, the necessary glue to decode 
SLL-encapsulated frames, and some minor change in the LAPD dissector in order 
to support the remote-to-remote frames captured on the ISDN E-Channel.

Please apply ethereal-encap-table.diff before, as it fixes a misalignment in 
the encapsulation names table.

svn path=/trunk/; revision=17452
2006-03-02 21:31:33 +00:00
Anders Broman 9951fc2cff from Daniele Orlandi:
The attached patch adds support for LAPD frames captured using vISDN thru 
libpcap. The support has already been included in libpcap.

The patch adds a new wiretap encapsulation, the necessary glue to decode 
SLL-encapsulated frames, and some minor change in the LAPD dissector in order 
to support the remote-to-remote frames captured on the ISDN E-Channel.

Please apply ethereal-encap-table.diff before, as it fixes a misalignment in 
the encapsulation names table.

svn path=/trunk/; revision=17451
2006-03-02 21:29:15 +00:00
Anders Broman 3ee39dfc09 Make 3gpp AVP:s Vendor specific
svn path=/trunk/; revision=17449
2006-03-02 21:19:25 +00:00
Ronnie Sahlberg 5600e98269 From Ming Zhang
Add dissection of some additional SCSI SSC commands :

space6
erase6
locate10
space16
locate16


svn path=/trunk/; revision=17447
2006-03-02 21:17:18 +00:00
Jaap Keuter 5db299677d Fix for bug 783 from Didier Gautheron
I know nothing about iscsi , but try the attached patch. It fix the
wrong desegmentation and the ethereal bug isn't triggered anymore.

svn path=/trunk/; revision=17445
2006-03-02 20:44:13 +00:00
Ronnie Sahlberg 2808928c90 make the tcp_acked struct a pointer from the tcpd struct since we might need it hanging around.
only call subdissectors for packets that are NOT keepalives nor zerowindowprobes.


keepalives only contain garbage anyway
and zerowindowproes just contain a single byte of incomplete data so whats the point trying to dissect it further.



svn path=/trunk/; revision=17443
2006-03-02 09:33:49 +00:00
Jaap Keuter 873321aa30 From Camilo Viecco:
I just make some modifications for the current Sebek dissector so It can
understand both sebek V2 and V3 packets.



svn path=/trunk/; revision=17439
2006-03-01 17:25:21 +00:00
Guy Harris 214dc565e0 Use "tvb_format_string()" on strings extracted from the packet.
Use "tvb_get_ephemeral_string()" to extract a counted string into an
ep_allocated null-terminated buffer.

Constify a variable that points to packet data.

svn path=/trunk/; revision=17435
2006-03-01 00:22:34 +00:00
Guy Harris 660349cfbc Replace commenting-out of code with "#if 0"/#endif" - it's a bit safer
(you don't have to worry about comments in #if 0'ed otu code), and it
also fixes an unclosed comment (the commenting-out ended with /* rather
than */).

Fix up some indentation as well.

svn path=/trunk/; revision=17434
2006-03-01 00:15:55 +00:00
Guy Harris 08182946ce Constify some items, and make one item static, so we don't initialize
stack copies at run time.

svn path=/trunk/; revision=17433
2006-03-01 00:14:12 +00:00
Jaap Keuter 4939134507 Fix for bug 762: implementing Off/On duration presentation in 10ms units
svn path=/trunk/; revision=17430
2006-02-28 18:22:46 +00:00
Anders Broman 2d6b49599e From Martin Mathieson:
This patch adds the SIP History-Info header from RFC4244.

svn path=/trunk/; revision=17429
2006-02-28 17:40:01 +00:00
Anders Broman 47b86c517e Bugfix: Dissect BAT ASE Signal IE properly.
svn path=/trunk/; revision=17428
2006-02-28 17:01:29 +00:00
Anders Broman 204212aeff From Peter Johansson:
fixes the following compilation warnings (and 
potential problems that may otherwise follow).

packet-per.c(796) : warning C4047: 'function' : 'struct _proto_node ** ' 
differs in levels of indirection from 'struct _proto_node *'
packet-per.c(796) : warning C4024: 'dissect_per_boolean' : different 
types for formal and actual parameter 7
packet-per.c(796) : warning C4700: local variable 'pi' used without 
having been initialized

svn path=/trunk/; revision=17427
2006-02-28 17:00:31 +00:00
Ronnie Sahlberg b47ccd7bb9 mark a few generated fields as generated using PROTO_ITEM_SET_GENERATED
svn path=/trunk/; revision=17426
2006-02-28 10:10:08 +00:00
Ronnie Sahlberg 590d27a8c0 add new dissect_ber_integer64() that can handle 8,16,24,32 and 64bit integers.
use proto_tree_add_[u]int[8,16,24,32,64]() instread of proto_tree_add_item()
since BER integers may well be encoded in less bytes than the type requires.
(i do not think the old code with proto_tree_add_item() could have handleded negative values very well    or at all.)




svn path=/trunk/; revision=17425
2006-02-28 09:39:53 +00:00
Gerald Combs 38a305bbfb Properly terminate a value string. Fixes a current Buildbot complaint.
svn path=/trunk/; revision=17422
2006-02-27 15:39:08 +00:00
Anders Broman 21a8f186bb from dieder:
packet-x11
copy and past overlooked? test with 8 but substract to 4.

svn path=/trunk/; revision=17420
2006-02-27 09:02:16 +00:00
Anders Broman d49c777b71 Add extention bit if per internal fields shown.
svn path=/trunk/; revision=17417
2006-02-27 08:35:24 +00:00
Jaap Keuter 32dfb9b404 Fix bounds error.
svn path=/trunk/; revision=17412
2006-02-25 13:54:00 +00:00
Anders Broman aeb971fa5d From Martin Mathieson:
This patch further tightens up testing for resent packets.
It now always compares the method.  I've seen examples where the called 
party hangs up, and chooses the same CSeq for the BYE as the calling 
party chose for the INVITE.

svn path=/trunk/; revision=17408
2006-02-25 09:23:10 +00:00
Jaap Keuter 83f28ac9f5 Fix bug 765. ARMBER -> AMBER
svn path=/trunk/; revision=17394
2006-02-23 22:09:54 +00:00
Ronnie Sahlberg 826f6ede9a The task management flags in FCP are very useful to display since they convey that something real bad has happened.
Therefore put them and fence them at the start of the Info column



svn path=/trunk/; revision=17393
2006-02-23 22:03:55 +00:00
Anders Broman 030c5b422e From Alejandro Vaquero:
a patch for the VoipCalls to fix a couple of issues:
- a problem with the RTP Events (RFC2833) not been handle correctly
- Display the RTP stream in time order when the setup frame is after the 
RTP stream.
- fix a init issue that caused the H245 packet to not been displayed 
correctly.

svn path=/trunk/; revision=17385
2006-02-23 20:03:42 +00:00
Anders Broman 1fd7fbdb1d From Alejandro Vaquero:
a patch for the VoipCalls to fix a couple of issues:
- a problem with the RTP Events (RFC2833) not been handle correctly
- Display the RTP stream in time order when the setup frame is after the 
RTP stream.
- fix a init issue that caused the H245 packet to not been displayed 
correctly.

svn path=/trunk/; revision=17383
2006-02-23 20:02:23 +00:00
Jaap Keuter b678c64c5a Fix for bug 762. Decode either LED function or off duration.
svn path=/trunk/; revision=17380
2006-02-23 11:56:18 +00:00
Ronnie Sahlberg 19078b5404 add an expansion to ethernet source and destination addresses
inside this expansion show
1,    eth.addr      so people can see that this field exists (i think it is futile to use "hidden" fields and expect people to search through the infinitely long list of fields,   better show everything and they will see themself what fuields they can filter on)
2,  bit 0x01 of the first byte to show if it is Multi or Uni-cast
3, bit 0x02 of the first byte to show if it is a locally administrated address or not.
I do use the (to laymen) more descriptive names  "factory default"    instead of LocallyAdminAddr in the true_false string though.




 

svn path=/trunk/; revision=17378
2006-02-23 09:54:08 +00:00
Ronnie Sahlberg ae52099756 fix for bug 718
dont play games with lnk_t
If the preference is set to unconditionally dissect everything as docsis   just call the docsis handler directly.



svn path=/trunk/; revision=17377
2006-02-23 09:11:00 +00:00
Anders Broman 34a28fae17 Add TCAP ssn
svn path=/trunk/; revision=17376
2006-02-23 06:35:45 +00:00
Anders Broman 31424b15fb Desegment DT1 messages.
svn path=/trunk/; revision=17372
2006-02-22 16:25:29 +00:00
Ronnie Sahlberg 8cf12717d5 make the old style SNMP dissector handle 64 bit integers better
fixes bug 723


svn path=/trunk/; revision=17369
2006-02-22 10:45:23 +00:00
Ronnie Sahlberg 2be120fb96 make IPP treat all fields with the name '*-time' and being 4 byte integers
as if they are unix 32 bit timestamps and display them as such.


this fixes bug 755


svn path=/trunk/; revision=17368
2006-02-22 09:53:22 +00:00
Ronnie Sahlberg 5ddde8e4fe from kirby files
ppp/bpdu update


svn path=/trunk/; revision=17367
2006-02-22 08:39:06 +00:00
Jaap Keuter f459143fb4 Fix for bug 758: Adding facility codes 12-15 according to RFC 3164
svn path=/trunk/; revision=17361
2006-02-21 21:30:27 +00:00
Jaap Keuter 335a8e2831 Fix for bug 724: DNS dissector fails in handling the sign of Altitude in LOC type response (RFC1867)
svn path=/trunk/; revision=17358
2006-02-21 08:14:11 +00:00
Anders Broman 8e03852501 From Balint Reczey (IJ/ETH)
> The included patch fixes BFD version detection in the BFD packet 
> dissector and extends it to correctly dissect version 1 packets. The 
> Authentication Section part of the packet is still not dissected.
> 

svn path=/trunk/; revision=17357
2006-02-20 17:21:47 +00:00
Anders Broman 25c4c078ad From Sake Blok:
Add a filter for X-Forwarded-For.

svn path=/trunk/; revision=17356
2006-02-20 06:25:02 +00:00
Anders Broman 74dd581db8 Remove c++ style comment.
svn path=/trunk/; revision=17352
2006-02-19 10:17:07 +00:00
Jaap Keuter 88e3b88e84 Fix for bug 752:
IEEE802.3ah-2004 (OAM) Errored Frame Seconds Summary Event TLV is not being
decoded properly.  Per IEEE802.3ah-2004 section 57.5.3.4, item g, the Error
Running Total field should be 4-octets however Ethereal is trying to decode this
field as 8-octets which results in incorrect value reported for "Error Running
Total" and "Event Running Total".

svn path=/trunk/; revision=17351
2006-02-19 09:54:37 +00:00
Anders Broman 06d6295287 From Florent.Drouin@alcatel.fr
Add the same workaround used in packet-ftam.c for the bad handling of the asn "IMPLICIT SEQUENCE", in the packet-gsm_map-template.c. This patch concerns Map V3 messages, not correctly decoded with the previous workaround "offset=offset+2".

Change a parameter for Provide Roaming Number decoding.

Add a decoding fonction for "Channel needed" parameter to avoid a decoding error for Paging messages
with a change to actually dissct channel needed.

svn path=/trunk/; revision=17350
2006-02-18 23:29:51 +00:00
Gerald Combs d3f60e495b Don't try to fill in last_dn if it doesn't exist. Fixes the current Buildbot
failure.

svn path=/trunk/; revision=17337
2006-02-17 16:35:45 +00:00
Anders Broman 7649797b88 Dissect the rest of the IE:s
svn path=/trunk/; revision=17334
2006-02-17 15:41:00 +00:00
Jörg Mayer 377e6e2e27 Paolo Abeni:
pinfo->net_src and pinfo->net_dst where used to set up conversation, but
this fields are null on eap stream. use pinfo->src and pinfo->dst
instead.
The patch also enable strict checking in the 'follow ssl stream' dialog.


svn path=/trunk/; revision=17333
2006-02-17 11:56:52 +00:00
Guy Harris c922673498 Squelch some compiler warnings.
Fix indentation.

svn path=/trunk/; revision=17331
2006-02-17 10:03:34 +00:00
Anders Broman a8a87c92b9 Add dissection of all Signals and more IE:s
svn path=/trunk/; revision=17322
2006-02-16 18:26:04 +00:00
Jörg Mayer 35e1e1abe4 Paolo Abeni:
The attached patch should fix bug 742.
The issue is (at least, I think so...) in the packet-x509af dissector
A null pointer is passes as parameter of a " %s " format string.


svn path=/trunk/; revision=17317
2006-02-16 11:47:16 +00:00
Guy Harris b13f6dcbd3 Use the new "proto_tree_add_*_format_value" routines.
svn path=/trunk/; revision=17316
2006-02-16 11:43:38 +00:00
Jörg Mayer 5a482871f3 Jerry Talkington:
Here's a tiny patch that will allow for dissecting of chunked coded HTTP
responses when there is an extension or trailing whitespace in the
Transfer-Encoding: header.


svn path=/trunk/; revision=17314
2006-02-15 23:30:41 +00:00
Gerald Combs 7353fadc50 Make sure SSL_DEBUG_USE_STDERR is always defined.
svn path=/trunk/; revision=17303
2006-02-14 18:52:26 +00:00
Jörg Mayer 461b6d35ee Paolo Abeni:
- enable the 'follow SSL stream' menu item only when a ssl packet is selected.
- when 'following' an ssl stream, show ssl decrypted data only for current conversation.
- fix a typo in ssl preference description.


svn path=/trunk/; revision=17301
2006-02-14 14:53:03 +00:00
Jörg Mayer a6d35abcae Make the files at least compile. While testing them as plugins they
caused tethereal to abort during startup.

svn path=/trunk/; revision=17288
2006-02-13 22:08:36 +00:00
Jörg Mayer 924cd79279 Add original files for oracle dissection from the ClearSight
archive.

svn path=/trunk/; revision=17287
2006-02-13 21:54:42 +00:00
Gerald Combs e455cea864 Remove a couple of unused variables.
svn path=/trunk/; revision=17283
2006-02-13 20:10:23 +00:00
Anders Broman 4621cc9150 From Mike Duigou:
- Improves ability of dissector to find conversations without seeing 
whole stream.

- Fixes some issues with dissection of data which requires reassembly.

- Adds the ability to dissect jxta conversations from SCTP streams.

- Better handling of welcome message.

- Adds direct dissection of compressed SRDI data.

- Has been run through extensive fuzz testing.

- Fixes compiler warnings with previous patch 17141

svn path=/trunk/; revision=17282
2006-02-13 19:45:38 +00:00
Jörg Mayer 36bad901af Paolo Abeni
the attached patch fix a couple of possible memory leak in the ssl
decryption code, add some indentation fix, more comments and add the
preference to select the debug output (missing in previous patch)



svn path=/trunk/; revision=17281
2006-02-13 17:06:41 +00:00
Lars Roland 3aebb783ff fuzz testing revealed that an infinite loop in the uma dissector was only partly fixed in revision 17119.
This will fix the infinite loop and bug 738.

svn path=/trunk/; revision=17273
2006-02-12 14:29:41 +00:00
Ronnie Sahlberg a1c15f7ab2 add rfc1964 stuff and (incomplete) KRB_CRED support.
KRB_CRED does not currently even try to decrypt EncKrbCredPart   but it is better than no KRB_CRED dissection at all.



svn path=/trunk/; revision=17272
2006-02-12 13:18:48 +00:00
Jörg Mayer b55002ab8d Paolo Abeni:
The attached patch cleanup the debug infrastructure for ssl dissector.
Debug messages are by default off and can be enabled via the ssl
dissector preference. Debug output can be directed to stderr or file.


svn path=/trunk/; revision=17253
2006-02-11 13:41:17 +00:00
Guy Harris 83aad499b4 Squelch some compiler warnings.
svn path=/trunk/; revision=17250
2006-02-11 09:54:10 +00:00
Guy Harris b912db17b3 Squelch some compiler warnings by declaring RADIUS AVP dissectors to
return pointers to const strings.

svn path=/trunk/; revision=17249
2006-02-11 09:50:11 +00:00
Luis Ontanon 009b5f7d29 From ENDOH Akira:
Add heuristic dissection of XML to SIP bodies with unknown media_type.


svn path=/trunk/; revision=17247
2006-02-11 00:13:23 +00:00
Ronnie Sahlberg f535b4cba1 tcp analysis
RST segments should not be checked for and not marked as
PREVIOUS_SEGMENT_LOST


svn path=/trunk/; revision=17246
2006-02-10 22:24:21 +00:00