Skip to content

Commit 7dba406

Browse files
committed
Fix #643. Fix a VXLAN issue. Thanks @agerguo
1 parent 806d8b6 commit 7dba406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freebsd/net/if_vxlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,7 @@ vxlan_rcv_udp_packet(struct mbuf *m, int offset, struct inpcb *inpcb,
24812481
* the behavior of the Linux implementation.
24822482
*/
24832483
if (vxh->vxlh_flags != htonl(VXLAN_HDR_FLAGS_VALID_VNI) ||
2484-
vxh->vxlh_vni & ~htonl(VXLAN_VNI_MASK))
2484+
vxh->vxlh_vni & ~VXLAN_VNI_MASK)
24852485
goto out;
24862486

24872487
vni = ntohl(vxh->vxlh_vni) >> VXLAN_HDR_VNI_SHIFT;

0 commit comments

Comments
 (0)