[ovs-git] [openvswitch/ovs] 00e34b: ipfix: Bug fix for not sending template packets on...

GitHub noreply at github.com
Tue Jun 14 15:28:40 UTC 2016


  Branch: refs/heads/branch-2.5
  Home:   https://github.com/openvswitch/ovs
  Commit: 00e34b420ee5991fce5d31bf9d5dd4410a1c1e17
      https://github.com/openvswitch/ovs/commit/00e34b420ee5991fce5d31bf9d5dd4410a1c1e17
  Author: Benli Ye <daniely at vmware.com>
  Date:   2016-06-14 (Tue, 14 Jun 2016)

  Changed paths:
    M ofproto/ofproto-dpif-ipfix.c

  Log Message:
  -----------
  ipfix: Bug fix for not sending template packets on 32-bit OS

'last_template_set_time' in truct dpif_ipfix_exporter is declared
as time_t and time_t is long int type. If we initialize
'last_template_set_time' as TIME_MIN, whose value is -2147483648
on 32-bit OS and -2^63 on 64-bit OS. There will be a problem on
32-bit OS when comparing 'last_template_set_time' with a unisgned int
type variable, because type casting will happen and negative value
could be a large positive number. Fix this problem by simply initialize
'last_template_set_time' as 0.

Signed-off-by: Benli Ye <daniely at vmware.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: William Tu <u9012063 at gmail.com>




More information about the git mailing list