print msg when packet header is wrong