summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Vxlan.c
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2016-10-27 18:53:54 +0000
committerGurucharan Shetty <guru@ovn.org>2016-11-04 07:59:40 -0700
commite8830d5eecd48ecd58b12c83a36ae6ff948dc3a6 (patch)
tree052cd8bc66df0e324a751441d304104860a539bf /datapath-windows/ovsext/Vxlan.c
parent925f66972d3fcb1b3c199d06ec2c7b38282796ca (diff)
downloadopenvswitch-e8830d5eecd48ecd58b12c83a36ae6ff948dc3a6.tar.gz
datapath-windows: clean code in vxlan
The purpose of this patch is to make the code more readable and fix a static analyzer warning. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Vxlan.c')
-rw-r--r--datapath-windows/ovsext/Vxlan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath-windows/ovsext/Vxlan.c b/datapath-windows/ovsext/Vxlan.c
index ddd8d8e40..db452483a 100644
--- a/datapath-windows/ovsext/Vxlan.c
+++ b/datapath-windows/ovsext/Vxlan.c
@@ -260,10 +260,10 @@ OvsDoEncapVxlan(POVS_VPORT_ENTRY vport,
/* L2 header */
ethHdr = (EthHdr *)bufferStart;
- ASSERT(((PCHAR)&fwdInfo->dstMacAddr + sizeof fwdInfo->dstMacAddr) ==
- (PCHAR)&fwdInfo->srcMacAddr);
NdisMoveMemory(ethHdr->Destination, fwdInfo->dstMacAddr,
- sizeof ethHdr->Destination + sizeof ethHdr->Source);
+ sizeof ethHdr->Destination);
+ NdisMoveMemory(ethHdr->Source, fwdInfo->srcMacAddr,
+ sizeof ethHdr->Source);
ethHdr->Type = htons(ETH_TYPE_IPV4);
/* IP header */