Skip to content

Commit

Permalink
datapath-windows: clean code in stt
Browse files Browse the repository at this point in the history
The purpose of this patch is to make the code more readable and
fix a static analyzer warning.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Acked-by: Sairam Venugopal <[email protected]>
Signed-off-by: Gurucharan Shetty <[email protected]>
  • Loading branch information
Alin Serdean authored and shettyg committed Nov 4, 2016
1 parent e8830d5 commit 4f46029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datapath-windows/ovsext/Stt.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ OvsDoEncapStt(POVS_VPORT_ENTRY vport,
sttHdr = (SttHdr *) (outerTcpHdr + 1);

/* L2 header */
ASSERT(((PCHAR)&fwdInfo->dstMacAddr + sizeof fwdInfo->dstMacAddr) ==
(PCHAR)&fwdInfo->srcMacAddr);
NdisMoveMemory(outerEthHdr->Destination, fwdInfo->dstMacAddr,
sizeof outerEthHdr->Destination + sizeof outerEthHdr->Source);
sizeof outerEthHdr->Destination);
NdisMoveMemory(outerEthHdr->Source, fwdInfo->srcMacAddr,
sizeof outerEthHdr->Source);
outerEthHdr->Type = htons(ETH_TYPE_IPV4);

/* L3 header */
Expand Down

0 comments on commit 4f46029

Please sign in to comment.