Copy link
@gvanem

gvanem Sep 14, 2017

Contributor

A slight failure on this test using MSVC. The diff:

--- olsr-oobr-1.out
+++ NEW_py/olsr-oobr-1.out
@@ -2,5 +2,5 @@
     15.251.128.192.698 > 193.192.186.0.122: OLSRv4, seq 0x0800, length 2056
        Nameservice Message (0x82), originator 126.198.193.192, ttl 26, hop 145
-         vtime 0.063s, msg-seq 0x0008, length 127[|olsr]
+         vtime 0.062s, msg-seq 0x0008, length 127[|olsr]
 IP truncated-ip - 2315 bytes missing! (tos 0x0, ttl 18, id 4111, offset 0, flags [+, DF, rsvd], proto UDP (17), length 5373, bad cksum 8e7f (->975f)!)
     16.0.128.192.698 > 193.192.186.0.122: OLSRv4, seq 0x0400, length 512

A whopping 1 msec!

The same for the other vtime values. Caused by the ME_TO_DOUBLE() macro used in print-olsr.c.
Seems this macro ass-u_mes gcc.

Edit: I ran all tests using my Python-script, not the bash/perl stuff (works like a charm).