Mask proto_ports_offset if defined in kernel