Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
40aa7b90
Commit
40aa7b90
authored
Oct 19, 2006
by
YOSHIFUJI Hideaki
Committed by
David S. Miller
Dec 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6] ROUTE: Use &rt->u.dst instead of cast.
Signed-off-by:
YOSHIFUJI Hideaki
<
yoshfuji@linux-ipv6.org
>
parent
33e93c96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
net/ipv6/fib6_rules.c
net/ipv6/fib6_rules.c
+1
-1
net/ipv6/route.c
net/ipv6/route.c
+3
-3
No files found.
net/ipv6/fib6_rules.c
View file @
40aa7b90
...
...
@@ -63,7 +63,7 @@ struct dst_entry *fib6_rule_lookup(struct flowi *fl, int flags,
fib_rule_put
(
arg
.
rule
);
if
(
arg
.
result
)
return
(
struct
dst_entry
*
)
arg
.
result
;
return
arg
.
result
;
dst_hold
(
&
ip6_null_entry
.
u
.
dst
);
return
&
ip6_null_entry
.
u
.
dst
;
...
...
net/ipv6/route.c
View file @
40aa7b90
...
...
@@ -940,7 +940,7 @@ struct dst_entry *ndisc_dst_alloc(struct net_device *dev,
fib6_force_start_gc
();
out:
return
(
struct
dst_entry
*
)
r
t
;
return
&
rt
->
u
.
ds
t
;
}
int
ndisc_dst_gc
(
int
*
more
)
...
...
@@ -1223,7 +1223,7 @@ out:
if
(
idev
)
in6_dev_put
(
idev
);
if
(
rt
)
dst_free
(
(
struct
dst_entry
*
)
r
t
);
dst_free
(
&
rt
->
u
.
ds
t
);
return
err
;
}
...
...
@@ -1822,7 +1822,7 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
rt
->
rt6i_flags
|=
RTF_LOCAL
;
rt
->
rt6i_nexthop
=
ndisc_get_neigh
(
rt
->
rt6i_dev
,
&
rt
->
rt6i_gateway
);
if
(
rt
->
rt6i_nexthop
==
NULL
)
{
dst_free
(
(
struct
dst_entry
*
)
r
t
);
dst_free
(
&
rt
->
u
.
ds
t
);
return
ERR_PTR
(
-
ENOMEM
);
}
...
...
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