From Jose Pedro Oliveira: pcapio is writing the if_speed value in the IDB_TSRESOL...
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 25 Feb 2012 08:20:50 +0000 (08:20 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 25 Feb 2012 08:20:50 +0000 (08:20 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41184 f5534014-38df-0310-8fa8-9805f1628bb7

pcapio.c

index d29bd93..1527380 100644 (file)
--- a/pcapio.c
+++ b/pcapio.c
@@ -526,7 +526,7 @@ libpcap_write_interface_description_block(FILE *fp,
                option.type = IDB_TSRESOL;
                option.value_length = sizeof(guint8);
                WRITE_DATA(fp, &option, sizeof(struct option), *bytes_written, err);
-               WRITE_DATA(fp, &if_speed, sizeof(guint8), *bytes_written, err);
+               WRITE_DATA(fp, &tsresol, sizeof(guint8), *bytes_written, err);
                WRITE_DATA(fp, &padding, 3 , *bytes_written, err);
        }