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
22d904db
Commit
22d904db
authored
Feb 26, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RA on *BSD (missing sa_len)
parent
741c2952
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
src/forward.c
src/forward.c
+3
-0
src/radv.c
src/radv.c
+8
-5
No files found.
src/forward.c
View file @
22d904db
...
...
@@ -106,8 +106,11 @@ void send_from(int fd, int nowild, char *packet, size_t len,
msg
.
msg_controllen
=
0
;
goto
retry
;
}
if
(
retry_send
())
goto
retry
;
my_syslog
(
LOG_ERR
,
_
(
"failed to send packet: %s"
),
strerror
(
errno
));
}
}
...
...
src/radv.c
View file @
22d904db
...
...
@@ -20,10 +20,11 @@
not used by DHCPv4 code. */
#include "dnsmasq.h"
#include <netinet/icmp6.h>
#ifdef HAVE_DHCP6
#include <netinet/icmp6.h>
struct
ra_param
{
int
ind
,
managed
,
found_context
,
first
;
char
*
if_name
;
...
...
@@ -102,8 +103,7 @@ void ra_start_unsolicted(time_t now)
for
(
context
=
daemon
->
ra_contexts
;
context
;
context
=
context
->
next
)
context
->
ra_time
=
now
+
(
rand16
()
/
13000
);
/* re-do ras after a short time, in case the first gets lost.
This is reset once that's done. */
/* re-do frequently for a minute or so, in case the first gets lost. */
ra_short_period_start
=
now
;
}
...
...
@@ -241,6 +241,9 @@ static void send_ra(int iface, char *iface_name, struct in6_addr *dest)
/* decide where we're sending */
memset
(
&
addr
,
0
,
sizeof
(
addr
));
#ifdef HAVE_SOCKADDR_SA_LEN
addr
.
sin6_len
=
sizeof
(
struct
sockaddr_in6
);
#endif
addr
.
sin6_family
=
AF_INET6
;
addr
.
sin6_port
=
htons
(
IPPROTO_ICMPV6
);
if
(
dest
)
...
...
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