r18873: Use WERR_errors table rather than DOS_errors table for wireshark.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 24 Sep 2006 16:39:28 +0000 (16:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:17 +0000 (14:20 -0500)
(This used to be commit 5a2e103ea0b31e80e4b2c2237b5fd9940820cec6)

source4/pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 872a1492746700d6d3775541cb8985b79aa718b4..b91ba10e980cda4ad05a38044784e8ef04f7d57b 100644 (file)
@@ -452,7 +452,7 @@ sub Function($$$)
        } elsif ($fn->{RETURN_TYPE} eq "WERROR") {
                pidl_code "offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf\_$ifname\_werror, &status);\n";
                pidl_code "if (status != 0 && check_col(pinfo->cinfo, COL_INFO))";
-               pidl_code "\tcol_append_fstr(pinfo->cinfo, COL_INFO, \", Error: %s\", val_to_str(status, DOS_errors, \"Unknown DOS error 0x%08x\"));\n";
+               pidl_code "\tcol_append_fstr(pinfo->cinfo, COL_INFO, \", Error: %s\", val_to_str(status, WERR_errors, \"Unknown DOS error 0x%08x\"));\n";
                
                $hf_used{"hf\_$ifname\_werror"} = 1;
        } else {
@@ -749,7 +749,7 @@ sub ProcessInterface($)
        }
 
        if (defined($hf_used{"hf_$x->{NAME}_werror"})) {
-               register_hf_field("hf_$x->{NAME}_werror", "Windows Error", "$x->{NAME}.werror", "FT_UINT32", "BASE_HEX", "VALS(DOS_errors)", 0, "");
+               register_hf_field("hf_$x->{NAME}_werror", "Windows Error", "$x->{NAME}.werror", "FT_UINT32", "BASE_HEX", "VALS(WERR_errors)", 0, "");
        }
 
        RegisterInterface($x);