From Mark C Brown,
authorAnders Broman <anders.broman@ericsson.com>
Wed, 26 Oct 2005 19:01:29 +0000 (19:01 -0000)
committerAnders Broman <anders.broman@ericsson.com>
Wed, 26 Oct 2005 19:01:29 +0000 (19:01 -0000)
Small patch correcting nettl.uid to unsigned and adding pduin/pduout as nettl.kind values...

svn path=/trunk/; revision=16320

epan/dissectors/packet-nettl.c
wiretap/wtap.h

index 64d0903c98fae877e520e495268426cd7382f82b..4f5888ed96f0500ed536b3968bbaed8b5cb2759d 100644 (file)
@@ -65,8 +65,10 @@ static gint ett_nettl = -1;
 static const value_string trace_kind[] = {
        { 0x80000000, "Incoming Header" },
        { 0x40000000, "Outgoing Header" },
-       { 0x20000000, "Incoming PDU" },
-       { 0x10000000, "Outgoing PDU" },
+       { 0x20000000, "Incoming PDU - PDUIN" },
+       { 0x20000000, "PDUIN" },
+       { 0x10000000, "Outgoing PDU - PDUOUT" },
+       { 0x10000000, "PDUOUT" },
        { 0x08000000, "Procedure" },
        { 0x04000000, "State" },
        { 0x02000000, "Error" },
@@ -212,7 +214,7 @@ dissect_nettl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                val_to_str(pinfo->pseudo_header->nettl.kind, trace_kind, "Unknown"));
             proto_tree_add_int(nettl_tree, hf_nettl_pid, tvb,
                0, 0, pinfo->pseudo_header->nettl.pid);
-            proto_tree_add_int(nettl_tree, hf_nettl_uid, tvb,
+            proto_tree_add_uint(nettl_tree, hf_nettl_uid, tvb,
                0, 0, pinfo->pseudo_header->nettl.uid);
 
       }
@@ -289,7 +291,7 @@ proto_register_nettl(void)
                "HP-UX Process/thread id", HFILL}},
 
        { &hf_nettl_uid,
-       { "User ID (uid)", "nettl.uid", FT_INT16, BASE_DEC, NULL, 0x0,
+       { "User ID (uid)", "nettl.uid", FT_UINT16, BASE_DEC, NULL, 0x0,
                "HP-UX User ID", HFILL}},
 
   };
index 1c07e457276d6b64c69dc673850e1ec55a5a5be6..287d8c8322c2e8e0b2a778d666d5264e3acf442d 100644 (file)
@@ -456,7 +456,7 @@ struct nettl_phdr {
        guint32 devid;
        guint32 kind;
        gint32  pid;
-       gint16  uid;
+       guint16 uid;
 };
 
 /* Packet "pseudo-header" for MTP2 files. */