Go to the documentation of this file.
18 #ifndef SURICATA_PACKET_BINDGEN_H
19 #define SURICATA_PACKET_BINDGEN_H
bool SCPacketIsToServer(const Packet *p)
Test whether the packet is marked as flowing to the server.
void SCPacketGetTimeAsParts(const Packet *p, uint64_t *secs, uint64_t *usecs)
Get packet timestamp as individual values.
uint8_t SCPacketGetIPProto(const Packet *p)
Get IP proto regardless of IP version.
bool SCPacketIsToClient(const Packet *p)
Test whether the packet is marked as flowing to the client.
enum PacketL3Types SCPacketGetL3Type(const Packet *p)
Get the type of the packet's L3 layer.
const uint8_t * SCPacketGetL3(const Packet *p, uint32_t *len)
Get the L3 packet data, starting at the L3 header.
Flow * SCPacketGetFlow(const Packet *p)
Get the flow associated with the packet.