Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
cb78b143
Commit
cb78b143
authored
Jul 11, 2003
by
Jean-Luc Richier
Committed by
David S. Miller
Jul 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6] Fix ipv6_addr_prefix() for prefixlen != 0 (mod 8)
parent
faa1cc2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/net/ipv6.h
include/net/ipv6.h
+3
-1
No files found.
include/net/ipv6.h
View file @
cb78b143
...
...
@@ -276,8 +276,10 @@ static inline void ipv6_addr_prefix(struct in6_addr *pfx,
b
=
plen
&
0x7
;
memcpy
(
pfx
->
s6_addr
,
addr
,
o
);
if
(
b
!=
0
)
if
(
b
!=
0
)
{
pfx
->
s6_addr
[
o
]
=
addr
->
s6_addr
[
o
]
&
(
0xff00
>>
b
);
o
++
;
}
if
(
o
<
16
)
memset
(
pfx
->
s6_addr
+
o
,
0
,
16
-
o
);
}
...
...
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