projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NET]: Add a network namespace parameter to struct sock
[deliverable/linux.git]
/
net
/
ipv4
/
sysctl_net_ipv4.c
diff --git
a/net/ipv4/sysctl_net_ipv4.c
b/net/ipv4/sysctl_net_ipv4.c
index 6817d6485df5c195430ab808c2c345e8d6e15ba4..53ef0f4bbdaa507137d0a99b7a120fe43bddf1bb 100644
(file)
--- a/
net/ipv4/sysctl_net_ipv4.c
+++ b/
net/ipv4/sysctl_net_ipv4.c
@@
-37,12
+37,12
@@
static
int ipv4_sysctl_forward(ctl_table *ctl, int write, struct file * filp,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
int ipv4_sysctl_forward(ctl_table *ctl, int write, struct file * filp,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
- int val =
ipv4_devconf.forwarding
;
+ int val =
IPV4_DEVCONF_ALL(FORWARDING)
;
int ret;
ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
int ret;
ret = proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
- if (write &&
ipv4_devconf.forwarding
!= val)
+ if (write &&
IPV4_DEVCONF_ALL(FORWARDING)
!= val)
inet_forward_change();
return ret;
inet_forward_change();
return ret;
@@
-222,7
+222,7
@@
ctl_table ipv4_table[] = {
{
.ctl_name = NET_IPV4_FORWARD,
.procname = "ip_forward",
{
.ctl_name = NET_IPV4_FORWARD,
.procname = "ip_forward",
- .data = &
ipv4_devconf.forwarding
,
+ .data = &
IPV4_DEVCONF_ALL(FORWARDING)
,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &ipv4_sysctl_forward,
.maxlen = sizeof(int),
.mode = 0644,
.proc_handler = &ipv4_sysctl_forward,
This page took
0.026786 seconds
and
5
git commands to generate.