pktbuff(3) | Library Functions Manual | pktbuff(3) |
pktbuff - User-space network packet buffer
Other functions
struct pkt_buff * pktb_alloc (int family, void *data,
size_t len, size_t extra)
uint8_t * pktb_data (struct pkt_buff *pktb)
uint32_t pktb_len (struct pkt_buff *pktb)
void pktb_free (struct pkt_buff *pktb)
int pktb_mangle (struct pkt_buff *pktb, int dataoff, unsigned int
match_offset, unsigned int match_len, const char *rep_buffer, unsigned int
rep_len)
bool pktb_mangled (const struct pkt_buff *pktb)
This library provides the user-space network packet buffer. This abstraction is strongly inspired by Linux kernel network buffer, the so-called sk_buff.
pktb_alloc - allocate a new packet buffer
Parameters
This function returns a packet buffer that contains the packet data and some extra memory room in the tail (if requested).
Returns
Errors
See also
Definition at line 52 of file pktbuff.c.
pktb_data - get pointer to network packet
Parameters
Returns
Definition at line 105 of file pktbuff.c.
pktb_free - release packet buffer
Parameters
Definition at line 129 of file pktbuff.c.
pktb_len - get length of packet buffer
Parameters
Returns
Definition at line 119 of file pktbuff.c.
pktb_mangle - adjust contents of a packet
Parameters
Returns
Warning
Definition at line 314 of file pktbuff.c.
pktb_mangled - test whether packet has been mangled
Parameters
Returns
Definition at line 359 of file pktbuff.c.
Generated automatically by Doxygen for libnetfilter_queue from the source code.
Version 1.0.5 | libnetfilter_queue |