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
f632e567
Commit
f632e567
authored
May 12, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cope with router-solicit packets without valid source address.
parent
2021c662
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
CHANGELOG
CHANGELOG
+3
-0
src/radv-protocol.h
src/radv-protocol.h
+1
-1
src/radv.c
src/radv.c
+3
-2
No files found.
CHANGELOG
View file @
f632e567
version 2.62
version 2.62
Update German translation. Thanks to Conrad Kostecki.
Update German translation. Thanks to Conrad Kostecki.
Cope with router-solict packets wich don't have a valid
source address. Thanks to Vladislav Grishenko for the patch.
version 2.61
version 2.61
Re-write interface discovery code on *BSD to use
Re-write interface discovery code on *BSD to use
...
...
src/radv-protocol.h
View file @
f632e567
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#define ALL_
HOST
S "FF02::1"
#define ALL_
NODE
S "FF02::1"
#define ALL_ROUTERS "FF02::2"
#define ALL_ROUTERS "FF02::2"
struct
ping_packet
{
struct
ping_packet
{
...
...
src/radv.c
View file @
f632e567
...
@@ -179,7 +179,8 @@ void icmp6_packet(void)
...
@@ -179,7 +179,8 @@ void icmp6_packet(void)
}
}
my_syslog
(
MS_DHCP
|
LOG_INFO
,
"RTR-SOLICIT(%s) %s"
,
interface
,
mac
);
my_syslog
(
MS_DHCP
|
LOG_INFO
,
"RTR-SOLICIT(%s) %s"
,
interface
,
mac
);
send_ra
(
if_index
,
interface
,
&
from
.
sin6_addr
);
/* source address may not be valid in solicit request. */
send_ra
(
if_index
,
interface
,
!
IN6_IS_ADDR_UNSPECIFIED
(
&
from
.
sin6_addr
)
?
&
from
.
sin6_addr
:
NULL
);
}
}
}
}
...
@@ -317,7 +318,7 @@ static void send_ra(int iface, char *iface_name, struct in6_addr *dest)
...
@@ -317,7 +318,7 @@ static void send_ra(int iface, char *iface_name, struct in6_addr *dest)
addr
.
sin6_scope_id
=
iface
;
addr
.
sin6_scope_id
=
iface
;
}
}
else
else
inet_pton
(
AF_INET6
,
ALL_
HOST
S
,
&
addr
.
sin6_addr
);
inet_pton
(
AF_INET6
,
ALL_
NODE
S
,
&
addr
.
sin6_addr
);
send_from
(
daemon
->
icmp6fd
,
0
,
daemon
->
outpacket
.
iov_base
,
save_counter
(
0
),
send_from
(
daemon
->
icmp6fd
,
0
,
daemon
->
outpacket
.
iov_base
,
save_counter
(
0
),
(
union
mysockaddr
*
)
&
addr
,
(
struct
all_addr
*
)
&
parm
.
link_local
,
iface
);
(
union
mysockaddr
*
)
&
addr
,
(
struct
all_addr
*
)
&
parm
.
link_local
,
iface
);
...
...
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