Revert "lib: optimize apply_mask_ipv6()"

Experience with IPv4 counterpart of this function suggests, that
this way of type-punning is likely to cause errors.
1 file changed