Correct the mask byte order when checking for reserved bits.
Reviewed by: gnn Approved by: gnn MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26071
This commit is contained in:
parent
dcd359b8bd
commit
45f58a2d89
@ -2545,7 +2545,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user