this one wasn't much don't look

This commit is contained in:
malloc 2019-01-31 16:21:59 -06:00
parent b6546d5318
commit 8b05221e51
2 changed files with 13 additions and 2 deletions

View file

@ -182,3 +182,14 @@ int glv_ip_isv4(const ipaddr_t* addr) {
int glv_ip_valid(const ipaddr_t* addr) {
return addr->cidr == -1;
}
char* glv_ip_ntoa(const ipaddr_t* addr) {
if(!glv_ip_isv4(addr))
return glv_ipv6_ntoa(addr);
}
char* glv_ipv6_ntoa(const ipaddr_t* addr) {
}

View file

@ -22,7 +22,7 @@ int glv_ip_identical(const ipaddr_t* lhs, const ipaddr_t* rhs);
int glv_ip_isv4(const ipaddr_t* addr);
int glv_ip_valid(const ipaddr_t* addr);
int glv_ip_ntoa(const ipaddr_t* addr, char* out);
int glv_ipv6_ntoa(const ipaddr_t* addr, char* out);
char* glv_ip_ntoa(const ipaddr_t* addr);
char* glv_ipv6_ntoa(const ipaddr_t* addr);
#endif