summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2014-07-26 00:38:59 +0800
committerDavid S. Miller <davem@davemloft.net>2014-07-28 17:52:17 -0700
commit545469f7a5d7f7b2a17b74da0a1bd0c1aea2f545 (patch)
treeac9a40e398b553e8575bfc0ec51afe5866d49aee /drivers
parent8266f5fcf015101fbeb73cbc152c9d208c2baec0 (diff)
downloadlinux-545469f7a5d7f7b2a17b74da0a1bd0c1aea2f545.tar.gz
linux-545469f7a5d7f7b2a17b74da0a1bd0c1aea2f545.tar.bz2
linux-545469f7a5d7f7b2a17b74da0a1bd0c1aea2f545.zip
neighbour : fix ndm_type type error issue
ndm_type means L3 address type, in neighbour proxy and vxlan, it's RTN_UNICAST. NDA_DST is for netlink TLV type, hence it's not right value in this context. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index ade33ef82823..9f79192c9aa0 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -339,7 +339,7 @@ static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan,
ndm->ndm_state = fdb->state;
ndm->ndm_ifindex = vxlan->dev->ifindex;
ndm->ndm_flags = fdb->flags;
- ndm->ndm_type = NDA_DST;
+ ndm->ndm_type = RTN_UNICAST;
if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr))
goto nla_put_failure;