Commit 545469f7 authored by Jun Zhao's avatar Jun Zhao Committed by David S. Miller

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: default avatarJun Zhao <mypopydev@gmail.com>
Acked-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8266f5fc
...@@ -339,7 +339,7 @@ static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, ...@@ -339,7 +339,7 @@ static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan,
ndm->ndm_state = fdb->state; ndm->ndm_state = fdb->state;
ndm->ndm_ifindex = vxlan->dev->ifindex; ndm->ndm_ifindex = vxlan->dev->ifindex;
ndm->ndm_flags = fdb->flags; 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)) if (send_eth && nla_put(skb, NDA_LLADDR, ETH_ALEN, &fdb->eth_addr))
goto nla_put_failure; goto nla_put_failure;
......
...@@ -2249,7 +2249,7 @@ static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn, ...@@ -2249,7 +2249,7 @@ static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn,
ndm->ndm_pad1 = 0; ndm->ndm_pad1 = 0;
ndm->ndm_pad2 = 0; ndm->ndm_pad2 = 0;
ndm->ndm_flags = pn->flags | NTF_PROXY; 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_ifindex = pn->dev->ifindex;
ndm->ndm_state = NUD_NONE; ndm->ndm_state = NUD_NONE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment