[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #22108] DNS problem
From: |
Cui hengbin |
Subject: |
[lwip-devel] [bug #22108] DNS problem |
Date: |
Fri, 25 Jan 2008 03:26:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.8.1.10) Gecko/20071213 Fedora/2.0.0.10-3.fc8 Firefox/2.0.0.10 |
URL:
<http://savannah.nongnu.org/bugs/?22108>
Summary: DNS problem
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: phant
Submitted on: Friday 01/25/08 at 03:26
Category: None
Severity: 3 - Normal
Item Group: Change Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
Hi All:
When I used 1.30. find the DNS type and class are unkown when attched
"www.baidu.com".
these problem would be the dns_query's struct address alignment in my
target.I think these should produce when query last address isn't aligned with
some host name.
so I change the code as follow:
In func dns_send:
struct dns_query *qry; ====>struct dns_query;
...
/* fill dns query */
qry = (struct dns_query *)query; ====>
qry->type = htons(DNS_RRTYPE_A); ====>qry.type = htons(DNS_RRTYPE_A);
qry->class = htons(DNS_RRCLASS_IN); ====>qry.class =
htons(DNS_RRCLASS_IN);
====> memcpy(query,&qry,sizeof(struct dns_query));
...
In func dns_recv:
...
struct dns_answer *ans; ====> struct dns_answer ans;
....
ans = (struct dns_answer *)pHostname; ===>
memcpy(&sns,pHostname,sizeof(struct dns_answer));
...
and change all "ans->" to "ans." in dns_recv function;
FYI
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?22108>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #22108] DNS problem,
Cui hengbin <=
- [lwip-devel] [bug #22108] DNS problem, Frédéric Bernon, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Frédéric Bernon, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Cui hengbin, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Frédéric Bernon, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Frédéric Bernon, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Cui hengbin, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Frédéric Bernon, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Kieran Mansley, 2008/01/25
- [lwip-devel] [bug #22108] DNS problem, Frédéric Bernon, 2008/01/25