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
04db0420
Commit
04db0420
authored
Mar 04, 2005
by
Hideaki Yoshifuji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET] Don't use magic number for sysctl table definition.
Signed-off-by:
Hideaki YOSHIFUJI
<
yoshfuji@linux-ipv6.org
>
parent
5dccd6be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
include/linux/sysctl.h
include/linux/sysctl.h
+3
-1
net/ipv4/devinet.c
net/ipv4/devinet.c
+1
-1
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+1
-1
No files found.
include/linux/sysctl.h
View file @
04db0420
...
...
@@ -398,6 +398,7 @@ enum
NET_IPV4_CONF_FORCE_IGMP_VERSION
=
17
,
NET_IPV4_CONF_ARP_ANNOUNCE
=
18
,
NET_IPV4_CONF_ARP_IGNORE
=
19
,
__NET_IPV4_CONF_MAX
};
/* /proc/sys/net/ipv4/netfilter */
...
...
@@ -476,7 +477,8 @@ enum {
NET_IPV6_REGEN_MAX_RETRY
=
14
,
NET_IPV6_MAX_DESYNC_FACTOR
=
15
,
NET_IPV6_MAX_ADDRESSES
=
16
,
NET_IPV6_FORCE_MLD_VERSION
=
17
NET_IPV6_FORCE_MLD_VERSION
=
17
,
__NET_IPV6_MAX
};
/* /proc/sys/net/ipv6/icmp */
...
...
net/ipv4/devinet.c
View file @
04db0420
...
...
@@ -1212,7 +1212,7 @@ int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen,
static
struct
devinet_sysctl_table
{
struct
ctl_table_header
*
sysctl_header
;
ctl_table
devinet_vars
[
20
];
ctl_table
devinet_vars
[
__NET_IPV4_CONF_MAX
];
ctl_table
devinet_dev
[
2
];
ctl_table
devinet_conf_dir
[
2
];
ctl_table
devinet_proto_dir
[
2
];
...
...
net/ipv6/addrconf.c
View file @
04db0420
...
...
@@ -3212,7 +3212,7 @@ static int addrconf_sysctl_forward_strategy(ctl_table *table,
static
struct
addrconf_sysctl_table
{
struct
ctl_table_header
*
sysctl_header
;
ctl_table
addrconf_vars
[
18
];
ctl_table
addrconf_vars
[
__NET_IPV6_MAX
];
ctl_table
addrconf_dev
[
2
];
ctl_table
addrconf_conf_dir
[
2
];
ctl_table
addrconf_proto_dir
[
2
];
...
...
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