diff options
| author | stephen hemminger <stephen@networkplumber.org> | 2013-12-18 01:35:52 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-12-22 18:02:43 -0500 |
| commit | 09aea5df7fbf0b987623f7007a11e64008284a0e (patch) | |
| tree | 9b9ace4b680455a4df9d97de54f7134fe52c6443 | |
| parent | 345010b5c488d754ecff98c4435a2a82949c9cf4 (diff) | |
netconf: rename PROXY_ARP to NEIGH_PROXY
Use same field for both IPv4 (proxy_arp) and IPv6 (proxy_ndp)
so fix it before API is set to be a common name
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | include/uapi/linux/netconf.h | 2 | ||||
| -rw-r--r-- | net/ipv4/devinet.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/uapi/linux/netconf.h b/include/uapi/linux/netconf.h index bd969d77ce52..669a1f0b1d97 100644 --- a/include/uapi/linux/netconf.h +++ b/include/uapi/linux/netconf.h | |||
| @@ -14,7 +14,7 @@ enum { | |||
| 14 | NETCONFA_FORWARDING, | 14 | NETCONFA_FORWARDING, |
| 15 | NETCONFA_RP_FILTER, | 15 | NETCONFA_RP_FILTER, |
| 16 | NETCONFA_MC_FORWARDING, | 16 | NETCONFA_MC_FORWARDING, |
| 17 | NETCONFA_PROXY_ARP, | 17 | NETCONFA_PROXY_NEIGH, |
| 18 | __NETCONFA_MAX | 18 | __NETCONFA_MAX |
| 19 | }; | 19 | }; |
| 20 | #define NETCONFA_MAX (__NETCONFA_MAX - 1) | 20 | #define NETCONFA_MAX (__NETCONFA_MAX - 1) |
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index de03fe7002d0..0feebd5de295 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c | |||
| @@ -1696,7 +1696,7 @@ static int inet_netconf_msgsize_devconf(int type) | |||
| 1696 | size += nla_total_size(4); | 1696 | size += nla_total_size(4); |
| 1697 | if (type == -1 || type == NETCONFA_MC_FORWARDING) | 1697 | if (type == -1 || type == NETCONFA_MC_FORWARDING) |
| 1698 | size += nla_total_size(4); | 1698 | size += nla_total_size(4); |
| 1699 | if (type == -1 || type == NETCONFA_PROXY_ARP) | 1699 | if (type == -1 || type == NETCONFA_PROXY_NEIGH) |
| 1700 | size += nla_total_size(4); | 1700 | size += nla_total_size(4); |
| 1701 | 1701 | ||
| 1702 | return size; | 1702 | return size; |
| @@ -1734,8 +1734,8 @@ static int inet_netconf_fill_devconf(struct sk_buff *skb, int ifindex, | |||
| 1734 | nla_put_s32(skb, NETCONFA_MC_FORWARDING, | 1734 | nla_put_s32(skb, NETCONFA_MC_FORWARDING, |
| 1735 | IPV4_DEVCONF(*devconf, MC_FORWARDING)) < 0) | 1735 | IPV4_DEVCONF(*devconf, MC_FORWARDING)) < 0) |
| 1736 | goto nla_put_failure; | 1736 | goto nla_put_failure; |
| 1737 | if ((type == -1 || type == NETCONFA_PROXY_ARP) && | 1737 | if ((type == -1 || type == NETCONFA_PROXY_NEIGH) && |
| 1738 | nla_put_s32(skb, NETCONFA_PROXY_ARP, | 1738 | nla_put_s32(skb, NETCONFA_PROXY_NEIGH, |
| 1739 | IPV4_DEVCONF(*devconf, PROXY_ARP)) < 0) | 1739 | IPV4_DEVCONF(*devconf, PROXY_ARP)) < 0) |
| 1740 | goto nla_put_failure; | 1740 | goto nla_put_failure; |
| 1741 | 1741 | ||
| @@ -1775,7 +1775,7 @@ static const struct nla_policy devconf_ipv4_policy[NETCONFA_MAX+1] = { | |||
| 1775 | [NETCONFA_IFINDEX] = { .len = sizeof(int) }, | 1775 | [NETCONFA_IFINDEX] = { .len = sizeof(int) }, |
| 1776 | [NETCONFA_FORWARDING] = { .len = sizeof(int) }, | 1776 | [NETCONFA_FORWARDING] = { .len = sizeof(int) }, |
| 1777 | [NETCONFA_RP_FILTER] = { .len = sizeof(int) }, | 1777 | [NETCONFA_RP_FILTER] = { .len = sizeof(int) }, |
| 1778 | [NETCONFA_PROXY_ARP] = { .len = sizeof(int) }, | 1778 | [NETCONFA_PROXY_NEIGH] = { .len = sizeof(int) }, |
| 1779 | }; | 1779 | }; |
| 1780 | 1780 | ||
| 1781 | static int inet_netconf_get_devconf(struct sk_buff *in_skb, | 1781 | static int inet_netconf_get_devconf(struct sk_buff *in_skb, |
| @@ -2002,7 +2002,7 @@ static int devinet_conf_proc(struct ctl_table *ctl, int write, | |||
| 2002 | if (i == IPV4_DEVCONF_PROXY_ARP - 1 && | 2002 | if (i == IPV4_DEVCONF_PROXY_ARP - 1 && |
| 2003 | new_value != old_value) { | 2003 | new_value != old_value) { |
| 2004 | ifindex = devinet_conf_ifindex(net, cnf); | 2004 | ifindex = devinet_conf_ifindex(net, cnf); |
| 2005 | inet_netconf_notify_devconf(net, NETCONFA_PROXY_ARP, | 2005 | inet_netconf_notify_devconf(net, NETCONFA_PROXY_NEIGH, |
| 2006 | ifindex, cnf); | 2006 | ifindex, cnf); |
| 2007 | } | 2007 | } |
| 2008 | } | 2008 | } |
