]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
neighbour : fix ndm_type type error issue
authorJun Zhao <mypopydev@gmail.com>
Fri, 25 Jul 2014 16:38:59 +0000 (00:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jul 2014 00:52:17 +0000 (17:52 -0700)
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>
drivers/net/vxlan.c
net/core/neighbour.c

index ade33ef82823b230a34890d77af039d8531aefb7..9f79192c9aa0130d978e01ea8c1585298686ea2a 100644 (file)
@@ -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;
index 559890b0f0a2c6aaac5dc16878e2a4ff16a55933..ef31fef25e5a872eb6565c1d57953d0c6558d2c7 100644 (file)
@@ -2249,7 +2249,7 @@ static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn,
        ndm->ndm_pad1    = 0;
        ndm->ndm_pad2    = 0;
        ndm->ndm_flags   = pn->flags | NTF_PROXY;
-       ndm->ndm_type    = NDA_DST;
+       ndm->ndm_type    = RTN_UNICAST;
        ndm->ndm_ifindex = pn->dev->ifindex;
        ndm->ndm_state   = NUD_NONE;