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
f1f080f8
Commit
f1f080f8
authored
Jun 12, 2003
by
Herbert Xu
Committed by
David S. Miller
Jun 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Initialize flow key properly in decode_session.
parent
4cd7bfcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
net/ipv4/xfrm4_policy.c
net/ipv4/xfrm4_policy.c
+1
-2
net/ipv6/xfrm6_policy.c
net/ipv6/xfrm6_policy.c
+1
-0
No files found.
net/ipv4/xfrm4_policy.c
View file @
f1f080f8
...
...
@@ -172,6 +172,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl)
struct
iphdr
*
iph
=
skb
->
nh
.
iph
;
u8
*
xprth
=
skb
->
nh
.
raw
+
iph
->
ihl
*
4
;
memset
(
fl
,
0
,
sizeof
(
struct
flowi
));
if
(
!
(
iph
->
frag_off
&
htons
(
IP_MF
|
IP_OFFSET
)))
{
switch
(
iph
->
protocol
)
{
case
IPPROTO_UDP
:
...
...
@@ -212,8 +213,6 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl)
fl
->
fl_ipsec_spi
=
0
;
break
;
};
}
else
{
memset
(
fl
,
0
,
sizeof
(
struct
flowi
));
}
fl
->
proto
=
iph
->
protocol
;
fl
->
fl4_dst
=
iph
->
daddr
;
...
...
net/ipv6/xfrm6_policy.c
View file @
f1f080f8
...
...
@@ -177,6 +177,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl)
struct
ipv6_opt_hdr
*
exthdr
=
(
struct
ipv6_opt_hdr
*
)(
skb
->
nh
.
raw
+
offset
);
u8
nexthdr
=
skb
->
nh
.
ipv6h
->
nexthdr
;
memset
(
fl
,
0
,
sizeof
(
struct
flowi
));
ipv6_addr_copy
(
&
fl
->
fl6_dst
,
&
hdr
->
daddr
);
ipv6_addr_copy
(
&
fl
->
fl6_src
,
&
hdr
->
saddr
);
...
...
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