EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 93

no-image

EVB-PIC24

Manufacturer Part Number
EVB-PIC24
Description
Development Boards & Kits - PIC / DSPIC W3150A+EVAL BOARD BASED ON PIC24
Manufacturer
WIZnet
Datasheet

Specifications of EVB-PIC24

Rohs
yes
Product
Development Kits
Interface Type
RS-232
Data Bus Width
16 bit
Dimensions
50 mm x 40 mm
dhdr.qdcount = *((u_int*)cur_ptr)
dhdr.ancount = *((u_int*)cur_ptr+2)
dhdr.nscount = *((u_int*)cur_ptr+4)
dhdr.arcount = *((u_int*)cur_ptr+6)
cur_ptr += 8;
u_int i;
DHDR dhdr;
char* cur_ptr = dns_buf;
Declare & Initialize Local Variables
dhdr.id = *((u_int*)cur_ptr)
dns_id++
cur_ptr += 2
dhdr.flag0 = *cur_ptr++
dhdr.flag1 = *cur_ptr++
dhdr.flag0 & 0x80 == 0
dhdr.flag1 & 0x80 == 0
dns_parse_response()
dhdr.flag1 & 0x0F != 0
dhdr.id != dns_id
i = 0
N
N
N
N
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
Y
i < dhdr.qdcount
Y
Y
Y
i = 0
<Fig 3.42: dns_parse_response()>
i < dhdr.ancount
N
RETURN 0
Display the Error
i = 0
of Response
N
i < dhdr.nscount
Y
i = 0
N
i < dhdr.arcount
i++
Y
RETURN 1
N
i++
Y
dns_parse_question(cur_ptr)
Parse the Question Section
i++
Y
Parse the Answer Section
dns_answer(cur_ptr)
i++
(Unimplemented)
TODO
(Unimplemented)
TODO
83

Related parts for EVB-PIC24