summaryrefslogtreecommitdiffstats
path: root/pidl/lib/Parse/Pidl/Wireshark
Commit message (Collapse)AuthorAgeFilesLines
* Clean up more whitespace.Guy Harris2014-11-221-5/+5
| | | | | | Reviewed-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-By: Kamen Mazdrashki <kamenim@samba.org> Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
* pidl: White space cleanups in Conformance.pm and NDR.pmGuy Harris2014-11-192-98/+98
| | | | | | | | | | Change-Id: Ibf106d023c50a7f3caf8f416e9927ac4a040f2c0 Bug: https://bugzilla.samba.org/show_bug.cgi?id=10842 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Wed Nov 19 05:06:33 CET 2014 on sn-devel-104
* pidl-wireshark: SWITCH_TYPE is not always defined, SwitchType() will try to ↵Matthieu Patou2014-10-241-21/+38
| | | | | | | | | | | | find a fallback Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Oct 24 01:39:16 CEST 2014 on sn-devel-104
* pidl-wireshark: generate ALIGN_TO_x_BYTES instructions if the element has ↵Matthieu Patou2014-10-231-0/+6
| | | | | | | the align_x flag Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: if the structure has the flag no_align then set also ↵Matthieu Patou2014-10-231-5/+24
| | | | | | | | | | | | no_align in the dceprc_info structure Some dissection function will try to do alignment if the no_align flag is not set. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: handle 8 bits enum and change the signature of enum function ↵Matthieu Patou2014-10-231-6/+6
| | | | | | | | | | | | to pass the exact type Instead of passing a uint32 in all cases we pass the exact type Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Change-Id: Ib79f1fa56d5aeb30c6e57eea8f0a48db60f6484d Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: add definition for IPV4/IPV6 typesMatthieu Patou2014-10-231-0/+2
| | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: adapt to the new comments in the headers of wireshark dissectorsMatthieu Patou2014-10-231-3/+1
| | | | | | | Change-Id: I4fc398c4d50230d1f0a083827493c1b193c045b9 Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: insure that we have an entire match for the variable nameMatthieu Patou2014-10-101-1/+1
| | | | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Oct 10 00:32:40 CEST 2014 on sn-devel-104
* pidl-wireshark: generate an error for the new Pipe type in typedefMatthieu Patou2014-10-091-2/+11
| | | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: add the type dom_sid28 and call ad-hoc dissectorMatthieu Patou2014-10-091-2/+8
| | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: add a function to change the type of a hf_fieldMatthieu Patou2014-10-091-0/+17
| | | | | | | | | We can use this to change the type FT_BYTE when we realize that the object dissected is an array of bytes Change-Id: I2d09c557fd050d0c279b8fff0a27db53403366ca Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: cosmetic reformatMatthieu Patou2014-10-091-4/+5
| | | | | | Change-Id: I86a0d4f13575e5ef7c6968b93ce126e5df981873 Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: Handle the case when the DATA_TYPE is not a simple typeMatthieu Patou2014-10-091-1/+8
| | | | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Change-Id: If78f241333c1372c60c7d00211c1e6aeb22c9719 Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* pidl: Make the compilation of PIDL producing the same results if the content ↵Matthieu Patou2014-10-091-3/+3
| | | | | | | | | | | | hasn't change Newer perl versions don't generate stable results anymore. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Change-Id: I2fb1e12da392ca85bfd0fb8b50b69851076144ee Signed-off-by: Matthieu Patou <mat@matws.net> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* pidl-wireshark: fix the trailling white space in the generated headersMatthieu Patou2013-10-091-2/+2
| | | | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Oct 9 10:31:25 CEST 2013 on sn-devel-104
* pidl-wireshark: fix trailing white space in the HF definitionMatthieu Patou2013-10-091-1/+1
| | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Remove check_col from generated DCE/RPC dissectors.Matthieu Patou2013-10-071-4/+4
| | | | | | | | | | | | | This is a backport of http://anonsvn.wireshark.org/viewvc?view=revision&revision=52313 Bug 8804 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8804). Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlett@samba.org> Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Mon Oct 7 08:09:51 CEST 2013 on sn-devel-104
* pidl: Generate wireshark that conforms to the rules of Wireshark projectMatthieu Patou2013-09-241-4/+4
| | | | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 24 02:04:05 CEST 2013 on sn-devel-104
* pidl: Generate NDR64/NDR32 aware code for the wireshark dissectorsMatthieu Patou2013-09-241-0/+8
| | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Wireshark/Conformance.pm: Fix typo.Karolin Seeger2013-05-151-1/+1
| | | | | Signed-off-by: Karolin Seeger <kseeger@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Use ENC_ values for proto_tree_add_item() calls.Guy Harris2012-05-151-2/+2
| | | | | | | | | | | | | | | | | | | It appears that the integral value containing the bits in a bitmap should be dissected according to the data representation, as the individual fields are fetched by dissect_ndr_XXX, which is passed the data representation and extracts the value appropriately for the data representation, so the patch replaces TRUE (which meant "always little-endian" when the last argument to proto_tree_add_item() was a byte-order Boolean) with DREP_ENC_INTEGER(drep) (which means "ENC_BIG_ENDIAN or ENC_LITTLE_ENDIAN, depending on the data representation"). For structures, I'm just using ENC_NA. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8942 Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue May 15 12:07:06 CEST 2012 on sn-devel-104
* pidl: for wireshark use only the major of the versionMatthieu Patou2011-08-061-3/+2
|
* pidl: For wireshark check also LIBNDR_FLAG_NOALIGN for not aligningMatthieu Patou2011-08-061-1/+1
|
* pidl: handle union when the switch variable is outside of the union for ↵Matthieu Patou2011-08-061-19/+96
| | | | wireshark dissector
* pidl: add subcontext handling for wiresharkMatthieu Patou2011-08-061-3/+10
|
* pidl: handle hyper attribute for wiresharkMatthieu Patou2011-08-061-0/+1
|
* pidl: handle datablob for wireshark generatorMatthieu Patou2011-08-061-0/+4
|
* pidl: rpc version is a 32 bitMatthieu Patou2011-08-061-1/+1
|
* pidl: generate code for dissecting null terminated stringsMatthieu Patou2011-08-061-0/+6
|
* pidl: don't expect to have quote when creating import headersMatthieu Patou2011-08-061-1/+1
| | | | | | Currently the $_ didn't contains the quote anymore, in order to avoid any further regression the cleanup of quote is done before so that if $_ still have quotes we clean them in anycase.
* pidl: Fix display field for time fields with newer versions of Wireshark.Jeff Morriss2010-04-301-4/+4
| | | | | | | Pidl generates some Wireshark dissector fields of type FT_ABSOLUTE_TIME. Starting some time not too long ago, these fields need a 'display' field other than BASE_NONE or BASE_DEC. This commit fixes this, *assuming* that all the times are "local."
* add trailer alignment to structuresRonnie Sahlberg2009-10-061-0/+14
|
* PIDL fix for using external types with wireshark backendronnie sahlberg2009-10-062-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | List, Please review this patch to pidl. Basically, we need to process the wireshark conformance file BEFORE we process the idl file since this file may define external types and set the alignment for them (using the TYPE directive). Otherwise pidl will default all external types to use 4byte alignment which breaks (much more often) on NDR64 regards ronnie sahlberg From 8f86903fc353d0906bd82e72ce19c5af09beb001 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg <ronniesahlberg@gmail.com> Date: Mon, 5 Oct 2009 15:22:43 +1100 Subject: [PATCH] In the PIDL wireshark backend, we define external types in the conformance file using the TYPE directive. If we declare external types here, we must parse this file before we process the IDL file, or else these external types will all default to 4byte padding (pidl assumes all unknown types are 4byte aligned). Make sure we read the conformance file and create these new types before we parse the idl file. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
* pidl: import a patch to pidl made in the wireshark reporitory.Ronnie Sahlberg2009-07-281-5/+19
| | | | | | | | | | | Original commit message in wireshark SVN (rev 28961): ==== From Kovarththanan Rajaratnam: More "Cleanup header_field_info definitions" ==== Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Move pidl to top-level directory.Jelmer Vernooij2008-09-172-0/+1580