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
e39ddea0
Commit
e39ddea0
authored
Oct 25, 2004
by
Christoph Hellwig
Committed by
David S. Miller
Oct 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFRM]: Remove dead exports.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
1faf8d7e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
34 deletions
+12
-34
include/net/xfrm.h
include/net/xfrm.h
+0
-7
net/xfrm/xfrm_export.c
net/xfrm/xfrm_export.c
+0
-8
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_policy.c
+6
-3
net/xfrm/xfrm_state.c
net/xfrm/xfrm_state.c
+6
-16
No files found.
include/net/xfrm.h
View file @
e39ddea0
...
...
@@ -178,8 +178,6 @@ struct xfrm_policy_afinfo {
extern
int
xfrm_policy_register_afinfo
(
struct
xfrm_policy_afinfo
*
afinfo
);
extern
int
xfrm_policy_unregister_afinfo
(
struct
xfrm_policy_afinfo
*
afinfo
);
extern
struct
xfrm_policy_afinfo
*
xfrm_policy_get_afinfo
(
unsigned
short
family
);
extern
void
xfrm_policy_put_afinfo
(
struct
xfrm_policy_afinfo
*
afinfo
);
#define XFRM_ACQ_EXPIRES 30
...
...
@@ -200,8 +198,6 @@ struct xfrm_state_afinfo {
extern
int
xfrm_state_register_afinfo
(
struct
xfrm_state_afinfo
*
afinfo
);
extern
int
xfrm_state_unregister_afinfo
(
struct
xfrm_state_afinfo
*
afinfo
);
extern
struct
xfrm_state_afinfo
*
xfrm_state_get_afinfo
(
unsigned
short
family
);
extern
void
xfrm_state_put_afinfo
(
struct
xfrm_state_afinfo
*
afinfo
);
extern
void
xfrm_state_delete_tunnel
(
struct
xfrm_state
*
x
);
...
...
@@ -805,14 +801,12 @@ extern int xfrm_state_check_expire(struct xfrm_state *x);
extern
void
xfrm_state_insert
(
struct
xfrm_state
*
x
);
extern
int
xfrm_state_add
(
struct
xfrm_state
*
x
);
extern
int
xfrm_state_update
(
struct
xfrm_state
*
x
);
extern
int
xfrm_state_check_space
(
struct
xfrm_state
*
x
,
struct
sk_buff
*
skb
);
extern
struct
xfrm_state
*
xfrm_state_lookup
(
xfrm_address_t
*
daddr
,
u32
spi
,
u8
proto
,
unsigned
short
family
);
extern
struct
xfrm_state
*
xfrm_find_acq_byseq
(
u32
seq
);
extern
void
xfrm_state_delete
(
struct
xfrm_state
*
x
);
extern
void
xfrm_state_flush
(
u8
proto
);
extern
int
xfrm_replay_check
(
struct
xfrm_state
*
x
,
u32
seq
);
extern
void
xfrm_replay_advance
(
struct
xfrm_state
*
x
,
u32
seq
);
extern
int
xfrm_check_selectors
(
struct
xfrm_state
**
x
,
int
n
,
struct
flowi
*
fl
);
extern
int
xfrm_state_check
(
struct
xfrm_state
*
x
,
struct
sk_buff
*
skb
);
extern
int
xfrm4_rcv
(
struct
sk_buff
*
skb
);
extern
int
xfrm4_output
(
struct
sk_buff
*
skb
);
...
...
@@ -863,7 +857,6 @@ struct xfrm_state * xfrm_find_acq(u8 mode, u32 reqid, u8 proto,
xfrm_address_t
*
daddr
,
xfrm_address_t
*
saddr
,
int
create
,
unsigned
short
family
);
extern
void
xfrm_policy_flush
(
void
);
extern
void
xfrm_policy_kill
(
struct
xfrm_policy
*
);
extern
int
xfrm_sk_policy_insert
(
struct
sock
*
sk
,
int
dir
,
struct
xfrm_policy
*
pol
);
extern
struct
xfrm_policy
*
xfrm_sk_policy_lookup
(
struct
sock
*
sk
,
int
dir
,
struct
flowi
*
fl
);
extern
int
xfrm_flush_bundles
(
void
);
...
...
net/xfrm/xfrm_export.c
View file @
e39ddea0
...
...
@@ -12,22 +12,17 @@ EXPORT_SYMBOL(__xfrm_policy_check);
EXPORT_SYMBOL
(
__xfrm_route_forward
);
EXPORT_SYMBOL
(
xfrm_state_alloc
);
EXPORT_SYMBOL
(
__xfrm_state_destroy
);
EXPORT_SYMBOL
(
xfrm_state_find
);
EXPORT_SYMBOL
(
xfrm_state_insert
);
EXPORT_SYMBOL
(
xfrm_state_add
);
EXPORT_SYMBOL
(
xfrm_state_update
);
EXPORT_SYMBOL
(
xfrm_state_check_expire
);
EXPORT_SYMBOL
(
xfrm_state_check_space
);
EXPORT_SYMBOL
(
xfrm_state_check
);
EXPORT_SYMBOL
(
xfrm_state_lookup
);
EXPORT_SYMBOL
(
xfrm_state_register_afinfo
);
EXPORT_SYMBOL
(
xfrm_state_unregister_afinfo
);
EXPORT_SYMBOL
(
xfrm_state_get_afinfo
);
EXPORT_SYMBOL
(
xfrm_state_put_afinfo
);
EXPORT_SYMBOL
(
xfrm_state_delete_tunnel
);
EXPORT_SYMBOL
(
xfrm_replay_check
);
EXPORT_SYMBOL
(
xfrm_replay_advance
);
EXPORT_SYMBOL
(
xfrm_check_selectors
);
EXPORT_SYMBOL
(
__secpath_destroy
);
EXPORT_SYMBOL
(
secpath_dup
);
EXPORT_SYMBOL
(
xfrm_get_acqseq
);
...
...
@@ -44,7 +39,6 @@ EXPORT_SYMBOL(xfrm_find_acq_byseq);
EXPORT_SYMBOL
(
xfrm_find_acq
);
EXPORT_SYMBOL
(
xfrm_alloc_spi
);
EXPORT_SYMBOL
(
xfrm_state_flush
);
EXPORT_SYMBOL
(
xfrm_policy_kill
);
EXPORT_SYMBOL
(
xfrm_policy_bysel
);
EXPORT_SYMBOL
(
xfrm_policy_insert
);
EXPORT_SYMBOL
(
xfrm_policy_walk
);
...
...
@@ -54,8 +48,6 @@ EXPORT_SYMBOL(xfrm_policy_list);
EXPORT_SYMBOL
(
xfrm_dst_lookup
);
EXPORT_SYMBOL
(
xfrm_policy_register_afinfo
);
EXPORT_SYMBOL
(
xfrm_policy_unregister_afinfo
);
EXPORT_SYMBOL
(
xfrm_policy_get_afinfo
);
EXPORT_SYMBOL
(
xfrm_policy_put_afinfo
);
EXPORT_SYMBOL_GPL
(
xfrm_probe_algs
);
EXPORT_SYMBOL_GPL
(
xfrm_count_auth_supported
);
...
...
net/xfrm/xfrm_policy.c
View file @
e39ddea0
...
...
@@ -40,6 +40,9 @@ static struct list_head xfrm_policy_gc_list =
LIST_HEAD_INIT
(
xfrm_policy_gc_list
);
static
spinlock_t
xfrm_policy_gc_lock
=
SPIN_LOCK_UNLOCKED
;
static
struct
xfrm_policy_afinfo
*
xfrm_policy_get_afinfo
(
unsigned
short
family
);
static
void
xfrm_policy_put_afinfo
(
struct
xfrm_policy_afinfo
*
afinfo
);
int
xfrm_register_type
(
struct
xfrm_type
*
type
,
unsigned
short
family
)
{
struct
xfrm_policy_afinfo
*
afinfo
=
xfrm_policy_get_afinfo
(
family
);
...
...
@@ -286,7 +289,7 @@ static void xfrm_policy_gc_task(void *data)
* entry dead. The rule must be unlinked from lists to the moment.
*/
void
xfrm_policy_kill
(
struct
xfrm_policy
*
policy
)
static
void
xfrm_policy_kill
(
struct
xfrm_policy
*
policy
)
{
write_lock_bh
(
&
policy
->
lock
);
if
(
policy
->
dead
)
...
...
@@ -1187,7 +1190,7 @@ int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo)
return
err
;
}
struct
xfrm_policy_afinfo
*
xfrm_policy_get_afinfo
(
unsigned
short
family
)
st
atic
st
ruct
xfrm_policy_afinfo
*
xfrm_policy_get_afinfo
(
unsigned
short
family
)
{
struct
xfrm_policy_afinfo
*
afinfo
;
if
(
unlikely
(
family
>=
NPROTO
))
...
...
@@ -1200,7 +1203,7 @@ struct xfrm_policy_afinfo *xfrm_policy_get_afinfo(unsigned short family)
return
afinfo
;
}
void
xfrm_policy_put_afinfo
(
struct
xfrm_policy_afinfo
*
afinfo
)
static
void
xfrm_policy_put_afinfo
(
struct
xfrm_policy_afinfo
*
afinfo
)
{
if
(
unlikely
(
afinfo
==
NULL
))
return
;
...
...
net/xfrm/xfrm_state.c
View file @
e39ddea0
...
...
@@ -48,6 +48,9 @@ static spinlock_t xfrm_state_gc_lock = SPIN_LOCK_UNLOCKED;
static
void
__xfrm_state_delete
(
struct
xfrm_state
*
x
);
static
struct
xfrm_state_afinfo
*
xfrm_state_get_afinfo
(
unsigned
short
family
);
static
void
xfrm_state_put_afinfo
(
struct
xfrm_state_afinfo
*
afinfo
);
static
void
xfrm_state_gc_destroy
(
struct
xfrm_state
*
x
)
{
if
(
del_timer
(
&
x
->
timer
))
...
...
@@ -526,7 +529,7 @@ int xfrm_state_check_expire(struct xfrm_state *x)
return
0
;
}
int
xfrm_state_check_space
(
struct
xfrm_state
*
x
,
struct
sk_buff
*
skb
)
static
int
xfrm_state_check_space
(
struct
xfrm_state
*
x
,
struct
sk_buff
*
skb
)
{
int
nhead
=
x
->
props
.
header_len
+
LL_RESERVED_SPACE
(
skb
->
dst
->
dev
)
-
skb_headroom
(
skb
);
...
...
@@ -740,19 +743,6 @@ void xfrm_replay_advance(struct xfrm_state *x, u32 seq)
}
}
int
xfrm_check_selectors
(
struct
xfrm_state
**
x
,
int
n
,
struct
flowi
*
fl
)
{
int
i
;
for
(
i
=
0
;
i
<
n
;
i
++
)
{
int
match
;
match
=
xfrm_selector_match
(
&
x
[
i
]
->
sel
,
fl
,
x
[
i
]
->
props
.
family
);
if
(
!
match
)
return
-
EINVAL
;
}
return
0
;
}
static
struct
list_head
xfrm_km_list
=
LIST_HEAD_INIT
(
xfrm_km_list
);
static
rwlock_t
xfrm_km_lock
=
RW_LOCK_UNLOCKED
;
...
...
@@ -914,7 +904,7 @@ int xfrm_state_unregister_afinfo(struct xfrm_state_afinfo *afinfo)
return
err
;
}
struct
xfrm_state_afinfo
*
xfrm_state_get_afinfo
(
unsigned
short
family
)
st
atic
st
ruct
xfrm_state_afinfo
*
xfrm_state_get_afinfo
(
unsigned
short
family
)
{
struct
xfrm_state_afinfo
*
afinfo
;
if
(
unlikely
(
family
>=
NPROTO
))
...
...
@@ -927,7 +917,7 @@ struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned short family)
return
afinfo
;
}
void
xfrm_state_put_afinfo
(
struct
xfrm_state_afinfo
*
afinfo
)
static
void
xfrm_state_put_afinfo
(
struct
xfrm_state_afinfo
*
afinfo
)
{
if
(
unlikely
(
afinfo
==
NULL
))
return
;
...
...
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