mirror of /home/gitosis/repositories/libowfat.git
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
333 B
16 lines
333 B
#include "scan.h" |
|
|
|
size_t scan_ip6_flat(const char *s,char ip[16]) |
|
{ |
|
size_t i; |
|
for (i=0; i<16; i++) { |
|
int tmp; |
|
tmp=scan_fromhex((unsigned char)*s++); |
|
if (tmp<0) return 0; |
|
ip[i]=(char)(tmp << 4); |
|
tmp=scan_fromhex((unsigned char)*s++); |
|
if (tmp<0) return 0; |
|
ip[i] = ip[i] | (char)tmp; |
|
} |
|
return 32; |
|
}
|
|
|