Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nuttx-apps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
nuttx-apps
Commits
31a0c289
Commit
31a0c289
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Clean-up routing table design.
parent
09fe37c5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
netutils/resolv/resolv.c
+4
-0
4 additions, 0 deletions
netutils/resolv/resolv.c
with
4 additions
and
0 deletions
netutils/resolv/resolv.c
+
4
−
0
View file @
31a0c289
...
@@ -273,7 +273,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
...
@@ -273,7 +273,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
char
buffer
[
RECV_BUFFER_SIZE
];
char
buffer
[
RECV_BUFFER_SIZE
];
struct
dns_answer
*
ans
;
struct
dns_answer
*
ans
;
struct
dns_hdr
*
hdr
;
struct
dns_hdr
*
hdr
;
#if 0 /* Not used */
uint8_t nquestions;
uint8_t nquestions;
#endif
uint8_t
nanswers
;
uint8_t
nanswers
;
int
ret
;
int
ret
;
...
@@ -305,7 +307,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
...
@@ -305,7 +307,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
* and the extrarr are simply discarded.
* and the extrarr are simply discarded.
*/
*/
#if 0 /* Not used */
nquestions = htons(hdr->numquestions);
nquestions = htons(hdr->numquestions);
#endif
nanswers
=
htons
(
hdr
->
numanswers
);
nanswers
=
htons
(
hdr
->
numanswers
);
/* Skip the name in the question. XXX: This should really be
/* Skip the name in the question. XXX: This should really be
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment