check packet