Commit graph

5252 commits

Author SHA1 Message Date
Anders Broman
deb5318f24 From Stephen Fisher:
This patch adds the most commonly referenced items from CDP frames to the info
column: the device id (hostname) and port id.  For example:

Cisco Discovery Protocol  Device ID: myswitch.me.com  Port ID:
GigabitEthernet7/12

svn path=/trunk/; revision=18821
2006-08-02 16:56:33 +00:00
Martin Mathieson
9e1f690fc6 Update to TBCP ("PoC1" application). This is based on the "Approved Version 1.0 09 Jun 2006"
- updated to the current (approved) spec.  I'm not sure how backwards-compatible this is with older drafts...
- prettified the existing code, including more details in the info column

Also included is a fix to the way the offset at the end of an RTCP BYE packet is calculated (taking into account the NULL.  This avoids the 'length wrong' expert item) 

svn path=/trunk/; revision=18820
2006-08-02 16:00:07 +00:00
Martin Mathieson
f73d0c1f74 Try to fix build by including packet.h
svn path=/trunk/; revision=18819
2006-08-02 13:23:57 +00:00
Martin Mathieson
229e2dfbde - Removes last traces of 'board ports only' preference (other than marking it as an obselete preference)
- Add a preference to try to find messages within sctp primitive messages (tries renaming of known mismatches)
- Add outhdr to stub protocol (getting ready for IuB FP)

svn path=/trunk/; revision=18818
2006-08-02 09:30:28 +00:00
Martin Mathieson
0669def03d Fix for bug 1023 (problem with 'apply as filter' strings)
svn path=/trunk/; revision=18817
2006-08-02 09:14:31 +00:00
Ronnie Sahlberg
7b3b26fd39 from a. samuel
ssl and dtls updates


svn path=/trunk/; revision=18816
2006-08-02 08:15:51 +00:00
Michael Tüxen
30fac686ac Adopt the chunk list parameter name to the notion used in the next version
of the ID.

svn path=/trunk/; revision=18812
2006-08-01 18:06:35 +00:00
Martin Mathieson
5e4e2632b4 Fix some fussy warnings seen on the Ubuntu buildbot logs
svn path=/trunk/; revision=18811
2006-08-01 17:20:13 +00:00
Martin Mathieson
a4b212c8f0 Fix a duplicate MSRP filter string
svn path=/trunk/; revision=18810
2006-08-01 17:15:31 +00:00
Martin Mathieson
ac41d69be5 Delete leftover printf
svn path=/trunk/; revision=18809
2006-08-01 17:07:28 +00:00
Anders Broman
4203db3d4e From Sean Sheedy:
A disassembly module I wrote for Pegasus Lightweight Stream Control, a protocol used by some cable set-top boxes for video-on-demand.

svn path=/trunk/; revision=18807
2006-07-28 21:41:53 +00:00
Anders Broman
4f7ff62fcf From Martin Mathieson:
- allow SDP to parse the IP address + port for the MSRP session from the 
path attribute
- setup an MSRP conversation using this address, whose data points back 
to the SDP frame
- link to the SDP setup frame while dissecting MSRP (can be switched off 
by a preference)
- I also changed sdp.media.port to be a numeric field

svn path=/trunk/; revision=18806
2006-07-28 21:26:39 +00:00
Luis Ontanon
ed3b76044e as per RFC 3611 - 4.1.1 run length is 14 bits not 15.
Fixes Bug 1022


svn path=/trunk/; revision=18805
2006-07-28 16:40:46 +00:00
Ronnie Sahlberg
f01fcc9369 fropm martin m
fix for h450 to prevent an assertion for uninitialized hffields



Thanks for the capture, Keith.  The problem was with h450 hf fields that
weren't initialised sucessfully (at all in one case, or with non-unique
filter strings in several others) - it was hitting an assertion in proto.c
when an attempt was made to use those fields.

I was able to test by editing packet-h450.c directly, I couldn't regenerate
it from packet-h450-template.c.  I'm attaching a patch to
packet-h450-template.c that hopefully does the same thing.  If someone can
generate and check it packet-h450.c in for me I'll retest.



svn path=/trunk/; revision=18804
2006-07-28 07:50:05 +00:00
Luis Ontanon
a472c767a2 a better regex for names in DTDs
svn path=/trunk/; revision=18795
2006-07-26 22:54:48 +00:00
Jörg Mayer
50b6680fd7 One of the bytes in the cisco header is the channel number that
the AP received the frame.

svn path=/trunk/; revision=18790
2006-07-25 05:17:17 +00:00
Ronnie Sahlberg
07af276bf4 licence info
svn path=/trunk/; revision=18787
2006-07-22 22:15:15 +00:00
Ronnie Sahlberg
ef802fac44 add gpl licence
svn path=/trunk/; revision=18786
2006-07-22 22:11:54 +00:00
Ronnie Sahlberg
a7d4fed9da add licence information
svn path=/trunk/; revision=18785
2006-07-22 22:02:04 +00:00
Ulf Lamping
ccef184052 add some more "informational" (generated) fields to the dcerpc tree
these fields can help with the everyday work of the DCE/RPC (and upper) protocol dissections

svn path=/trunk/; revision=18784
2006-07-22 11:33:24 +00:00
Ronnie Sahlberg
64fba459da from martin m
Hi,

This patch allows FT_NONE items to be built into filter expressions
(i.e. testing for their presence or absence rather than comparing with a
value) using the Apply|Prepare a Filter menus.  What drove me to add
this was having to type in !tcp.analysis.out_of_order.

Does this seem reasonable?

Regards,
Martin




svn path=/trunk/; revision=18782
2006-07-22 03:24:28 +00:00
Ronnie Sahlberg
f8c939e218 from Jeff Morriss
The attached patch makes the Skinny dissector "new style".  Please
consider it for inclusion.




svn path=/trunk/; revision=18781
2006-07-22 03:06:32 +00:00
Ronnie Sahlberg
64c10f19dc from ian abel
Hi,

The attached file should fix the following two bugs in the AJP dissector.

1) The dissector doesn't know about CPING/CPONG
2) The dissector misinterprets multiple requests in one connection if a
prior request has a Body request part.




svn path=/trunk/; revision=18780
2006-07-22 01:44:10 +00:00
Tomas Kukosa
2b4d003c06 H.225.0 update to version 6 (05/2006)
H.245 updated to version 13 (05/2006)

svn path=/trunk/; revision=18779
2006-07-21 07:05:39 +00:00
Jörg Mayer
1c888f57c9 Daniel Drake <dsd@gentoo.org>:
The barker preamble bit is set when a station associates
	which does not support short preambles. When it is 0, short
	preambles are allowed.

Me: Add a reference to the spec stating the above.


svn path=/trunk/; revision=18777
2006-07-20 22:25:04 +00:00
Gerald Combs
20093fdaa4 snprintf -> g_snprintf. Fix up whitespace.
svn path=/trunk/; revision=18776
2006-07-20 21:29:45 +00:00
Gerald Combs
cb1089a5b1 Remove remaining instances of NEED_SNPRINTF_H. Fix up whitespace.
svn path=/trunk/; revision=18775
2006-07-20 17:45:52 +00:00
Luis Ontanon
87d6b997c6 From Mike Digou:
- free the right object.


svn path=/trunk/; revision=18774
2006-07-20 17:32:10 +00:00
Luis Ontanon
ba3a83a475 allow for some uppercasing in names.
"fix" for Bug 1010


svn path=/trunk/; revision=18773
2006-07-20 17:23:58 +00:00
Ronnie Sahlberg
e27d8be9d3 from michael stevens
fix an incorrect expression to decode keydata properly


svn path=/trunk/; revision=18770
2006-07-20 09:21:32 +00:00
Anders Broman
70c0428e0b Add licence info.
svn path=/trunk/; revision=18768
2006-07-19 19:11:17 +00:00
Anders Broman
73fcdb3c5f From Martin Mathieson:
This patch:
- adds headers found in later versions of the msrp drafts
- fixes a problem where wrong length values were used while parsing the 
request/status line and it was going beyond linelen
- "Transaktion" -> "Transaction"
- status code now appears as a numerical field
- removes unused parameters from check_msrp_header()
- tidies up some indentation
It has survived some fuzz-testing.

svn path=/trunk/; revision=18766
2006-07-19 18:51:25 +00:00
Gerald Combs
65bd143c7b Link libwireshark with libiconv if needed.
svn path=/trunk/; revision=18763
2006-07-19 13:41:59 +00:00
Ronnie Sahlberg
21b45abc1e add two missing CHECK_BYTE_COUNT
to not cause an exception for clearly malformed packets


will resolve "bug" 987   (which is NOT a bug)



svn path=/trunk/; revision=18762
2006-07-19 10:02:49 +00:00
Anders Broman
f47dfde23a Remove leftover(?) plugin code.
svn path=/trunk/; revision=18761
2006-07-18 21:16:02 +00:00
Gerald Combs
c52c646842 Apply The Written Word's patch from bug 333, which changes HAVE_ICONV_H
to HAVE_ICONV.

svn path=/trunk/; revision=18758
2006-07-18 15:54:03 +00:00
Anders Broman
e36045c1ca From Ravi Valmikam:
"Translate" MSID BCD digits and make them filterable, fixes bug
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=997

svn path=/trunk/; revision=18757
2006-07-18 06:15:22 +00:00
Jörg Mayer
e226affa31 stephentfisher@yahoo.com:
Adds $(LIBGCRYPT_CFLAGS) to two Makefiles
	(fix for http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1005)


svn path=/trunk/; revision=18753
2006-07-17 19:37:21 +00:00
Anders Broman
527dc673f4 From Martin Mathieson:
sip_stats.c and tap_sipstat.c:
adds the code 429 ("Provide Referrer Identity", from RFC 3892) to 
SIP stats.

chargecontrol.xml packet-diameter.c :
These patches
- add a few more chargecontrol AVPs, and add the vendor-id where needed
- report as expert info when AVPs' lengths don't match their type

svn path=/trunk/; revision=18743
2006-07-17 05:51:14 +00:00
Gerald Combs
786666ea4c Fix compilation problems for Windows and GTK1.
svn path=/trunk/; revision=18741
2006-07-15 14:17:42 +00:00
Ronnie Sahlberg
b048bbcfe7 add request response tracking and response times
svn path=/trunk/; revision=18738
2006-07-14 23:04:35 +00:00
Gilbert Ramirez
a85563c3d4 Register the MPLS dissector on its standard IP protocol number.
svn path=/trunk/; revision=18735
2006-07-14 14:58:17 +00:00
Ronnie Sahlberg
ce5366cc43 dont dissect reserved bits in a bitmap
svn path=/trunk/; revision=18734
2006-07-14 09:40:10 +00:00
Ronnie Sahlberg
48dab097e5 new protocol PANA from
Peter Racz



svn path=/trunk/; revision=18733
2006-07-14 09:17:11 +00:00
Ronnie Sahlberg
79addae4eb cosmetic updates redindentation etc
svn path=/trunk/; revision=18732
2006-07-14 07:55:53 +00:00
Anders Broman
e9a4ce8196 Decode PDU Type Extension.
svn path=/trunk/; revision=18731
2006-07-13 20:13:35 +00:00
Ronnie Sahlberg
8b9e4e40e4 from Krzysztof Burghardt
KISMET protocol support



svn path=/trunk/; revision=18728
2006-07-13 08:42:34 +00:00
Anders Broman
917bdbc877 Francesco Fondelli:
Protocol Extensions for Support of Diffserv-aware MPLS Traffic Engineering
(DSTE) as per RFC 4124.

svn path=/trunk/; revision=18727
2006-07-13 05:57:20 +00:00
Jörg Mayer
4070ac6967 Decode another byte in Cisco's IE 133 (number of associated clients)
svn path=/trunk/; revision=18726
2006-07-13 05:40:48 +00:00
Anders Broman
b6bec03bfc From Stefan (metze) Metzmacher:
small typo fix in smb2 dissector

svn path=/trunk/; revision=18724
2006-07-12 20:44:54 +00:00
Gerald Combs
d4819d4690 Make sure our strings aren't null before we pass them to strncmp().
svn path=/trunk/; revision=18723
2006-07-12 18:12:15 +00:00
Ronnie Sahlberg
ed3e02ed61 prettify dissection od ldap attributes
special case some common special attributes such as DomainSid and DomainGuid
and dissect them as SIDs and GUIDs

examples of these special attributes can be seen in Xiaoguang Liu's email to wireshark dev



svn path=/trunk/; revision=18719
2006-07-12 09:02:00 +00:00
Anders Broman
3094096ae4 Decode RANAP in LongSignalInfo and RadioResourceInformation.
svn path=/trunk/; revision=18718
2006-07-11 19:46:52 +00:00
Michael Tüxen
cd948f55d8 Get it compiling...
svn path=/trunk/; revision=18715
2006-07-11 18:19:09 +00:00
Gerald Combs
133539b55e More from Ilja van Sprundel. When we call tvb_new_subset() with a
length fetched using tvb_get_netohl(), make sure the length ends up
being positive.

svn path=/trunk/; revision=18714
2006-07-11 17:53:15 +00:00
Jörg Mayer
37f75a64d1 Bugfix: If we have an rc4 key and the length remaining for the
actual key is 0, then this isn't a malformed packet. The key
locally generated by the peer itself should be used.

svn path=/trunk/; revision=18713
2006-07-11 16:18:36 +00:00
Ronnie Sahlberg
a003f7cd8f fix two of iljas bugs
svn path=/trunk/; revision=18710
2006-07-11 03:19:15 +00:00
Anders Broman
7eb7109842 From Nils Ljungberg:
TLLI shown twice (create-bss-pfc) PFI not fully decoded (dynamically assigned 

Fixed decoding of RAN-INFORMATION and RAN-INFORMATION-REQUESTadded dekoding of RAN_INFORMATION_ACC, RAN_INFORMATION_ERROR, RAN_APPLICATION_ERROR

svn path=/trunk/; revision=18708
2006-07-10 21:39:07 +00:00
Gerald Combs
1f8334d9e9 Two more bugs from Ilja van Sprundel.
packet-ndmp.c:
  Fix our payload length check.

packet-nfs.c:
  Check for a maximum bitmap length.

Fix up whitespace.

svn path=/trunk/; revision=18699
2006-07-10 19:54:41 +00:00
Gerald Combs
e212e73354 Reset ldm_tree in dissect_ldap_pdu(). Fixes a couple of the current fuzz
bugs.

svn path=/trunk/; revision=18697
2006-07-10 13:42:59 +00:00
Tomas Kukosa
06c13b19d1 from DuBingyao
patch for the OICQ dissector to identify unknown command

svn path=/trunk/; revision=18696
2006-07-10 05:05:01 +00:00
Gerald Combs
d55ec3bd66 Fix compilation on systems with Net-SNMP.
svn path=/trunk/; revision=18695
2006-07-10 01:05:24 +00:00
Gerald Combs
8b315480f1 In new_format_oid(), handle a zero-length OID.
Fix a bug introduced recently in packet-rpc.c.

Replace DISSECTOR_ASSERT() with THROW(ReportedBoundsError) in my recent 
checkins, since fuzz-test.sh sets WIRESHARK_ABORT_ON_DISSECTOR_BUG.

svn path=/trunk/; revision=18693
2006-07-09 22:12:02 +00:00
Gerald Combs
6dd2196da6 One more bug from Ilja van Sprundel. Be more paranoid about our offset during
a loop.  Fix up whitespace.

svn path=/trunk/; revision=18692
2006-07-09 17:58:28 +00:00
Jörg Mayer
eb2e0d867d Start declaring the proto_reg... functions to fix 'warning: no previous declaration'
svn path=/trunk/; revision=18691
2006-07-09 12:11:30 +00:00
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