devinet.c (e9897071350bd9d94a56b5b6f79c85b1a98fc7e7) devinet.c (fe2c6338fd2c6f383c4d4164262f35c8f3708e1f)
1/*
2 * NET3 IP device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 1928 unchanged lines hidden (view full) ---

1937 IN_DEV_CONF_SET(in_dev, FORWARDING, on);
1938 inet_netconf_notify_devconf(net, NETCONFA_FORWARDING,
1939 dev->ifindex, &in_dev->cnf);
1940 }
1941 rcu_read_unlock();
1942 }
1943}
1944
1/*
2 * NET3 IP device support routines.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 1928 unchanged lines hidden (view full) ---

1937 IN_DEV_CONF_SET(in_dev, FORWARDING, on);
1938 inet_netconf_notify_devconf(net, NETCONFA_FORWARDING,
1939 dev->ifindex, &in_dev->cnf);
1940 }
1941 rcu_read_unlock();
1942 }
1943}
1944
1945static int devinet_conf_proc(ctl_table *ctl, int write,
1945static int devinet_conf_proc(struct ctl_table *ctl, int write,
1946 void __user *buffer,
1947 size_t *lenp, loff_t *ppos)
1948{
1949 int old_value = *(int *)ctl->data;
1950 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
1951 int new_value = *(int *)ctl->data;
1952
1953 if (write) {

--- 26 unchanged lines hidden (view full) ---

1980 inet_netconf_notify_devconf(net, NETCONFA_RP_FILTER,
1981 ifindex, cnf);
1982 }
1983 }
1984
1985 return ret;
1986}
1987
1946 void __user *buffer,
1947 size_t *lenp, loff_t *ppos)
1948{
1949 int old_value = *(int *)ctl->data;
1950 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
1951 int new_value = *(int *)ctl->data;
1952
1953 if (write) {

--- 26 unchanged lines hidden (view full) ---

1980 inet_netconf_notify_devconf(net, NETCONFA_RP_FILTER,
1981 ifindex, cnf);
1982 }
1983 }
1984
1985 return ret;
1986}
1987
1988static int devinet_sysctl_forward(ctl_table *ctl, int write,
1988static int devinet_sysctl_forward(struct ctl_table *ctl, int write,
1989 void __user *buffer,
1990 size_t *lenp, loff_t *ppos)
1991{
1992 int *valp = ctl->data;
1993 int val = *valp;
1994 loff_t pos = *ppos;
1995 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
1996

--- 26 unchanged lines hidden (view full) ---

2023 inet_netconf_notify_devconf(net, NETCONFA_FORWARDING,
2024 NETCONFA_IFINDEX_DEFAULT,
2025 net->ipv4.devconf_dflt);
2026 }
2027
2028 return ret;
2029}
2030
1989 void __user *buffer,
1990 size_t *lenp, loff_t *ppos)
1991{
1992 int *valp = ctl->data;
1993 int val = *valp;
1994 loff_t pos = *ppos;
1995 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
1996

--- 26 unchanged lines hidden (view full) ---

2023 inet_netconf_notify_devconf(net, NETCONFA_FORWARDING,
2024 NETCONFA_IFINDEX_DEFAULT,
2025 net->ipv4.devconf_dflt);
2026 }
2027
2028 return ret;
2029}
2030
2031static int ipv4_doint_and_flush(ctl_table *ctl, int write,
2031static int ipv4_doint_and_flush(struct ctl_table *ctl, int write,
2032 void __user *buffer,
2033 size_t *lenp, loff_t *ppos)
2034{
2035 int *valp = ctl->data;
2036 int val = *valp;
2037 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
2038 struct net *net = ctl->extra2;
2039

--- 265 unchanged lines hidden ---
2032 void __user *buffer,
2033 size_t *lenp, loff_t *ppos)
2034{
2035 int *valp = ctl->data;
2036 int val = *valp;
2037 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos);
2038 struct net *net = ctl->extra2;
2039

--- 265 unchanged lines hidden ---