The re-transmit counters can overflow the 32 bit representation resulting
in negative values being displayed. Background being that the numbers are
treated at some point as signed INT rather than unsigned INT.
Change the counters from 32 bit to 64 bit, should provide sufficient room
to avoid any overflow. Not the nicest solution but it works
Fixes: #10077
Signed-off-by: Roland Barenbrug <roland@treslong.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
}
static inline void m_u32(const char *id, uint32_t value) {
- blobmsg_add_u32(&b, id, value);
+ blobmsg_add_u64(&b, id, value);
}
static inline void m_str(const char *id, const char *value) {