Skip to contentSkip to conversation

Merge sys.net.ipv4.ip_forward and sys.net.ipv4.conf.all.forwarding

PATCH New Pavel Emelyanov 1 participant 1 message Dec 3, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Merge sys.net.ipv4.ip_forward and sys.net.ipv4.conf.all.forwarding

AFAIS these two entries should do the same thing - change the forwarding state on ipv4_devconf and on all the devices.

I propose to merge the handlers together using ctl paths.

The inet_forward_change() is static after this and I move it higher to make code organized like
<helpers (including this)>
<proc/sysctl handlers>
<tables>
rather than mixing it altogether.

---

include/linux/inetdevice.h +0 -1
index d83fee2..dd093ea 100644
@@ -135,7 +135,6 @@ extern struct in_device	*inetdev_by_index(int);
 extern __be32		inet_select_addr(const struct net_device *dev, __be32 dst, int scope);
 extern __be32		inet_confirm_addr(const struct net_device *dev, __be32 dst, __be32 local, int scope);
 extern struct in_ifaddr *inet_ifa_byprefix(struct in_device *in_dev, __be32 prefix, __be32 mask);
-extern void		inet_forward_change(void);
 
 static __inline__ int inet_ifa_match(__be32 addr, struct in_ifaddr *ifa)
 {
net/ipv4/devinet.c +44 -22

90 lines not on this page · raw message

net/ipv4/sysctl_net_ipv4.c +0 -65

77 lines not on this page · raw message

Signature · 1 line
1.5.3.4