Fix #643. Fix a VXLAN issue. Thanks @agerguo

This commit is contained in:
fengbojiang 2022-02-26 21:28:12 +08:00
parent 806d8b61e5
commit 7dba406844
1 changed files with 1 additions and 1 deletions

View File

@ -2481,7 +2481,7 @@ vxlan_rcv_udp_packet(struct mbuf *m, int offset, struct inpcb *inpcb,
* the behavior of the Linux implementation.
*/
if (vxh->vxlh_flags != htonl(VXLAN_HDR_FLAGS_VALID_VNI) ||
vxh->vxlh_vni & ~htonl(VXLAN_VNI_MASK))
vxh->vxlh_vni & ~VXLAN_VNI_MASK)
goto out;
vni = ntohl(vxh->vxlh_vni) >> VXLAN_HDR_VNI_SHIFT;