Fix for api change ipv6 structure

This commit is contained in:
Michele Bini 2014-02-13 16:30:02 +01:00
parent e139122168
commit 054ca25ec6

View File

@ -295,7 +295,7 @@ void opts_set_question(char *arg)
ntkresolv_safe_exit(1); ntkresolv_safe_exit(1);
} }
G_ALIGN(16); G_ALIGN(16);
memcpy(GQT->qstdata,&i6a.__in6_u,16); memcpy(GQT->qstdata,&i6a.in6_u,16);
GQT->ipv=ANDNS_IPV6; GQT->ipv=ANDNS_IPV6;
return; return;
case QTYPE_G: case QTYPE_G:
@ -377,7 +377,7 @@ void ip_bin_to_str(void *data,char *dst)
via=(void*)(&ia); via=(void*)(&ia);
break; break;
case AF_INET6: case AF_INET6:
memcpy(&(i6a.__in6_u),data,16); memcpy(&(i6a.in6_u),data,16);
via=(void*)(&i6a); via=(void*)(&i6a);
break; break;
default: default: