net/packet: fix overflow in check for tp_frame_nr