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
2f9fd1dc
Commit
2f9fd1dc
authored
Oct 01, 2013
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix FTBFS when NO_IPV6 defined.
parent
8f3194f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/helper.c
src/helper.c
+8
-3
No files found.
src/helper.c
View file @
2f9fd1dc
...
@@ -61,6 +61,9 @@ struct script_data
...
@@ -61,6 +61,9 @@ struct script_data
#else
#else
time_t
expires
;
time_t
expires
;
#endif
#endif
#ifdef HAVE_TFTP
off_t
file_len
;
#endif
#ifdef HAVE_DHCP6
#ifdef HAVE_DHCP6
struct
in6_addr
addr6
;
struct
in6_addr
addr6
;
int
iaid
,
vendorclass_count
;
int
iaid
,
vendorclass_count
;
...
@@ -289,10 +292,12 @@ int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd)
...
@@ -289,10 +292,12 @@ int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd)
inet_ntop
(
AF_INET6
,
&
data
.
addr6
,
daemon
->
addrbuff
,
ADDRSTRLEN
);
inet_ntop
(
AF_INET6
,
&
data
.
addr6
,
daemon
->
addrbuff
,
ADDRSTRLEN
);
#endif
#endif
#ifdef HAVE_TFTP
/* file length */
/* file length */
if
(
data
.
action
==
ACTION_TFTP
)
if
(
data
.
action
==
ACTION_TFTP
)
sprintf
(
is6
?
daemon
->
packet
:
daemon
->
dhcp_buff
,
"%u"
,
data
.
iaid
);
sprintf
(
is6
?
daemon
->
packet
:
daemon
->
dhcp_buff
,
"%lu"
,
(
unsigned
long
)
data
.
file_len
);
#endif
#ifdef HAVE_LUASCRIPT
#ifdef HAVE_LUASCRIPT
if
(
daemon
->
luascript
)
if
(
daemon
->
luascript
)
{
{
...
@@ -739,7 +744,7 @@ void queue_tftp(off_t file_len, char *filename, union mysockaddr *peer)
...
@@ -739,7 +744,7 @@ void queue_tftp(off_t file_len, char *filename, union mysockaddr *peer)
buf
->
action
=
ACTION_TFTP
;
buf
->
action
=
ACTION_TFTP
;
buf
->
hostname_len
=
filename_len
;
buf
->
hostname_len
=
filename_len
;
buf
->
iaid
=
file_len
;
buf
->
file_len
=
file_len
;
if
((
buf
->
flags
=
peer
->
sa
.
sa_family
)
==
AF_INET
)
if
((
buf
->
flags
=
peer
->
sa
.
sa_family
)
==
AF_INET
)
buf
->
addr
=
peer
->
in
.
sin_addr
;
buf
->
addr
=
peer
->
in
.
sin_addr
;
...
...
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