util: Add be32_prefix_mask().
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 11 Nov 2014 23:50:51 +0000 (15:50 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Tue, 11 Nov 2014 23:56:08 +0000 (15:56 -0800)
commit526a7c85d11dc049ec8f255b948328bf9ba58529
tree971255e0ef96ff834de029716953af993c5383a7
parentb393b7f042506141e98419be6d606184bf95d04d
util: Add be32_prefix_mask().

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

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/classifier.c
lib/meta-flow.c
lib/util.h