Both RFC 6550 and RFC 8505 use a 8-bit lollipop counter, with the very same constants.
This is not a big issue, and I did develop a class implementing it - no problem.
The problem (if it's a problem) is that the code is very specialized, meaning that it *only* supports 8-bit counters. I can extend it to use different internal constants but it kinda misses the point of making it generic.
Do you think it's worth extending it to be a template and be something like LollipopCounter<uint8_t>, LollipopCounter <uint16_t> ?
In case, is someone expert i templates willing to help me ?
last but not least, since it's a counter the best place to put it is in... I'd say network/utils, but suggestions are welcome.