Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
abbbd6a5
Commit
abbbd6a5
authored
Jan 29, 2015
by
Chen Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mark location of domain and ipset lookup
parent
0491805d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/forward.c
src/forward.c
+2
-0
No files found.
src/forward.c
View file @
abbbd6a5
...
...
@@ -156,6 +156,7 @@ static unsigned int search_servers(time_t now, struct all_addr **addrpp,
flags
=
F_NOERR
;
}
}
//TODO add fast hash lookup
else
if
(
serv
->
flags
&
SERV_HAS_DOMAIN
)
{
unsigned
int
domainlen
=
strlen
(
serv
->
domain
);
...
...
@@ -538,6 +539,7 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
(
void
)
do_bit
;
#ifdef HAVE_IPSET
// TODO add hash lookup
if
(
daemon
->
ipsets
&&
extract_request
(
header
,
n
,
daemon
->
namebuff
,
NULL
))
{
/* Similar algorithm to search_servers. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment