diff options
author | Matthieu Patou <mat@matws.net> | 2013-10-01 12:04:02 -0700 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-10-09 22:06:47 +0200 |
commit | 87fb54b77f4b9caaf2b25635b7813e29a448aaa6 (patch) | |
tree | 45f4afa3da568b9a6968715dd7eb0ed8a7d319b7 /pidl/lib/Parse/Pidl/Wireshark/NDR.pm | |
parent | 755bc4ed29c89fc15d4230ce8b828b3afcfa2912 (diff) | |
download | samba-87fb54b77f4b9caaf2b25635b7813e29a448aaa6.tar.gz |
pidl-wireshark: add the type dom_sid28 and call ad-hoc dissector
Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'pidl/lib/Parse/Pidl/Wireshark/NDR.pm')
-rw-r--r-- | pidl/lib/Parse/Pidl/Wireshark/NDR.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm index efc617bb008..1d64e7f3d47 100644 --- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm +++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm @@ -1000,13 +1000,19 @@ sub Initialize($$) $self->register_type("NTTIME_hyper", "offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep, \@HF\@);","FT_ABSOLUTE_TIME", "ABSOLUTE_TIME_LOCAL", 0, "NULL", 4); $self->register_type("time_t", "offset = dissect_ndr_time_t(tvb, offset, pinfo,tree, drep, \@HF\@, NULL);","FT_ABSOLUTE_TIME", "ABSOLUTE_TIME_LOCAL", 0, "NULL", 4); $self->register_type("NTTIME_1sec", "offset = dissect_ndr_nt_NTTIME(tvb, offset, pinfo, tree, drep, \@HF\@);", "FT_ABSOLUTE_TIME", "ABSOLUTE_TIME_LOCAL", 0, "NULL", 4); - $self->register_type("SID", " + $self->register_type("dom_sid28", "{ + dcerpc_info *di = (dcerpc_info *)pinfo->private_data; + di->hf_index = \@HF\@; + + offset = dissect_ndr_nt_SID28(tvb, offset, pinfo, tree, drep); + }", "FT_STRING", "BASE_NONE", 0, "NULL", 4); + $self->register_type("SID", "{ dcerpc_info *di = (dcerpc_info *)pinfo->private_data; di->hf_index = \@HF\@; offset = dissect_ndr_nt_SID_with_options(tvb, offset, pinfo, tree, drep, param); - ","FT_STRING", "BASE_NONE", 0, "NULL", 4); + }", "FT_STRING", "BASE_NONE", 0, "NULL", 4); $self->register_type("WERROR", "offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, drep, \@HF\@, \@PARAM\@);","FT_UINT32", "BASE_DEC", 0, "VALS(WERR_errors)", 4); $self->register_type("NTSTATUS", |