table of contents
otherfns(3) | libnetfilter_queue | otherfns(3) |
NAME¶
otherfns - Other functions
SYNOPSIS¶
Modules¶
Internal functions
Functions¶
unsigned int pktb_tailroom (struct pkt_buff *pktb)
uint8_t * pktb_mac_header (struct pkt_buff *pktb)
uint8_t * pktb_network_header (struct pkt_buff *pktb)
uint8_t * pktb_transport_header (struct pkt_buff *pktb)
Detailed Description¶
The library provides a number of other functions which many
user-space programs will never need. These divide into 2 groups:
- 1.
- Functions to get values of members of opaque struct pktbuff, described below
- 2.
- Internal functions, described in Module Internal functions
Function Documentation¶
uint8_t * pktb_mac_header (struct pkt_buff * pktb)¶
pktb_mac_header - get address of layer 2 header (if any)
Parameters
Returns
Only packet buffers in family AF_BRIDGE have a non-NULL MAC header.
Definition at line 233 of file pktbuff.c.
uint8_t * pktb_network_header (struct pkt_buff * pktb)¶
pktb_network_header - get address of layer 3 header
Parameters
Returns
Definition at line 245 of file pktbuff.c.
unsigned int pktb_tailroom (struct pkt_buff * pktb)¶
pktb_tailroom - get room available for packet expansion
Parameters
Returns
This starts off as the extra argument to pktb_alloc(). Programmers should ensure this extra argument is sufficient for any packet mangle, as packet buffers cannot be expanded dynamically.
Definition at line 220 of file pktbuff.c.
uint8_t * pktb_transport_header (struct pkt_buff * pktb)¶
pktb_transport_header - get address of layer 4 header (if known)
Parameters
Returns
Note
Definition at line 260 of file pktbuff.c.
Author¶
Generated automatically by Doxygen for libnetfilter_queue from the source code.
Wed Aug 9 2023 | Version 1.0.5 |