table of contents
ipv6(3) | libnetfilter_queue | ipv6(3) |
NAME¶
ipv6 - IPv6 helper functions
SYNOPSIS¶
Functions¶
struct ip6_hdr * nfq_ip6_get_hdr (struct pkt_buff *pktb)
int nfq_ip6_set_transport_header (struct pkt_buff *pktb, struct ip6_hdr
*ip6h, uint8_t target)
int nfq_ip6_mangle (struct pkt_buff *pktb, unsigned int dataoff,
unsigned int match_offset, unsigned int match_len, const char *rep_buffer,
unsigned int rep_len)
int nfq_ip6_snprintf (char *buf, size_t size, const struct ip6_hdr
*ip6h)
Detailed Description¶
Function Documentation¶
struct ip6_hdr * nfq_ip6_get_hdr (struct pkt_buff * pktb)¶
nfq_ip6_get_hdr - get IPv6 header
Parameters
Returns
Definition at line 36 of file ipv6.c.
int nfq_ip6_mangle (struct pkt_buff * pktb, unsigned int dataoff, unsigned int match_offset, unsigned int match_len, const char * rep_buffer, unsigned int rep_len)¶
nfq_ip6_mangle - mangle IPv6 packet buffer
Parameters
dataoff Offset to layer 4 header
match_offset Offset to 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 131 of file ipv6.c.
int nfq_ip6_set_transport_header (struct pkt_buff * pktb, struct ip6_hdr * ip6h, uint8_t target)¶
nfq_ip6_set_transport_header - set transport header pointer for IPv6 packet
Parameters
ip6h Pointer to IPv6 header
target Protocol number to find transport header (ie. IPPROTO_*)
Returns
Definition at line 64 of file ipv6.c.
int nfq_ip6_snprintf (char * buf, size_t size, const struct ip6_hdr * ip6h)¶
nfq_ip6_snprintf - print IPv6 header into one buffer in iptables LOG format
Parameters
size Size of the buffer (or remaining room in it).
ip6h Pointer to a valid IPv6 header.
Returns
See also
Definition at line 158 of file ipv6.c.
Author¶
Generated automatically by Doxygen for libnetfilter_queue from the source code.
Wed Aug 9 2023 | Version 1.0.5 |