提交 61618eea 编写于 作者: J Jiri Benc 提交者: David S. Miller

vxlan: fix incorrect type

The protocol is 16bit, not 32bit.

Fixes: e1e5314d ("vxlan: implement GPE")
Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NJiri Benc <jbenc@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e0897ae3
......@@ -1181,7 +1181,7 @@ static void vxlan_parse_gbp_hdr(struct vxlanhdr *unparsed,
}
static bool vxlan_parse_gpe_hdr(struct vxlanhdr *unparsed,
__be32 *protocol,
__be16 *protocol,
struct sk_buff *skb, u32 vxflags)
{
struct vxlanhdr_gpe *gpe = (struct vxlanhdr_gpe *)unparsed;
......@@ -1284,7 +1284,7 @@ static int vxlan_rcv(struct sock *sk, struct sk_buff *skb)
struct vxlanhdr unparsed;
struct vxlan_metadata _md;
struct vxlan_metadata *md = &_md;
__be32 protocol = htons(ETH_P_TEB);
__be16 protocol = htons(ETH_P_TEB);
bool raw_proto = false;
void *oiph;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册