diff options
author | Luke Leighton <lkcl@samba.org> | 2000-05-27 11:08:05 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-05-27 11:08:05 +0000 |
commit | 55a3e4b5922eff4110970a2ed2372c431ac70918 (patch) | |
tree | b8e4702ec53d58f7784b4c506b5ec6549ae63dd3 | |
parent | 7e3fe77ab25cf0bde7950e0702b7e25a82b33b18 (diff) | |
download | samba-55a3e4b5922eff4110970a2ed2372c431ac70918.tar.gz samba-55a3e4b5922eff4110970a2ed2372c431ac70918.tar.xz samba-55a3e4b5922eff4110970a2ed2372c431ac70918.zip |
optional (0of or 1of) with "[+]" semantics.
-rw-r--r-- | source/aparser/cifs.struct | 2 | ||||
-rw-r--r-- | source/aparser/parsefn.awk | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/source/aparser/cifs.struct b/source/aparser/cifs.struct index 7274ce60f6b..d3cee42e68e 100644 --- a/source/aparser/cifs.struct +++ b/source/aparser/cifs.struct @@ -101,7 +101,7 @@ typedef struct { /* security package if CAP_EXTENDED_SECURITY is */ /* on in the Capabilities field; else challenge */ /* for CIFS challenge/response authentication. */ - string OemDomainName; /*The name of the domain (in OEM chars); not */ + string OemDomainName[+]; /*The name of the domain (in OEM chars); not */ /* present if CAP_EXTENDED_SECURITY is on in the */ /* Capabilities field */ } R_NEGPROT_17; diff --git a/source/aparser/parsefn.awk b/source/aparser/parsefn.awk index bff4521ba63..8d8f8103192 100644 --- a/source/aparser/parsefn.awk +++ b/source/aparser/parsefn.awk @@ -16,6 +16,11 @@ function parse_array(f, v, elnum, flags, v["FLAGS"] = flags; v["ARRAY_LEN"] = array_len; + if (array_len=="+") { + print_template(f,"prs_array_optional.tpl", v); + return; + } + if (array_len=="*") { print_template(f,"prs_array_remainder.tpl", v); return; |