table of contents
udp(3) | libnetfilter_queue | udp(3) |
NAME¶
udp - UDP helper functions
SYNOPSIS¶
Modules¶
Internal UDP functions
Functions¶
struct udphdr * nfq_udp_get_hdr (struct pkt_buff *pktb)
void * nfq_udp_get_payload (struct udphdr *udph, struct pkt_buff *pktb)
unsigned int nfq_udp_get_payload_len (struct udphdr *udph, struct
pkt_buff *pktb)
int nfq_udp_mangle_ipv4 (struct pkt_buff *pktb, unsigned int
match_offset, unsigned int match_len, const char *rep_buffer, unsigned int
rep_len)
int nfq_udp_mangle_ipv6 (struct pkt_buff *pktb, unsigned int
match_offset, unsigned int match_len, const char *rep_buffer, unsigned int
rep_len)
int nfq_udp_snprintf (char *buf, size_t size, const struct udphdr
*udph)
Detailed Description¶
Function Documentation¶
struct udphdr * nfq_udp_get_hdr (struct pkt_buff * pktb)¶
nfq_udp_get_hdr - get the UDP header.
Parameters
Returns
Note
Definition at line 43 of file udp.c.
void * nfq_udp_get_payload (struct udphdr * udph, struct pkt_buff * pktb)¶
nfq_udp_get_payload - get the UDP packet payload.
Parameters
pktb Pointer to userspace network packet buffer
Returns
Definition at line 62 of file udp.c.
unsigned int nfq_udp_get_payload_len (struct udphdr * udph, struct pkt_buff * pktb)¶
nfq_udp_get_payload_len - get the udp packet payload.
Parameters
pktb Pointer to userspace network packet buffer
Returns
Definition at line 84 of file udp.c.
int nfq_udp_mangle_ipv4 (struct pkt_buff * pktb, unsigned int match_offset, unsigned int match_len, const char * rep_buffer, unsigned int rep_len)¶
nfq_udp_mangle_ipv4 - Mangle UDP/IPv4 packet buffer
Parameters
match_offset Offset from start of UDP data of content that you want to mangle
match_len Length of the existing content you want to mangle
rep_buffer Pointer to data you want to use to replace current content
rep_len Length of data you want to use to replace current content
Returns
Note
Definition at line 150 of file udp.c.
int nfq_udp_mangle_ipv6 (struct pkt_buff * pktb, unsigned int match_offset, unsigned int match_len, const char * rep_buffer, unsigned int rep_len)¶
nfq_udp_mangle_ipv6 - Mangle UDP/IPv6 packet buffer
Parameters
match_offset Offset from start of UDP data of content that you want to mangle
match_len Length of the existing content you want to mangle
rep_buffer Pointer to data you want to use to replace current content
rep_len Length of data you want to use to replace current content
Returns
Note
Definition at line 184 of file udp.c.
int nfq_udp_snprintf (char * buf, size_t size, const struct udphdr * udph)¶
nfq_pkt_snprintf_udp_hdr - print udp header into one buffer in a humnan readable way
Parameters
size size of the buffer (or remaining room in it).
udph pointer to a valid udp header.
Returns
See also
Definition at line 220 of file udp.c.
Author¶
Generated automatically by Doxygen for libnetfilter_queue from the source code.
Wed Aug 9 2023 | Version 1.0.5 |