'nw_src and nw_dst values greater than 32 mean the same thing as 32.
We normalize them here just to be clean and so that comparisons act
as you\'d want them to.'

def _normalize_wildcards(self, wildcards):

    if (((wildcards & OFPFW_NW_SRC_MASK) >> OFPFW_NW_SRC_SHIFT) > 32):
        wildcards &= (~ OFPFW_NW_SRC_MASK)
        wildcards |= (32 << OFPFW_NW_SRC_SHIFT)
    if (((wildcards & OFPFW_NW_DST_MASK) >> OFPFW_NW_DST_SHIFT) > 32):
        wildcards &= (~ OFPFW_NW_DST_MASK)
        wildcards |= (32 << OFPFW_NW_DST_SHIFT)
    return wildcards
