Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
d76e60a5
Commit
d76e60a5
authored
Mar 20, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Fix some code/comment formatting in ip6_dst_output().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
06ef921d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
net/ipv6/ip6_output.c
net/ipv6/ip6_output.c
+21
-20
No files found.
net/ipv6/ip6_output.c
View file @
d76e60a5
...
@@ -733,28 +733,29 @@ int ip6_dst_lookup(struct sock *sk, struct dst_entry **dst, struct flowi *fl)
...
@@ -733,28 +733,29 @@ int ip6_dst_lookup(struct sock *sk, struct dst_entry **dst, struct flowi *fl)
if
(
*
dst
)
{
if
(
*
dst
)
{
struct
rt6_info
*
rt
=
(
struct
rt6_info
*
)
*
dst
;
struct
rt6_info
*
rt
=
(
struct
rt6_info
*
)
*
dst
;
/* Yes, checking route validity in not connected
/* Yes, checking route validity in not connected
case is not very simple. Take into account,
* case is not very simple. Take into account,
that we do not support routing by source, TOS,
* that we do not support routing by source, TOS,
and MSG_DONTROUTE --ANK (980726)
* and MSG_DONTROUTE --ANK (980726)
*
1. If route was host route, check that
* 1. If route was host route, check that
cached destination is current.
* cached destination is current.
If it is network route, we still may
* If it is network route, we still may
check its validity using saved pointer
* check its validity using saved pointer
to the last used address: daddr_cache.
* to the last used address: daddr_cache.
We do not want to save whole address now,
* We do not want to save whole address now,
(because main consumer of this service
* (because main consumer of this service
is tcp, which has not this problem),
* is tcp, which has not this problem),
so that the last trick works only on connected
* so that the last trick works only on connected
sockets.
* sockets.
2. oif also should be the same.
* 2. oif also should be the same.
*/
*/
if
(((
rt
->
rt6i_dst
.
plen
!=
128
||
if
(((
rt
->
rt6i_dst
.
plen
!=
128
||
!
ipv6_addr_equal
(
&
fl
->
fl6_dst
,
&
rt
->
rt6i_dst
.
addr
))
!
ipv6_addr_equal
(
&
fl
->
fl6_dst
,
&
rt
->
rt6i_dst
.
addr
))
&&
(
np
->
daddr_cache
==
NULL
||
&&
(
np
->
daddr_cache
==
NULL
||
!
ipv6_addr_equal
(
&
fl
->
fl6_dst
,
np
->
daddr_cache
)))
!
ipv6_addr_equal
(
&
fl
->
fl6_dst
,
np
->
daddr_cache
)))
||
(
fl
->
oif
&&
fl
->
oif
!=
(
*
dst
)
->
dev
->
ifindex
))
{
||
(
fl
->
oif
&&
fl
->
oif
!=
(
*
dst
)
->
dev
->
ifindex
))
{
dst_release
(
*
dst
);
dst_release
(
*
dst
);
*
dst
=
NULL
;
*
dst
=
NULL
;
...
...
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