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
Kirill Smelkov
linux
Commits
7d34d214
Commit
7d34d214
authored
Mar 24, 2003
by
Tom Lendacky
Committed by
David S. Miller
Mar 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: Fix IPV6 UDP policy checking.
parent
0cc70fad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/ipv6/udp.c
net/ipv6/udp.c
+3
-3
No files found.
net/ipv6/udp.c
View file @
7d34d214
...
...
@@ -653,9 +653,6 @@ static int udpv6_rcv(struct sk_buff **pskb)
if
(
!
pskb_may_pull
(
skb
,
sizeof
(
struct
udphdr
)))
goto
short_packet
;
if
(
!
xfrm6_policy_check
(
NULL
,
XFRM_POLICY_IN
,
skb
))
goto
discard
;
saddr
=
&
skb
->
nh
.
ipv6h
->
saddr
;
daddr
=
&
skb
->
nh
.
ipv6h
->
daddr
;
uh
=
skb
->
h
.
uh
;
...
...
@@ -713,6 +710,9 @@ static int udpv6_rcv(struct sk_buff **pskb)
sk
=
udp_v6_lookup
(
saddr
,
uh
->
source
,
daddr
,
uh
->
dest
,
dev
->
ifindex
);
if
(
sk
==
NULL
)
{
if
(
!
xfrm6_policy_check
(
NULL
,
XFRM_POLICY_IN
,
skb
))
goto
discard
;
if
(
skb
->
ip_summed
!=
CHECKSUM_UNNECESSARY
&&
(
unsigned
short
)
csum_fold
(
skb_checksum
(
skb
,
0
,
skb
->
len
,
skb
->
csum
)))
goto
discard
;
...
...
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