diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/inetdevice.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index 40adefdfe5d1..ae04901aa09a 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h | |||
@@ -59,6 +59,11 @@ static inline void ipv4_devconf_set(struct in_device *in_dev, int index, | |||
59 | in_dev->cnf.data[index] = val; | 59 | in_dev->cnf.data[index] = val; |
60 | } | 60 | } |
61 | 61 | ||
62 | static inline void ipv4_devconf_setall(struct in_device *in_dev) | ||
63 | { | ||
64 | bitmap_fill(in_dev->cnf.state, __NET_IPV4_CONF_MAX - 1); | ||
65 | } | ||
66 | |||
62 | #define IN_DEV_CONF_GET(in_dev, attr) \ | 67 | #define IN_DEV_CONF_GET(in_dev, attr) \ |
63 | ipv4_devconf_get((in_dev), NET_IPV4_CONF_ ## attr) | 68 | ipv4_devconf_get((in_dev), NET_IPV4_CONF_ ## attr) |
64 | #define IN_DEV_CONF_SET(in_dev, attr, val) \ | 69 | #define IN_DEV_CONF_SET(in_dev, attr, val) \ |
@@ -125,7 +130,6 @@ extern struct net_device *ip_dev_find(__be32 addr); | |||
125 | extern int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b); | 130 | extern int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b); |
126 | extern int devinet_ioctl(unsigned int cmd, void __user *); | 131 | extern int devinet_ioctl(unsigned int cmd, void __user *); |
127 | extern void devinet_init(void); | 132 | extern void devinet_init(void); |
128 | extern struct in_device *inetdev_init(struct net_device *dev); | ||
129 | extern struct in_device *inetdev_by_index(int); | 133 | extern struct in_device *inetdev_by_index(int); |
130 | extern __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope); | 134 | extern __be32 inet_select_addr(const struct net_device *dev, __be32 dst, int scope); |
131 | extern __be32 inet_confirm_addr(const struct net_device *dev, __be32 dst, __be32 local, int scope); | 135 | extern __be32 inet_confirm_addr(const struct net_device *dev, __be32 dst, __be32 local, int scope); |