mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
vxlan: fix incorrect type
The protocol is 16bit, not 32bit.
Fixes: e1e5314de0
("vxlan: implement GPE")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e0897ae3ec
commit
61618eeac3
1 changed files with 2 additions and 2 deletions
|
@ -1181,7 +1181,7 @@ static void vxlan_parse_gbp_hdr(struct vxlanhdr *unparsed,
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool vxlan_parse_gpe_hdr(struct vxlanhdr *unparsed,
|
static bool vxlan_parse_gpe_hdr(struct vxlanhdr *unparsed,
|
||||||
__be32 *protocol,
|
__be16 *protocol,
|
||||||
struct sk_buff *skb, u32 vxflags)
|
struct sk_buff *skb, u32 vxflags)
|
||||||
{
|
{
|
||||||
struct vxlanhdr_gpe *gpe = (struct vxlanhdr_gpe *)unparsed;
|
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 vxlanhdr unparsed;
|
||||||
struct vxlan_metadata _md;
|
struct vxlan_metadata _md;
|
||||||
struct vxlan_metadata *md = &_md;
|
struct vxlan_metadata *md = &_md;
|
||||||
__be32 protocol = htons(ETH_P_TEB);
|
__be16 protocol = htons(ETH_P_TEB);
|
||||||
bool raw_proto = false;
|
bool raw_proto = false;
|
||||||
void *oiph;
|
void *oiph;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue