[ovs-git] [openvswitch/ovs] 86f35f: util: Add be32_prefix_mask().

GitHub noreply at github.com
Tue Nov 11 23:47:12 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 86f35fb5c6117f2482e91776e7c5fe71668720fb
      https://github.com/openvswitch/ovs/commit/86f35fb5c6117f2482e91776e7c5fe71668720fb
  Author: Jarno Rajahalme <jrajahalme at nicira.com>
  Date:   2014-11-11 (Tue, 11 Nov 2014)

  Changed paths:
    M lib/classifier.c
    M lib/meta-flow.c
    M lib/ovs-router.c
    M lib/util.h

  Log Message:
  -----------
  util: Add be32_prefix_mask().

Shifting a 32-bit entity by 32 bits is undefined behavior.  As we have 3
cases where we may hit this, it is a time to introduce a helper for
this.

VMware-BZ: #1355026
Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>




More information about the git mailing list