Types of changes
- 'Added' for new features.
- 'Changed' for changes in existing functionality.
- 'Deprecated' for soon-to-be removed features.
- 'Removed' for now removed features.
- 'Fixed' for any bug fixes.
- 'Security' in case of vulnerabilities.
- bump dependencies
- bump zdt dependency to 0.2.1
- bump flags dependency flags to newest commit (requires zig 0.14-dev to build the ntp-client binary)
- refactor main
- enforce match of source and target address family. An IPv6 server should only be reachable if an IPv6 source address is used.
- use 'flags' package v0.6.0
- result validation / flagging
- pprinter for flags
- handle NTP era for Unix time input / output
- ntp.Packet: make init method public, buffer initialiizer method is now called initToBuffer
- use lazy dependencies so that another project can use ntp.zig without having to fetch the dependencies of this project
- use parseIp instead of resolveIp, avoids "std.net.if_nametoindex unimplemented for this OS" error on specific OS (thanks @part1zano on codeberg)
- disable autodoc feature in build.zig since unused
- add parser for ref ID (stratum 0 or 1)
- build/zon: expose ntp.zig as a library
- keep client timestamps local to client
- send random number as client xmt
- add 5 second timeout if server doesn't answer
- revise pprint to console
- more tests, some new functionality (correctTime, refIDprintable)
- dependency update
- add IPv6 support