diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2016-10-27 18:55:14 +0000 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-11-04 08:00:33 -0700 |
commit | 4f460290cab19d19e59b64219acbb7b756bb19b2 (patch) | |
tree | 44bc658e655fdb8edd8be0b1d0468e9b504be51f /datapath-windows/ovsext/Stt.c | |
parent | e8830d5eecd48ecd58b12c83a36ae6ff948dc3a6 (diff) | |
download | openvswitch-4f460290cab19d19e59b64219acbb7b756bb19b2.tar.gz |
datapath-windows: clean code in stt
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/Stt.c')
-rw-r--r-- | datapath-windows/ovsext/Stt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath-windows/ovsext/Stt.c b/datapath-windows/ovsext/Stt.c index ad322d25f..b04a77f04 100644 --- a/datapath-windows/ovsext/Stt.c +++ b/datapath-windows/ovsext/Stt.c @@ -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 */ |