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
nexedi
linux
Commits
29098f0d
Commit
29098f0d
authored
Oct 27, 2004
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6] Remove codes related to RTF_ALLONLINK.
Signed-off-by:
Hideaki YOSHIFUJI
<
yoshfuji@linux-ipv6.org
>
parent
bf159569
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
9 deletions
+7
-9
include/linux/ipv6_route.h
include/linux/ipv6_route.h
+2
-1
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+1
-1
net/ipv6/ip6_fib.c
net/ipv6/ip6_fib.c
+1
-1
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+1
-1
net/ipv6/route.c
net/ipv6/route.c
+2
-5
No files found.
include/linux/ipv6_route.h
View file @
29098f0d
...
...
@@ -14,7 +14,8 @@
#define _LINUX_IPV6_ROUTE_H
#define RTF_DEFAULT 0x00010000
/* default - learned via ND */
#define RTF_ALLONLINK 0x00020000
/* fallback, no routers on link */
#define RTF_ALLONLINK 0x00020000
/* (deprecated and will be removed)
fallback, no routers on link */
#define RTF_ADDRCONF 0x00040000
/* addrconf route - RA */
#define RTF_PREFIX_RT 0x00080000
/* A prefix only route - RA */
...
...
net/ipv6/addrconf.c
View file @
29098f0d
...
...
@@ -885,7 +885,7 @@ int ipv6_get_saddr(struct dst_entry *dst,
if
(
rt
)
dev
=
rt
->
rt6i_dev
;
onlink
=
(
rt
&&
(
rt
->
rt6i_flags
&
RTF_ALLONLINK
))
;
onlink
=
0
;
return
ipv6_dev_get_saddr
(
dev
,
daddr
,
saddr
,
onlink
);
}
...
...
net/ipv6/ip6_fib.c
View file @
29098f0d
...
...
@@ -433,7 +433,7 @@ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt,
if
(
fn
->
fn_flags
&
RTN_TL_ROOT
&&
fn
->
leaf
==
&
ip6_null_entry
&&
!
(
rt
->
rt6i_flags
&
(
RTF_DEFAULT
|
RTF_ADDRCONF
|
RTF_ALLONLINK
))
){
!
(
rt
->
rt6i_flags
&
(
RTF_DEFAULT
|
RTF_ADDRCONF
))
){
fn
->
leaf
=
rt
;
rt
->
u
.
next
=
NULL
;
goto
out
;
...
...
net/ipv6/ndisc.c
View file @
29098f0d
...
...
@@ -1026,7 +1026,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)
* delete it
*/
rt6_purge_dflt_routers
(
RTF_ALLONLINK
);
rt6_purge_dflt_routers
(
0
);
}
if
(
rt
)
...
...
net/ipv6/route.c
View file @
29098f0d
...
...
@@ -1293,10 +1293,7 @@ void rt6_purge_dflt_routers(int last_resort)
struct
rt6_info
*
rt
;
u32
flags
;
if
(
last_resort
)
flags
=
RTF_ALLONLINK
;
else
flags
=
RTF_DEFAULT
|
RTF_ADDRCONF
;
flags
=
RTF_DEFAULT
|
RTF_ADDRCONF
;
restart:
read_lock_bh
(
&
rt6_lock
);
...
...
@@ -1592,7 +1589,7 @@ static int rt6_fill_node(struct sk_buff *skb, struct rt6_info *rt,
rtm
->
rtm_protocol
=
rt
->
rt6i_protocol
;
if
(
rt
->
rt6i_flags
&
RTF_DYNAMIC
)
rtm
->
rtm_protocol
=
RTPROT_REDIRECT
;
else
if
(
rt
->
rt6i_flags
&
(
RTF_ADDRCONF
|
RTF_ALLONLINK
)
)
else
if
(
rt
->
rt6i_flags
&
RTF_ADDRCONF
)
rtm
->
rtm_protocol
=
RTPROT_KERNEL
;
else
if
(
rt
->
rt6i_flags
&
RTF_DEFAULT
)
rtm
->
rtm_protocol
=
RTPROT_RA
;
...
...
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