> For the complete documentation index, see [llms.txt](https://mwx.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwx.twelite.info/latest1/api-reference/classes/pktparser/idenify_packet_type.md).

# idenify\_packet\_type()

パケットデータのバイト列を入力として、パケットの種別を判定します。戻り値は[E\_PKT](/latest1/api-reference/classes/pktparser/e_pkt.md)です。

```cpp
E_PKT identify_packet_type(uint8_t* p, uint8_t u8len)
```

特定のパケットであると解釈できなかった場合は`E_PKT::PKT_ERROR`が戻ります。
