[ovs-git] [openvswitch/ovs] 00a158: datapath-windows: Fix payload length calculation i...

GitHub noreply at github.com
Thu Sep 20 14:35:07 UTC 2018


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: 00a158d34a55f4c223198334ca438a378d848b59
      https://github.com/openvswitch/ovs/commit/00a158d34a55f4c223198334ca438a378d848b59
  Author: Alin Gabriel Serdean <aserdean at ovn.org>
  Date:   2018-09-20 (Thu, 20 Sep 2018)

  Changed paths:
    M datapath-windows/ovsext/Conntrack.h

  Log Message:
  -----------
  datapath-windows: Fix payload length calculation in Conntrack.h

The payload calculation in OvsGetTcpHeader is wrong:
`ntohs(ipHdr->tot_len) - expr` instead of `ntohs((ipHdr->tot_len) - expr)`.

We already have a macro for that calculation defined in NetProto.h so use it.

Signed-off-by: Alin Gabriel Serdean <aserdean at ovn.org>
Acked-by: Anand Kumar <kumaranand at vmware.com>



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the git mailing list