aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 0ebae413ae87..d570d3ad40a9 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -154,7 +154,7 @@ struct net_device *ipmr_new_tunnel(struct vifctl *v)
154 in_dev = __in_dev_get_rtnl(dev); 154 in_dev = __in_dev_get_rtnl(dev);
155 if (in_dev == NULL && (in_dev = inetdev_init(dev)) == NULL) 155 if (in_dev == NULL && (in_dev = inetdev_init(dev)) == NULL)
156 goto failure; 156 goto failure;
157 in_dev->cnf.rp_filter = 0; 157 IN_DEV_CONF_SET(in_dev, RP_FILTER, 0);
158 158
159 if (dev_open(dev)) 159 if (dev_open(dev))
160 goto failure; 160 goto failure;
@@ -221,7 +221,7 @@ static struct net_device *ipmr_reg_vif(void)
221 if ((in_dev = inetdev_init(dev)) == NULL) 221 if ((in_dev = inetdev_init(dev)) == NULL)
222 goto failure; 222 goto failure;
223 223
224 in_dev->cnf.rp_filter = 0; 224 IN_DEV_CONF_SET(in_dev, RP_FILTER, 0);
225 225
226 if (dev_open(dev)) 226 if (dev_open(dev))
227 goto failure; 227 goto failure;
@@ -281,7 +281,7 @@ static int vif_delete(int vifi)
281 dev_set_allmulti(dev, -1); 281 dev_set_allmulti(dev, -1);
282 282
283 if ((in_dev = __in_dev_get_rtnl(dev)) != NULL) { 283 if ((in_dev = __in_dev_get_rtnl(dev)) != NULL) {
284 in_dev->cnf.mc_forwarding--; 284 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)--;
285 ip_rt_multicast_event(in_dev); 285 ip_rt_multicast_event(in_dev);
286 } 286 }
287 287
@@ -426,7 +426,7 @@ static int vif_add(struct vifctl *vifc, int mrtsock)
426 426
427 if ((in_dev = __in_dev_get_rtnl(dev)) == NULL) 427 if ((in_dev = __in_dev_get_rtnl(dev)) == NULL)
428 return -EADDRNOTAVAIL; 428 return -EADDRNOTAVAIL;
429 in_dev->cnf.mc_forwarding++; 429 IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)++;
430 dev_set_allmulti(dev, +1); 430 dev_set_allmulti(dev, +1);
431 ip_rt_multicast_event(in_dev); 431 ip_rt_multicast_event(in_dev);
432 432
@@ -841,7 +841,7 @@ static void mrtsock_destruct(struct sock *sk)
841{ 841{
842 rtnl_lock(); 842 rtnl_lock();
843 if (sk == mroute_socket) { 843 if (sk == mroute_socket) {
844 ipv4_devconf.mc_forwarding--; 844 IPV4_DEVCONF_ALL(MC_FORWARDING)--;
845 845
846 write_lock_bh(&mrt_lock); 846 write_lock_bh(&mrt_lock);
847 mroute_socket=NULL; 847 mroute_socket=NULL;
@@ -890,7 +890,7 @@ int ip_mroute_setsockopt(struct sock *sk,int optname,char __user *optval,int opt
890 mroute_socket=sk; 890 mroute_socket=sk;
891 write_unlock_bh(&mrt_lock); 891 write_unlock_bh(&mrt_lock);
892 892
893 ipv4_devconf.mc_forwarding++; 893 IPV4_DEVCONF_ALL(MC_FORWARDING)++;
894 } 894 }
895 rtnl_unlock(); 895 rtnl_unlock();
896 return ret; 896 return ret;