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
2f499166
Commit
2f499166
authored
Oct 24, 2002
by
Alexey Kuznetsov
Committed by
Hideaki Yoshifuji
Oct 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Kill reroute from DST ops, unused.
parent
ca77d319
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
32 deletions
+0
-32
include/net/dst.h
include/net/dst.h
+0
-2
net/decnet/dn_route.c
net/decnet/dn_route.c
+0
-8
net/ipv4/route.c
net/ipv4/route.c
+0
-9
net/ipv6/route.c
net/ipv6/route.c
+0
-13
No files found.
include/net/dst.h
View file @
2f499166
...
@@ -78,8 +78,6 @@ struct dst_ops
...
@@ -78,8 +78,6 @@ struct dst_ops
int
(
*
gc
)(
void
);
int
(
*
gc
)(
void
);
struct
dst_entry
*
(
*
check
)(
struct
dst_entry
*
,
__u32
cookie
);
struct
dst_entry
*
(
*
check
)(
struct
dst_entry
*
,
__u32
cookie
);
struct
dst_entry
*
(
*
reroute
)(
struct
dst_entry
*
,
struct
sk_buff
*
);
void
(
*
destroy
)(
struct
dst_entry
*
);
void
(
*
destroy
)(
struct
dst_entry
*
);
struct
dst_entry
*
(
*
negative_advice
)(
struct
dst_entry
*
);
struct
dst_entry
*
(
*
negative_advice
)(
struct
dst_entry
*
);
void
(
*
link_failure
)(
struct
sk_buff
*
);
void
(
*
link_failure
)(
struct
sk_buff
*
);
...
...
net/decnet/dn_route.c
View file @
2f499166
...
@@ -100,7 +100,6 @@ static unsigned long dn_rt_deadline = 0;
...
@@ -100,7 +100,6 @@ static unsigned long dn_rt_deadline = 0;
static
int
dn_dst_gc
(
void
);
static
int
dn_dst_gc
(
void
);
static
struct
dst_entry
*
dn_dst_check
(
struct
dst_entry
*
,
__u32
);
static
struct
dst_entry
*
dn_dst_check
(
struct
dst_entry
*
,
__u32
);
static
struct
dst_entry
*
dn_dst_reroute
(
struct
dst_entry
*
,
struct
sk_buff
*
skb
);
static
struct
dst_entry
*
dn_dst_negative_advice
(
struct
dst_entry
*
);
static
struct
dst_entry
*
dn_dst_negative_advice
(
struct
dst_entry
*
);
static
void
dn_dst_link_failure
(
struct
sk_buff
*
);
static
void
dn_dst_link_failure
(
struct
sk_buff
*
);
static
int
dn_route_input
(
struct
sk_buff
*
);
static
int
dn_route_input
(
struct
sk_buff
*
);
...
@@ -119,7 +118,6 @@ static struct dst_ops dn_dst_ops = {
...
@@ -119,7 +118,6 @@ static struct dst_ops dn_dst_ops = {
.
gc_thresh
=
128
,
.
gc_thresh
=
128
,
.
gc
=
dn_dst_gc
,
.
gc
=
dn_dst_gc
,
.
check
=
dn_dst_check
,
.
check
=
dn_dst_check
,
.
reroute
=
dn_dst_reroute
,
.
negative_advice
=
dn_dst_negative_advice
,
.
negative_advice
=
dn_dst_negative_advice
,
.
link_failure
=
dn_dst_link_failure
,
.
link_failure
=
dn_dst_link_failure
,
.
entry_size
=
sizeof
(
struct
dn_route
),
.
entry_size
=
sizeof
(
struct
dn_route
),
...
@@ -202,12 +200,6 @@ static struct dst_entry *dn_dst_check(struct dst_entry *dst, __u32 cookie)
...
@@ -202,12 +200,6 @@ static struct dst_entry *dn_dst_check(struct dst_entry *dst, __u32 cookie)
return
NULL
;
return
NULL
;
}
}
static
struct
dst_entry
*
dn_dst_reroute
(
struct
dst_entry
*
dst
,
struct
sk_buff
*
skb
)
{
return
NULL
;
}
/*
/*
* This is called through sendmsg() when you specify MSG_TRYHARD
* This is called through sendmsg() when you specify MSG_TRYHARD
* and there is already a route in cache.
* and there is already a route in cache.
...
...
net/ipv4/route.c
View file @
2f499166
...
@@ -130,8 +130,6 @@ static struct timer_list rt_periodic_timer;
...
@@ -130,8 +130,6 @@ static struct timer_list rt_periodic_timer;
*/
*/
static
struct
dst_entry
*
ipv4_dst_check
(
struct
dst_entry
*
dst
,
u32
cookie
);
static
struct
dst_entry
*
ipv4_dst_check
(
struct
dst_entry
*
dst
,
u32
cookie
);
static
struct
dst_entry
*
ipv4_dst_reroute
(
struct
dst_entry
*
dst
,
struct
sk_buff
*
skb
);
static
void
ipv4_dst_destroy
(
struct
dst_entry
*
dst
);
static
void
ipv4_dst_destroy
(
struct
dst_entry
*
dst
);
static
struct
dst_entry
*
ipv4_negative_advice
(
struct
dst_entry
*
dst
);
static
struct
dst_entry
*
ipv4_negative_advice
(
struct
dst_entry
*
dst
);
static
void
ipv4_link_failure
(
struct
sk_buff
*
skb
);
static
void
ipv4_link_failure
(
struct
sk_buff
*
skb
);
...
@@ -143,7 +141,6 @@ struct dst_ops ipv4_dst_ops = {
...
@@ -143,7 +141,6 @@ struct dst_ops ipv4_dst_ops = {
.
protocol
=
__constant_htons
(
ETH_P_IP
),
.
protocol
=
__constant_htons
(
ETH_P_IP
),
.
gc
=
rt_garbage_collect
,
.
gc
=
rt_garbage_collect
,
.
check
=
ipv4_dst_check
,
.
check
=
ipv4_dst_check
,
.
reroute
=
ipv4_dst_reroute
,
.
destroy
=
ipv4_dst_destroy
,
.
destroy
=
ipv4_dst_destroy
,
.
negative_advice
=
ipv4_negative_advice
,
.
negative_advice
=
ipv4_negative_advice
,
.
link_failure
=
ipv4_link_failure
,
.
link_failure
=
ipv4_link_failure
,
...
@@ -1112,12 +1109,6 @@ static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie)
...
@@ -1112,12 +1109,6 @@ static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie)
return
NULL
;
return
NULL
;
}
}
static
struct
dst_entry
*
ipv4_dst_reroute
(
struct
dst_entry
*
dst
,
struct
sk_buff
*
skb
)
{
return
NULL
;
}
static
void
ipv4_dst_destroy
(
struct
dst_entry
*
dst
)
static
void
ipv4_dst_destroy
(
struct
dst_entry
*
dst
)
{
{
struct
rtable
*
rt
=
(
struct
rtable
*
)
dst
;
struct
rtable
*
rt
=
(
struct
rtable
*
)
dst
;
...
...
net/ipv6/route.c
View file @
2f499166
...
@@ -78,8 +78,6 @@ static int ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40;
...
@@ -78,8 +78,6 @@ static int ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40;
static
struct
rt6_info
*
ip6_rt_copy
(
struct
rt6_info
*
ort
);
static
struct
rt6_info
*
ip6_rt_copy
(
struct
rt6_info
*
ort
);
static
struct
dst_entry
*
ip6_dst_check
(
struct
dst_entry
*
dst
,
u32
cookie
);
static
struct
dst_entry
*
ip6_dst_check
(
struct
dst_entry
*
dst
,
u32
cookie
);
static
struct
dst_entry
*
ip6_dst_reroute
(
struct
dst_entry
*
dst
,
struct
sk_buff
*
skb
);
static
struct
dst_entry
*
ip6_negative_advice
(
struct
dst_entry
*
);
static
struct
dst_entry
*
ip6_negative_advice
(
struct
dst_entry
*
);
static
int
ip6_dst_gc
(
void
);
static
int
ip6_dst_gc
(
void
);
...
@@ -93,7 +91,6 @@ static struct dst_ops ip6_dst_ops = {
...
@@ -93,7 +91,6 @@ static struct dst_ops ip6_dst_ops = {
ip6_dst_gc
,
ip6_dst_gc
,
ip6_dst_check
,
ip6_dst_check
,
ip6_dst_reroute
,
NULL
,
NULL
,
ip6_negative_advice
,
ip6_negative_advice
,
ip6_link_failure
,
ip6_link_failure
,
...
@@ -510,16 +507,6 @@ static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie)
...
@@ -510,16 +507,6 @@ static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie)
return
NULL
;
return
NULL
;
}
}
static
struct
dst_entry
*
ip6_dst_reroute
(
struct
dst_entry
*
dst
,
struct
sk_buff
*
skb
)
{
/*
* FIXME
*/
RDBG
((
"ip6_dst_reroute(%p,%p)[%p] (AIEEE)
\n
"
,
dst
,
skb
,
__builtin_return_address
(
0
)));
return
NULL
;
}
static
struct
dst_entry
*
ip6_negative_advice
(
struct
dst_entry
*
dst
)
static
struct
dst_entry
*
ip6_negative_advice
(
struct
dst_entry
*
dst
)
{
{
struct
rt6_info
*
rt
=
(
struct
rt6_info
*
)
dst
;
struct
rt6_info
*
rt
=
(
struct
rt6_info
*
)
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