aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2003-12-10 22:52:08 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2003-12-10 22:52:08 +0000
commita92bb0da45732fcdf60a54bbdd9810983ec065ae (patch)
tree80de28b0e1cf47408c825e89e829b5ac7bdce158 /print.c
parentca6b9158622fe1eae1d811e9d5ed354791114fb0 (diff)
Analyzer's PDML will be changed to start the packet offset (the "pos" field)
at 0 instead of 1. This works better for Ethereal, as our offsets start at 0. Change the "geninfo" pseudo-protocol to use pos="0" instead of pos="1". svn path=/trunk/; revision=9238
Diffstat (limited to 'print.c')
-rw-r--r--print.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/print.c b/print.c
index 1494e51181..103766000b 100644
--- a/print.c
+++ b/print.c
@@ -1,7 +1,7 @@
/* print.c
* Routines for printing packet analysis trees.
*
- * $Id: print.c,v 1.66 2003/12/09 22:27:28 ulfl Exp $
+ * $Id: print.c,v 1.67 2003/12/10 22:52:08 gram Exp $
*
* Gilbert Ramirez <gram@alumni.rice.edu>
*
@@ -438,27 +438,27 @@ print_pdml_geninfo(proto_tree *tree, print_data *pdata)
/* Print geninfo start */
fprintf(pdata->fh,
-" <proto name=\"geninfo\" pos=\"1\" showname=\"General information\" size=\"%u\">\n",
+" <proto name=\"geninfo\" pos=\"0\" showname=\"General information\" size=\"%u\">\n",
frame_finfo->length);
/* Print geninfo.num */
fprintf(pdata->fh,
-" <field name=\"num\" pos=\"1\" show=\"%u\" showname=\"Number\" value=\"%x\" size=\"%u\"/>\n",
+" <field name=\"num\" pos=\"0\" show=\"%u\" showname=\"Number\" value=\"%x\" size=\"%u\"/>\n",
num, num, frame_finfo->length);
/* Print geninfo.len */
fprintf(pdata->fh,
-" <field name=\"len\" pos=\"1\" show=\"%u\" showname=\"Packet Length\" value=\"%x\" size=\"%u\"/>\n",
+" <field name=\"len\" pos=\"0\" show=\"%u\" showname=\"Packet Length\" value=\"%x\" size=\"%u\"/>\n",
len, len, frame_finfo->length);
/* Print geninfo.caplen */
fprintf(pdata->fh,
-" <field name=\"caplen\" pos=\"1\" show=\"%u\" showname=\"Captured Length\" value=\"%x\" size=\"%u\"/>\n",
+" <field name=\"caplen\" pos=\"0\" show=\"%u\" showname=\"Captured Length\" value=\"%x\" size=\"%u\"/>\n",
caplen, caplen, frame_finfo->length);
/* Print geninfo.timestamp */
fprintf(pdata->fh,
-" <field name=\"timestamp\" pos=\"1\" show=\"%s\" showname=\"Captured Time\" value=\"%d.%09d\" size=\"%u\"/>\n",
+" <field name=\"timestamp\" pos=\"0\" show=\"%s\" showname=\"Captured Time\" value=\"%d.%09d\" size=\"%u\"/>\n",
abs_time_to_str(timestamp), (int) timestamp->secs, timestamp->nsecs, frame_finfo->length);
/* Print geninfo end */