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
3b195961
Commit
3b195961
authored
Nov 26, 2013
by
Vladislav Grishenko
Committed by
Simon Kelley
Nov 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler warnings.
parent
d082faf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/forward.c
src/forward.c
+6
-2
src/network.c
src/network.c
+4
-1
No files found.
src/forward.c
View file @
3b195961
...
...
@@ -675,8 +675,10 @@ void receive_query(struct listener *listen, time_t now)
struct
in_addr
netmask
,
dst_addr_4
;
size_t
m
;
ssize_t
n
;
int
if_index
=
0
;
int
local_auth
=
0
,
auth_dns
=
0
;
int
if_index
=
0
,
auth_dns
=
0
;
#ifdef HAVE_AUTH
int
local_auth
=
0
;
#endif
struct
iovec
iov
[
1
];
struct
msghdr
msg
;
struct
cmsghdr
*
cmptr
;
...
...
@@ -916,7 +918,9 @@ unsigned char *tcp_request(int confd, time_t now,
{
size_t
size
=
0
;
int
norebind
=
0
;
#ifdef HAVE_AUTH
int
local_auth
=
0
;
#endif
int
checking_disabled
,
check_subnet
;
size_t
m
;
unsigned
short
qtype
;
...
...
src/network.c
View file @
3b195961
...
...
@@ -252,6 +252,8 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
struct
iname
*
tmp
;
#endif
(
void
)
prefixlen
;
if
(
!
indextoname
(
param
->
fd
,
if_index
,
ifr
.
ifr_name
)
||
ioctl
(
param
->
fd
,
SIOCGIFFLAGS
,
&
ifr
)
==
-
1
)
return
0
;
...
...
@@ -318,7 +320,8 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
{
al
->
next
=
zone
->
subnet
;
zone
->
subnet
=
al
;
al
->
prefixlen
=
prefixlen
;
al
->
addr
.
addr
.
addr6
=
addr
->
in6
.
sin6_addr
;
al
->
prefixlen
=
prefixlen
;
al
->
addr
.
addr
.
addr6
=
addr
->
in6
.
sin6_addr
;
al
->
flags
=
ADDRLIST_IPV6
;
}
}
...
...
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