|
|
e38f15 |
diff -up mtr-0.83/report.c.orig mtr-0.83/report.c
|
|
|
e38f15 |
--- mtr-0.83/report.c.orig 2013-02-18 15:46:33.000000000 +0100
|
|
|
e38f15 |
+++ mtr-0.83/report.c 2013-02-18 15:51:38.263294586 +0100
|
|
|
e38f15 |
@@ -212,19 +212,19 @@ void xml_close(void)
|
|
|
e38f15 |
ip_t *addr;
|
|
|
e38f15 |
char name[81];
|
|
|
e38f15 |
|
|
|
e38f15 |
- printf("
|
|
|
e38f15 |
- printf(" TOS=0x%X", tos);
|
|
|
e38f15 |
+ printf("
|
|
|
e38f15 |
+ printf(" TOS=\"0x%X\"", tos);
|
|
|
e38f15 |
if(cpacketsize >= 0) {
|
|
|
e38f15 |
- printf(" PSIZE=%d", cpacketsize);
|
|
|
e38f15 |
+ printf(" PSIZE=\"%d\"", cpacketsize);
|
|
|
e38f15 |
} else {
|
|
|
e38f15 |
- printf(" PSIZE=rand(%d-%d)",MINPACKET, -cpacketsize);
|
|
|
e38f15 |
+ printf(" PSIZE=\"rand(%d-%d)\"",MINPACKET, -cpacketsize);
|
|
|
e38f15 |
}
|
|
|
e38f15 |
if( bitpattern>=0 ) {
|
|
|
e38f15 |
- printf(" BITPATTERN=0x%02X", (unsigned char)(bitpattern));
|
|
|
e38f15 |
+ printf(" BITPATTERN=\"0x%02X\"", (unsigned char)(bitpattern));
|
|
|
e38f15 |
} else {
|
|
|
e38f15 |
- printf(" BITPATTERN=rand(0x00-FF)");
|
|
|
e38f15 |
+ printf(" BITPATTERN=\"rand(0x00-FF)\"");
|
|
|
e38f15 |
}
|
|
|
e38f15 |
- printf(" TESTS=%d>\n", MaxPing);
|
|
|
e38f15 |
+ printf(" TESTS=\"%d\">\n", MaxPing);
|
|
|
e38f15 |
|
|
|
e38f15 |
max = net_max();
|
|
|
e38f15 |
at = net_min();
|
|
|
e38f15 |
@@ -232,7 +232,7 @@ void xml_close(void)
|
|
|
e38f15 |
addr = net_addr(at);
|
|
|
e38f15 |
snprint_addr(name, sizeof(name), addr);
|
|
|
e38f15 |
|
|
|
e38f15 |
- printf(" <HUB COUNT=%d HOST=%s>\n", at+1, name);
|
|
|
e38f15 |
+ printf(" <HUB COUNT=\"%d\" HOST=\"%s\">\n", at+1, name);
|
|
|
e38f15 |
for( i=0; i
|
|
|
e38f15 |
j = fld_index[fld_active[i]];
|
|
|
e38f15 |
if (j <= 0) continue;
|