Closed jjr-simiatec closed 3 weeks ago
Interesting observations, I'll have a look at it over the weekend! I've at least reproduced the build warnings. The counter issue could definitely be related, but it'll take me a while to find and dust off an old 32-bit machine ... I'll see what I can do
Should be fixed now.
The other symptom I noticed is that runtime counters as displayed by mroutectl appear to be slow.
This is possibly because of 53f1916, which reverted an old change of the internal TIMER_INTERVAL
from 2 seconds back to 5 seconds.
Hey @troglobit! I discovered this when compiling mrouted 4.6-dev using a Buildroot v2024.08.1 derived toolchain that had the
Build Y2038-ready code
option enabled and target set to ARM Cortex-A7. This results in the following being added toCPPFLAGS
:-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64
During compilation warnings are emitted, for example:
These can then translate into runtime errors if mrouted is provoked in the right way:
The other symptom I noticed is that runtime counters as displayed by mroutectl appear to be slow. It's most likely a formatting problem as above, but just thought I'd mention it...
The easiest way to see this is to run an instance of mrouted on two different nodes such that they show up in each others
Neighbor Table
as displayed by mroutectl. One node is running the Y2038-ready build while the other is running a build with a natively sizedtime_t
. The neightborUptime
ticks up every second on the native node but not on the Y2038-ready node.