change all file offsets from long to gint64 so we can - theoretically - handle files...
[obnox/wireshark/wip.git] / epan / dissectors / packet-frame.c
index 1d8b4ef965e9863bb97553041052b2514ae75eac..65d50b3249702521ef996a447af768ccfa1c3eec 100644 (file)
@@ -252,9 +252,9 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
          }
 
          if (show_file_off) {
-                 proto_tree_add_int_format(fh_tree, hf_frame_file_off, tvb,
+                 proto_tree_add_int64_format(fh_tree, hf_frame_file_off, tvb,
                                  0, 0, pinfo->fd->file_off,
-                                 "File Offset: %ld (0x%lx)",
+                                 "File Offset: %lld (0x%llx)",
                                  pinfo->fd->file_off, pinfo->fd->file_off);
          }
 
@@ -477,7 +477,7 @@ proto_register_frame(void)
                        "", HFILL }},
 
                { &hf_frame_file_off,
-               { "File Offset",        "frame.file_off", FT_INT32, BASE_DEC, NULL, 0x0,
+               { "File Offset",        "frame.file_off", FT_INT64, BASE_DEC, NULL, 0x0,
                        "", HFILL }},
 
                { &hf_frame_marked,