Files
mars-libowfat/socket/fmt_ip6ifc.c
2025-01-20 18:07:12 +00:00

12 lines
218 B
C

#include <libowfat/ip4.h>
#include <libowfat/ip6.h>
size_t fmt_ip6ifc(char *s,const char ip[16],uint32 scope_id)
{
if (ip6_isv4mapped(ip))
return fmt_ip4(s,ip+12);
else
return fmt_ip6if(s,ip,scope_id);
}