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

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


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: ef1ebd3f33243e5585aa914208b94d0049fa2a7c
      https://github.com/openvswitch/ovs/commit/ef1ebd3f33243e5585aa914208b94d0049fa2a7c
  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