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
c64b7f6a
Commit
c64b7f6a
authored
May 18, 2012
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix is_same_net6 - bugged if prefix length not divisible by 8.
parent
068b4b51
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CHANGELOG
CHANGELOG
+4
-0
src/util.c
src/util.c
+1
-1
No files found.
CHANGELOG
View file @
c64b7f6a
...
...
@@ -8,6 +8,10 @@ version 2.62
advertisements with some configurations. Thanks to
Vladislav Grishenko for the patch.
Fixed bug which broke DHCPv6/RA with prefix lengths
which are not divisible by 8. Thanks to Andre Coetzee
for spotting this.
version 2.61
Re-write interface discovery code on *BSD to use
...
...
src/util.c
View file @
c64b7f6a
...
...
@@ -330,7 +330,7 @@ int is_same_net6(struct in6_addr *a, struct in6_addr *b, int prefixlen)
return
0
;
if
(
pfbits
==
0
||
(
a
->
s6_addr
[
pfbytes
]
>>
(
8
-
pfbits
)
!
=
b
->
s6_addr
[
pfbytes
]
>>
(
8
-
pfbits
)))
(
a
->
s6_addr
[
pfbytes
]
>>
(
8
-
pfbits
)
=
=
b
->
s6_addr
[
pfbytes
]
>>
(
8
-
pfbits
)))
return
1
;
return
0
;
...
...
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