3.5. Packet¶
- struct packet
Opaque packet structure.
- size_t packet_length(struct packet *pkt)¶
Get the length of a packet.
- const char *packet_dissector(struct packet *pkt)¶
Get packet dissector to use.
- int packet_resize(struct packet *pkt, size_t size)¶
Resize a packet.
- void packet_drop(struct packet *pkt)¶
Drop a packet. The packet will be released and should not be used anymore after this call.
- void packet_accept(struct packet *pkt);
Accept a packet. The packet will be released and should not be used anymore after this call.
- int packet_receive(struct packet_module_state *state, struct packet **pkt)¶
Receive a packet from the capture module. This function will wait if no packet is available.