suricata
|
Go to the source code of this file.
Functions | |
int WARN_UNUSED | PktVarAddKeyValue (Packet *, uint8_t *, uint16_t, uint8_t *, uint16_t) |
add a key-value pktvar to the pkt More... | |
int WARN_UNUSED | PktVarAdd (Packet *, uint32_t id, uint8_t *, uint16_t) |
add a key-value pktvar to the pkt More... | |
PktVar * | PktVarGet (Packet *, uint32_t id) |
void | PktVarFree (PktVar *) |
Definition in file pkt-var.h.
int WARN_UNUSED PktVarAdd | ( | Packet * | p, |
uint32_t | id, | ||
uint8_t * | value, | ||
uint16_t | size | ||
) |
add a key-value pktvar to the pkt
r | 0 ok, -1 error |
Definition at line 86 of file pkt-var.c.
References PktVar_::id, PktVar_::next, Packet_::pktvar, SCCalloc, unlikely, PktVar_::value, and PktVar_::value_len.
int WARN_UNUSED PktVarAddKeyValue | ( | Packet * | p, |
uint8_t * | key, | ||
uint16_t | ksize, | ||
uint8_t * | value, | ||
uint16_t | size | ||
) |
add a key-value pktvar to the pkt
r | 0 ok, -1 error |
Definition at line 56 of file pkt-var.c.
References PktVar_::key, PktVar_::key_len, PktVar_::next, Packet_::pktvar, SCCalloc, unlikely, PktVar_::value, and PktVar_::value_len.
void PktVarFree | ( | PktVar * | ) |
Definition at line 111 of file pkt-var.c.
References PktVar_::key, PktVar_::next, PktVarFree(), SCFree, and PktVar_::value.
Referenced by GenericVarFree(), PacketDestructor(), PacketReinit(), and PktVarFree().
Definition at line 40 of file pkt-var.c.
References PktVar_::id, PktVar_::next, and Packet_::pktvar.