ip_to_mask fix:

convert m \in [0,32] to int32 X where the m MSB are set to 1

related to #172 for OF1.3

(OF1.4 is in an other branch)