mirror of https://github.com/F-Stack/f-stack.git
Fix #643. Fix a VXLAN issue. Thanks @agerguo
This commit is contained in:
parent
806d8b61e5
commit
7dba406844
|
@ -2481,7 +2481,7 @@ vxlan_rcv_udp_packet(struct mbuf *m, int offset, struct inpcb *inpcb,
|
||||||
* the behavior of the Linux implementation.
|
* the behavior of the Linux implementation.
|
||||||
*/
|
*/
|
||||||
if (vxh->vxlh_flags != htonl(VXLAN_HDR_FLAGS_VALID_VNI) ||
|
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;
|
goto out;
|
||||||
|
|
||||||
vni = ntohl(vxh->vxlh_vni) >> VXLAN_HDR_VNI_SHIFT;
|
vni = ntohl(vxh->vxlh_vni) >> VXLAN_HDR_VNI_SHIFT;
|
||||||
|
|
Loading…
Reference in New Issue