test of length of pkt needs to be < not <=, equal length should be allowed