Update code

This commit is contained in:
Nick Peng
2018-05-12 00:24:18 +08:00
parent bbb8742283
commit b8cb84fc4a
3 changed files with 364 additions and 149 deletions

View File

@@ -63,6 +63,7 @@ static int _dns_server_process(struct timeval *now)
goto errout;
}
dns_packet_init(packet, sizeof(rsppacket));
dns_decode(packet, inpacket, len);
printf("head.id = %d\n", packet->head.id);