summaryrefslogtreecommitdiff
path: root/tools/pidl
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-11-03 11:50:53 -0800
committerGuy Harris <guy@alum.mit.edu>2014-11-03 19:51:18 +0000
commit26d4fb0f3977c5246335b9a18f8a98091e5839b6 (patch)
tree7949d3f9aceb965d35612bc7a6671c4710e87a05 /tools/pidl
parentd993cdd4496395171b180aed6ba394cfb047db71 (diff)
downloadwireshark-26d4fb0f3977c5246335b9a18f8a98091e5839b6.tar.gz
add definition for IPV4/IPV6 types
Pick up change from Samba: commit 49e0dc7ad0f3c29df20badacc4294f1adc375aaf Author: Matthieu Patou <mat@matws.net> Date: Fri Oct 25 23:11:37 2013 -0700 pidl-wireshark: add definition for IPV4/IPV6 types Change-Id: I514f855370c1d9355ffc6ff9b31f8aedd70b9122 Reviewed-on: https://code.wireshark.org/review/5096 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools/pidl')
-rw-r--r--tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 3f08c67926..4aaaccfd71 100644
--- a/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/tools/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -1050,6 +1050,8 @@ sub Initialize($$)
"offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, di, drep, \@HF\@, \@PARAM\@);","FT_UINT32", "BASE_DEC", 0, "VALS(WERR_errors)", 4);
$self->register_type("NTSTATUS",
"offset = PIDL_dissect_uint32(tvb, offset, pinfo, tree, di, drep, \@HF\@, \@PARAM\@);","FT_UINT32", "BASE_DEC", 0, "VALS(NT_errors)", 4);
+ $self->register_type("ipv6address", "proto_tree_add_item(tree, \@HF\@, tvb, offset, 16, ENC_NA); offset += 16;", "FT_IPv6", "BASE_NONE", 0, "NULL", 16);
+ $self->register_type("ipv4address", "proto_tree_add_item(tree, \@HF\@, tvb, offset, 4, ENC_BIG_ENDIAN); offset += 4;", "FT_IPv4", "BASE_NONE", 0, "NULL", 4);
}