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.
 
 
 
 

16 lines
306 B

  1. #include "ip6.h"
  2. #include "str.h"
  3. #include "fmt.h"
  4. #include "socket.h"
  5. unsigned int fmt_ip6if(char* dest,const char* ip,uint32 scope_id) {
  6. int i=fmt_ip6(dest,ip);
  7. if (scope_id) {
  8. if (dest) {
  9. dest[i]='%'; ++i; dest+=i;
  10. }
  11. i+=fmt_str(dest,socket_getifname(scope_id));
  12. }
  13. return i;
  14. }