summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-08-10 15:32:59 +0200
committerKai Blin <kai@samba.org>2010-10-04 20:59:59 +0200
commit013780b1e1942522dfee59d973a341b5f18ace67 (patch)
tree708209ff5044b0650b88054125d628a6ca5865e1 /pidl
parent10a4ea7219bb8a1b880b1f0ae4fb39b5f479bab3 (diff)
downloadsamba-013780b1e1942522dfee59d973a341b5f18ace67.tar.gz
samba-013780b1e1942522dfee59d973a341b5f18ace67.tar.bz2
samba-013780b1e1942522dfee59d973a341b5f18ace67.zip
ndr: Add support for pulling/printing an ipv6address type
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/NDR.pm1
-rw-r--r--pidl/lib/Parse/Pidl/Typelist.pm5
2 files changed, 4 insertions, 2 deletions
diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm
index f079fbc650..4961cda99e 100644
--- a/pidl/lib/Parse/Pidl/NDR.pm
+++ b/pidl/lib/Parse/Pidl/NDR.pm
@@ -75,6 +75,7 @@ my $scalar_alignment = {
'nbt_string' => 4,
'wrepl_nbt_name' => 4,
'ipv4address' => 4,
+ 'ipv6address' => 4, #16?
'dnsp_name' => 1
};
diff --git a/pidl/lib/Parse/Pidl/Typelist.pm b/pidl/lib/Parse/Pidl/Typelist.pm
index 238ad834a4..b841e62209 100644
--- a/pidl/lib/Parse/Pidl/Typelist.pm
+++ b/pidl/lib/Parse/Pidl/Typelist.pm
@@ -20,8 +20,8 @@ use strict;
my %types = ();
my @reference_scalars = (
- "string", "string_array", "nbt_string",
- "wrepl_nbt_name", "ipv4address"
+ "string", "string_array", "nbt_string",
+ "wrepl_nbt_name", "ipv4address", "ipv6address"
);
# a list of known scalar types
@@ -57,6 +57,7 @@ my %scalars = (
"nbt_string" => "const char *",
"wrepl_nbt_name"=> "struct nbt_name *",
"ipv4address" => "const char *",
+ "ipv6address" => "const char *",
"dnsp_name" => "const char *",
);