Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
212 B

  1. #include "fmt.h"
  2. #include "byte.h"
  3. #include "ip4.h"
  4. #include "ip6.h"
  5. unsigned int fmt_ip6c(char *s,const char ip[16])
  6. {
  7. if (ip6_isv4mapped(ip))
  8. return fmt_ip4(s,ip+12);
  9. else
  10. return fmt_ip6(s,ip);
  11. }