Add support for easily formatting IPv6 addresses

This commit is contained in:
Samuel Thibault 2024-01-05 18:40:00 +01:00
parent 01f0062d2d
commit 3186e8aa99
2 changed files with 14 additions and 1 deletions

1
util.h
View file

@ -2,6 +2,7 @@
#define __UTIL_H__
char *fmtaddr(in_addr_t addr, int n);
char *fmtaddr6(struct in6_addr *addr, int n);
char *fmtMacAddr(uint8_t *pMacAddr);
void *shared_malloc(unsigned int size);
pid_t fork_and_close(void);