If we to see what actual packets that differ (if they can be parsed) we
can use pcap-print:
pcap-print reply.diff
+
+Or it can all be done with pipes, eliminating the need of files.
+./pcat-diff <(./pcat -a 213.154.224.1 20011009-134418-q50000.pkt) \
+<(./pcat 213.154.224.1 -p 5454 20011009-134418-q50000.pkt) | ./pcat-print
fprintf(fp, "\nOUTPUT FORMAT:\n");
fprintf(fp, " Each record consists of an index and then three packets.\n");
fprintf(fp, " Each packet is seperated by a line of '='s.\n");
+ fprintf(fp, " ==============\n");
+ fprintf(fp, " ==============\n");
fprintf(fp, " Index: xxx:xxx\n");
fprintf(fp, " ==============\n");
fprintf(fp, " query packet\n");
line[read - 1] = '\0';
switch(i % 4) {
case SEQUENCE:
+ printf_bar();
+ printf_bar();
printf("Index: %s\n", line);
printf_bar();
break;
} else {
ldns_pkt_print(stdout, p);
}
- printf_bar();
break;
}
i++;