summaryrefslogtreecommitdiffstats
path: root/pidl/lib/Parse
Commit message (Collapse)AuthorAgeFilesLines
* Remove use of the "staticforward" macroPetr Viktorin2015-01-221-2/+2
| | | | | | | | | | This macro was used for compatibility with broken compilers. Since Python 2.3, it is always defined as `static`, and only exists "for source compatibility with old C extensions". Signed-off-by: Petr Viktorin <pviktori@redhat.com> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* 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: Improve string delection in function ContainsStringMatthieu Patou2014-10-091-0/+10
| | | | | | Change-Id: I037e8b5f54fca8b512fd14edbefa34e59cb7f953 Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* pidl: Make the compilation of PIDL producing the same results if the content ↵Matthieu Patou2014-10-097-26/+39
| | | | | | | | | | | | 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:Samba4/Python: add interface.abstract_syntax() to each interfaceStefan Metzmacher2014-03-281-0/+39
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* pidl:NDR/Client: avoid useless memcpy()Stefan Metzmacher2014-01-071-3/+8
| | | | | | | | If the src and dest pointer of memcpy would be the same we should avoid it in order to avoid valgrind warnings. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pidl:NDR/Client: fix dcerpc_function() with [out,ref] pointersStefan Metzmacher2014-01-071-0/+14
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pidl:NDR/Client: simplify tevent_req_nterror() usageStefan Metzmacher2014-01-071-4/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pidl:NDR/Client: add missing TALLOC_FREE(subreq) after ↵Stefan Metzmacher2014-01-071-0/+1
| | | | | | | dcerpc_binding_handle_call_recv() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pidl:Samba3/ServerNDR: skip DCERPC pipe elements and leave NULL pointers.Stefan Metzmacher2014-01-071-1/+2
| | | | | | | | We don't support them anyway, but this lets us adding them to the idl file and only ignore it on the server. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* pidl: fix an error message typoVolker Lendecke2013-10-111-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@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>
* pidl: Recent Perl warns about "defined(@var)" constructs.Vadim Zhukov2013-05-251-1/+1
| | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat May 25 18:10:53 CEST 2013 on sn-devel-104
* 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>
* pidl:NDR/Parser: correctly set $ndr->[relative_highest_]offset for ↵Stefan Metzmacher2013-05-081-1/+1
| | | | | | | | | | relative_short pointers Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed May 8 20:49:55 CEST 2013 on sn-devel-104
* Revert "Remove a bunch of "unused variable _relative_save_offset" warnings."Stefan Metzmacher2013-05-081-4/+2
| | | | | | | | | This reverts commit fa5898b6de797431d5ae9d2ce6dcddcb35a60b66. This is the wrong fix for the warnings, the correct fix will follow. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* Remove a bunch of "unused variable _relative_save_offset" warnings.Jeremy Allison2013-05-081-2/+4
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com> Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Wed May 8 07:47:45 CEST 2013 on sn-devel-104
* pidl: Add skip option to elements.Andreas Schneider2013-03-152-2/+11
| | | | | | | This option allows to skip struct elements in pull and push function. This can be used to pass flags to the structure e.g. for string values. Reviewed-by: Günther Deschner <gd@samba.org>
* PIDL: fix parsing linemarkers in preprocessor outputAlexander Bokovoy2013-02-061-1/+3
| | | | | | | | | | | | | | | | | When PIDL calls out to C preprocessor to expand IDL files and parse the output, it filters out linemarkers and line control information as described in http://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html and http://gcc.gnu.org/onlinedocs/cpp/Line-Control.html#Line-Control With gcc 4.8 stdc-predef.h is included automatically and linemarker for the file has extended flags that PIDL couldn't parse ('system header that needs to be extern "C" protected for C++') Thanks to Jakub Jelinek <jakub@redhat.com> for explanation of the linemarker format. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=906517 Reviewed-by: Andreas Schneider <asn@samba.org>
* pidl: change strange spelling __donnot_use_enum_* to __do_not_use_enum_*Michael Adam2012-12-101-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* pidl: Add mode_t as an alias so we can marshall posix ACL structuresAndrew Bartlett2012-08-151-0/+1
|
* s3-rpc_server: Make it possible to use more rpc exceptions.Andreas Schneider2012-07-061-1/+1
|
* 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/NDR/Parser: also do range checks on the array sizeStefan Metzmacher2012-04-101-5/+20
| | | | | | | metze Autobuild-User: Karolin Seeger <kseeger@samba.org> Autobuild-Date: Tue Apr 10 18:21:59 CEST 2012 on sn-devel-104
* pidl/NDR/Parser: do array range validation in ParseArrayPullGetLength()Stefan Metzmacher2012-04-101-28/+14
| | | | metze
* pidl/NDR/Parser: use helper variables for array size and lengthStefan Metzmacher2012-04-101-7/+15
| | | | metze
* pidl/NDR/Parser: remember if we already know the array lengthStefan Metzmacher2012-04-101-1/+7
| | | | metze
* pidl/NDR/Parser: use ParseArrayPullGetLength() to get the number of array ↵Stefan Metzmacher2012-04-101-5/+1
| | | | | | | | | elements (bug #8815 / CVE-2012-1182) An anonymous researcher and Brian Gorenc (HP DVLabs) working with HP's Zero Day Initiative program have found this and notified us. metze
* pidl/NDR/Parser: split off ParseArrayPullGetSize() and ParseArrayPullGetLength()Stefan Metzmacher2012-04-101-13/+42
| | | | metze
* pidl/NDR/Parser: simplify logic in DeclareArrayVariables*()Stefan Metzmacher2012-04-101-8/+6
| | | | metze
* pidl/NDR/Parser: declare all union helper variables in ParseUnionPull()Stefan Metzmacher2012-04-101-2/+2
| | | | metze
* pidl: add more mapped typesAndrew Tridgell2012-02-081-1/+7
| | | | | | | | when we #define one type to another, we need special handling in the python generator Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Feb 8 04:50:06 CET 2012 on sn-devel-104
* idl: add to_null propertyDavid Disseldorp2012-01-141-1/+8
| | | | | | | | | | to_null specifies that character conversion should only occur until the null pointer in an array based string. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Jan 14 00:51:54 CET 2012 on sn-devel-104