diff options
author | Alin Serdean <aserdean@cloudbasesolutions.com> | 2016-10-27 18:55:36 +0000 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-11-04 08:00:46 -0700 |
commit | 542d8cfa6f63eb8b53b9b4d401cb73a474237f06 (patch) | |
tree | 6e28a0eb799b0dc4c93f43a3607eb191d1295ab3 /datapath-windows/ovsext | |
parent | 4f460290cab19d19e59b64219acbb7b756bb19b2 (diff) | |
download | openvswitch-542d8cfa6f63eb8b53b9b4d401cb73a474237f06.tar.gz |
datapath-windows: clean code in gre
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')
-rw-r--r-- | datapath-windows/ovsext/Gre.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/datapath-windows/ovsext/Gre.c b/datapath-windows/ovsext/Gre.c index 1976b08f1..7d6c0a218 100644 --- a/datapath-windows/ovsext/Gre.c +++ b/datapath-windows/ovsext/Gre.c @@ -215,10 +215,10 @@ OvsDoEncapGre(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); #if DBG counterHeadRoom -= sizeof *ethHdr; |