util: add function for printing access subnets

This commit is contained in:
Miroslav Lichvar
2022-11-16 15:57:46 +01:00
parent 7122321249
commit d0fd04c0a2
3 changed files with 31 additions and 0 deletions

2
util.h
View File

@@ -120,6 +120,8 @@ extern int UTI_CompareIPs(const IPAddr *a, const IPAddr *b, const IPAddr *mask);
extern char *UTI_IPSockAddrToString(const IPSockAddr *sa);
extern char *UTI_IPSubnetToString(IPAddr *subnet, int bits);
extern char *UTI_TimeToLogForm(time_t t);
/* Adjust time following a frequency/offset change */