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
684a493b
Commit
684a493b
authored
Mar 21, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://bk.skbuff.net:10772
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
2650e5a8
9cab9a80
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
include/net/xfrm.h
include/net/xfrm.h
+1
-1
net/ipv4/xfrm4_policy.c
net/ipv4/xfrm4_policy.c
+1
-5
net/ipv6/xfrm6_policy.c
net/ipv6/xfrm6_policy.c
+1
-1
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+3
-3
No files found.
include/net/xfrm.h
View file @
684a493b
...
...
@@ -166,7 +166,7 @@ struct xfrm_policy_afinfo {
struct
dst_ops
*
dst_ops
;
void
(
*
garbage_collect
)(
void
);
int
(
*
dst_lookup
)(
struct
xfrm_dst
**
dst
,
struct
flowi
*
fl
);
struct
dst_entry
*
(
*
find_bundle
)(
struct
flowi
*
fl
,
struct
rtable
*
rt
,
struct
xfrm_policy
*
policy
);
struct
dst_entry
*
(
*
find_bundle
)(
struct
flowi
*
fl
,
struct
xfrm_policy
*
policy
);
int
(
*
bundle_create
)(
struct
xfrm_policy
*
policy
,
struct
xfrm_state
**
xfrm
,
int
nx
,
...
...
net/ipv4/xfrm4_policy.c
View file @
684a493b
...
...
@@ -43,14 +43,10 @@ static int __xfrm4_bundle_ok(struct xfrm_dst *xdst, struct flowi *fl)
}
static
struct
dst_entry
*
__xfrm4_find_bundle
(
struct
flowi
*
fl
,
struct
rtable
*
rt
,
struct
xfrm_policy
*
policy
)
__xfrm4_find_bundle
(
struct
flowi
*
fl
,
struct
xfrm_policy
*
policy
)
{
struct
dst_entry
*
dst
;
if
(
!
fl
->
fl4_src
)
fl
->
fl4_src
=
rt
->
rt_src
;
if
(
!
fl
->
fl4_dst
)
fl
->
fl4_dst
=
rt
->
rt_dst
;
read_lock_bh
(
&
policy
->
lock
);
for
(
dst
=
policy
->
bundles
;
dst
;
dst
=
dst
->
next
)
{
struct
xfrm_dst
*
xdst
=
(
struct
xfrm_dst
*
)
dst
;
...
...
net/ipv6/xfrm6_policy.c
View file @
684a493b
...
...
@@ -52,7 +52,7 @@ static int __xfrm6_bundle_ok(struct xfrm_dst *xdst, struct flowi *fl)
}
static
struct
dst_entry
*
__xfrm6_find_bundle
(
struct
flowi
*
fl
,
struct
rtable
*
rt
,
struct
xfrm_policy
*
policy
)
__xfrm6_find_bundle
(
struct
flowi
*
fl
,
struct
xfrm_policy
*
policy
)
{
struct
dst_entry
*
dst
;
...
...
net/xfrm/xfrm_policy.c
View file @
684a493b
...
...
@@ -646,13 +646,13 @@ xfrm_tmpl_resolve(struct xfrm_policy *policy, struct flowi *fl,
*/
static
struct
dst_entry
*
xfrm_find_bundle
(
struct
flowi
*
fl
,
struct
rtable
*
rt
,
struct
xfrm_policy
*
policy
,
unsigned
short
family
)
xfrm_find_bundle
(
struct
flowi
*
fl
,
struct
xfrm_policy
*
policy
,
unsigned
short
family
)
{
struct
dst_entry
*
x
;
struct
xfrm_policy_afinfo
*
afinfo
=
xfrm_policy_get_afinfo
(
family
);
if
(
unlikely
(
afinfo
==
NULL
))
return
ERR_PTR
(
-
EINVAL
);
x
=
afinfo
->
find_bundle
(
fl
,
rt
,
policy
);
x
=
afinfo
->
find_bundle
(
fl
,
policy
);
xfrm_policy_put_afinfo
(
afinfo
);
return
x
;
}
...
...
@@ -762,7 +762,7 @@ int xfrm_lookup(struct dst_entry **dst_p, struct flowi *fl,
* LATER: help from flow cache. It is optional, this
* is required only for output policy.
*/
dst
=
xfrm_find_bundle
(
fl
,
rt
,
policy
,
family
);
dst
=
xfrm_find_bundle
(
fl
,
policy
,
family
);
if
(
IS_ERR
(
dst
))
{
xfrm_pol_put
(
policy
);
return
PTR_ERR
(
dst
);
...
...
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