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
20a73944
Commit
20a73944
authored
May 13, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix ipv6_addr_copy warning in ah6.c.
parent
cbfa4d58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
net/ipv6/ah6.c
net/ipv6/ah6.c
+4
-2
No files found.
net/ipv6/ah6.c
View file @
20a73944
...
@@ -75,8 +75,10 @@ int ah6_output(struct sk_buff *skb)
...
@@ -75,8 +75,10 @@ int ah6_output(struct sk_buff *skb)
skb
->
nh
.
ipv6h
->
version
=
6
;
skb
->
nh
.
ipv6h
->
version
=
6
;
skb
->
nh
.
ipv6h
->
payload_len
=
htons
(
skb
->
len
-
sizeof
(
struct
ipv6hdr
));
skb
->
nh
.
ipv6h
->
payload_len
=
htons
(
skb
->
len
-
sizeof
(
struct
ipv6hdr
));
skb
->
nh
.
ipv6h
->
nexthdr
=
IPPROTO_AH
;
skb
->
nh
.
ipv6h
->
nexthdr
=
IPPROTO_AH
;
ipv6_addr_copy
(
&
skb
->
nh
.
ipv6h
->
saddr
,
&
x
->
props
.
saddr
);
ipv6_addr_copy
(
&
skb
->
nh
.
ipv6h
->
saddr
,
ipv6_addr_copy
(
&
skb
->
nh
.
ipv6h
->
daddr
,
&
x
->
id
.
daddr
);
(
struct
in6_addr
*
)
&
x
->
props
.
saddr
);
ipv6_addr_copy
(
&
skb
->
nh
.
ipv6h
->
daddr
,
(
struct
in6_addr
*
)
&
x
->
id
.
daddr
);
ah
=
(
struct
ip_auth_hdr
*
)(
skb
->
nh
.
ipv6h
+
1
);
ah
=
(
struct
ip_auth_hdr
*
)(
skb
->
nh
.
ipv6h
+
1
);
ah
->
nexthdr
=
IPPROTO_IPV6
;
ah
->
nexthdr
=
IPPROTO_IPV6
;
}
else
{
}
else
{
...
...
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