Open DarrenSong opened 5 years ago
Hi, in order to extract data you could try to rfind the RawPDU (or whatever else it is) inside the IP PDU and use the payload() getter method. Something like this, for example:
auto a = pkt.rfind_pdu<Tins::RawPDU>().payload();
Hope it could be useful.
i can get the IP though IP &ip = pdu.rfind_pdu();but i don't know how to extract data? could you help me?