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
f381e657
Commit
f381e657
authored
Mar 04, 2005
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6] NDISC: Deprecate base_reachable_time and retrans_timer.
Signed-off-by:
Hideaki YOSHIFUJI
<
yoshfuji@linux-ipv6.org
>
parent
42ed4aad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
4 deletions
+31
-4
Documentation/filesystems/proc.txt
Documentation/filesystems/proc.txt
+3
-3
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+28
-1
No files found.
Documentation/filesystems/proc.txt
View file @
f381e657
...
...
@@ -1760,7 +1760,7 @@ base_reachable_time, base_reachable_time_ms
A base value used for computing the random reachable time value as specified
in RFC2461.
Expression of base_reachable_time is in seconds.
Expression of base_reachable_time
, which is deprecated,
is in seconds.
Expression of base_reachable_time_ms is in milliseconds.
retrans_time, retrans_time_ms
...
...
@@ -1770,8 +1770,8 @@ The time between retransmitted Neighbor Solicitation messages.
Used for address resolution and to determine if a neighbor is
unreachable.
Expression of retrans_time
is in 1/100 seconds (for IPv4) or in jiffies
(for IPv6).
Expression of retrans_time
, which is deprecated, is in 1/100 seconds (for
IPv4) or in jiffies
(for IPv6).
Expression of retrans_time_ms is in milliseconds.
unres_qlen
...
...
net/ipv6/ndisc.c
View file @
f381e657
...
...
@@ -1536,12 +1536,35 @@ static struct notifier_block ndisc_netdev_notifier = {
};
#ifdef CONFIG_SYSCTL
static
void
ndisc_warn_deprecated_sysctl
(
struct
ctl_table
*
ctl
,
const
char
*
func
,
const
char
*
dev_name
)
{
static
char
warncomm
[
TASK_COMM_LEN
];
static
int
warned
;
if
(
strcmp
(
warncomm
,
current
->
comm
)
&&
warned
<
5
)
{
strcpy
(
warncomm
,
current
->
comm
);
printk
(
KERN_WARNING
"process `%s' is using deprecated sysctl (%s) "
"net.ipv6.neigh.%s.%s; "
"Use net.ipv6.neigh.%s.%s_ms "
"instead.
\n
"
,
warncomm
,
func
,
dev_name
,
ctl
->
procname
,
dev_name
,
ctl
->
procname
);
warned
++
;
}
}
int
ndisc_ifinfo_sysctl_change
(
struct
ctl_table
*
ctl
,
int
write
,
struct
file
*
filp
,
void
__user
*
buffer
,
size_t
*
lenp
,
loff_t
*
ppos
)
{
struct
net_device
*
dev
=
ctl
->
extra1
;
struct
inet6_dev
*
idev
;
int
ret
;
if
(
ctl
->
ctl_name
==
NET_NEIGH_RETRANS_TIME
||
ctl
->
ctl_name
==
NET_NEIGH_REACHABLE_TIME
)
ndisc_warn_deprecated_sysctl
(
ctl
,
"syscall"
,
dev
?
dev
->
name
:
"default"
);
switch
(
ctl
->
ctl_name
)
{
case
NET_NEIGH_RETRANS_TIME
:
ret
=
proc_dointvec
(
ctl
,
write
,
filp
,
buffer
,
lenp
,
ppos
);
...
...
@@ -1579,6 +1602,10 @@ int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl, int __user *name, int nlen,
struct
inet6_dev
*
idev
;
int
ret
;
if
(
ctl
->
ctl_name
==
NET_NEIGH_RETRANS_TIME
||
ctl
->
ctl_name
==
NET_NEIGH_REACHABLE_TIME
)
ndisc_warn_deprecated_sysctl
(
ctl
,
"procfs"
,
dev
?
dev
->
name
:
"default"
);
switch
(
ctl
->
ctl_name
)
{
case
NET_NEIGH_REACHABLE_TIME
:
ret
=
sysctl_jiffies
(
ctl
,
name
,
nlen
,
...
...
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