diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-11-24 22:13:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-11-24 22:13:28 +0000 |
commit | 91159d959f3fe965dad1ada9de5fb72b7c248b45 (patch) | |
tree | 3f1b306363ec2fc852db137c67115356010c2331 /epan | |
parent | 58771673a4e3c9d82902bb3f27be5be405883aff (diff) |
Note that I've filed a Samba bug for one of the problems.
svn path=/trunk/; revision=53555
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/pidl/README | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/epan/dissectors/pidl/README b/epan/dissectors/pidl/README index 570fff6380..6d1962fa92 100644 --- a/epan/dissectors/pidl/README +++ b/epan/dissectors/pidl/README @@ -117,7 +117,39 @@ because the NDR type is an empty string (not set?) and it's prepending pidl generates code that, after declaring a guint1632 variable, has, on the next line, a declaration that has a blank, a letter, and a -semicolon: +semicolon. It can't handle, for example: + + typedef enum { + FRSTRANS_RDC_FILTER_GENERIC = 0x0000, + FRSTRANS_RDC_FILTER_MAX = 0x0001, + FRSTRANS_RDC_FILTER_POINT = 0x0002, + FRSTRANS_RDC_MAX_ALGORITHM = 0x0003 + } frstrans_RdcChunckerAlgorithm; + + ... + + typedef [switch_type(frstrans_RdcChunckerAlgorithm)] union { + [case(FRSTRANS_RDC_FILTER_GENERIC)] + frstrans_RdcParameterGeneric filter_generic; + [case(FRSTRANS_RDC_FILTER_MAX)] + frstrans_RdcParameterFilterMax filter_max; + [case(FRSTRANS_RDC_FILTER_POINT)] + frstrans_RdcParameterFilterPoint filter_point; + } frstrans_RdcParameterUnion; + + typedef struct { + frstrans_RdcChunckerAlgorithm rdc_chunker_algorithm; + [switch_is(rdc_chunker_algorithm)] frstrans_RdcParameterUnion u; + } frstrans_RdcParameters; + +but there's no reason for it to bother to generate a C variable +corresponding to that union in the first place - it'd be unused. + +Samba bug 10291: + + https://bugzilla.samba.org/show_bug.cgi?id=10291 + +has been filed on this. dfs.idl frstrans.idl |