Man page - nfq_ip6_get_hdr(3)
Packages contains this manual
- nfq_set_queue_maxlen(3)
- nfq_fd(3)
- nfq_set_mode(3)
- nfq_get_physoutdev(3)
- nfq_nlmsg_cfg_put_params(3)
- nfq_nlmsg_cfg_put_qmaxlen(3)
- nfq_get_nfmark(3)
- nfq_get_payload(3)
- nfq_get_physindev_name(3)
- nfq_get_secctx(3)
- nfq_unbind_pf(3)
- nfq_get_physoutdev_name(3)
- nfq_set_verdict_batch(3)
- nfq_nlmsg_verdict_put_pkt(3)
- nfq_set_verdict_batch2(3)
- nfq_get_outdev_name(3)
- nfq_get_outdev(3)
- nfq_set_verdict2(3)
- nfq_get_msg_packet_hdr(3)
- nfq_get_timestamp(3)
- nfq_udp_get_payload(3)
- pktb_alloc(3)
- nfq_create_queue(3)
- nfq_snprintf_xml(3)
- nfq_get_physindev(3)
- nfq_destroy_queue(3)
- nfq_set_verdict(3)
- nfq_ip6_get_hdr(3)
- nfq_tcp_get_hdr(3)
- pktb_network_header(3)
- nfq_ip6_snprintf(3)
- nfq_bind_pf(3)
- nfq_set_verdict_mark(3)
- nfq_nlmsg_verdict_put_mark(3)
- nfq_get_indev_name(3)
- nfq_get_gid(3)
- pktb_mangle(3)
- pktb_mangled(3)
- pktb_trim(3)
- nfq_udp_mangle_ipv4(3)
- nfq_nlmsg_parse(3)
- nfq_ip_get_hdr(3)
- nfq_set_queue_flags(3)
- nfq_udp_get_hdr(3)
- nfq_udp_mangle_ipv6(3)
- nfq_tcp_mangle_ipv4(3)
- nfq_ip_snprintf(3)
- nfq_get_indev(3)
- pktb_push(3)
- nfq_nlmsg_cfg_put_cmd(3)
- pktb_transport_header(3)
- pktb_pull(3)
- nfq_udp_compute_checksum_ipv4(3)
- nfq_tcp_compute_checksum_ipv4(3)
- nfq_handle_packet(3)
- pktb_free(3)
- pktb_put(3)
- pktb_data(3)
- nfq_udp_compute_checksum_ipv6(3)
- nfq_close(3)
- nfq_udp_snprintf(3)
- nfq_ip_mangle(3)
- nfq_nlmsg_verdict_put(3)
- nfq_tcp_snprintf(3)
- pktb_mac_header(3)
- nfq_get_packet_hw(3)
- nfq_get_skbinfo(3)
- nfq_nlmsg_put(3)
- nfq_tcp_mangle_ipv6(3)
- nfq_ip_set_transport_header(3)
- nfq_get_uid(3)
- nfq_tcp_get_payload(3)
- nfq_ip6_set_transport_header(3)
- nfq_ip_set_checksum(3)
- nfq_tcp_compute_checksum_ipv6(3)
- nfq_tcp_get_payload_len(3)
- pktb_len(3)
- nfq_open(3)
- nfq_ip6_mangle(3)
- nfq_udp_get_payload_len(3)
- pktb_tailroom(3)
apt-get install libnetfilter-queue-doc
Manual
ipv6
NAMESYNOPSIS
Functions
Detailed Description
Function Documentation
struct ip6_hdr * nfq_ip6_get_hdr (struct pkt_buff * pktb)
int nfq_ip6_mangle (struct pkt_buff * pktb, unsigned int dataoff, unsignedint match_offset, unsigned int match_len, const char * rep_buffer,unsigned int rep_len)
int nfq_ip6_set_transport_header (struct pkt_buff * pktb, struct ip6_hdr *ip6h, uint8_t target)
int nfq_ip6_snprintf (char * buf, size_t size, const struct ip6_hdr * ip6h)
Author
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
pktb Pointer to user-space network packet buffer
Returns
pointer to IPv6 header if a valid header found, else NULL.
Definition at line 36 of file ipv6.c .
int nfq_ip6_mangle (struct pkt_buff * pktb, unsigned int dataoff, unsignedint match_offset, unsigned int match_len, const char * rep_buffer,unsigned int rep_len)
nfq_ip6_mangle - mangle IPv6 packet buffer
Parameters
pktb
Pointer to
user-space network packet buffer
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
1 for success and 0 for failure. See pktb_mangle() for failure case
Note
This function updates the IPv6 length (if necessary)
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
pktb
Pointer to
user-space network packet buffer
ip6h
Pointer to IPv6 header
target
Protocol number to find transport header (ie.
IPPROTO_*)
Returns
1 if the protocol has been found and the transport header has been set, else 0.
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
buf
Pointer to buffer
that is used to print the object
size
Size of the buffer (or remaining room in it).
ip6h
Pointer to a valid IPv6 header.
Returns
same as snprintf
See also
snprintf (3)
Definition at line 158 of file ipv6.c .
Author
Generated automatically by Doxygen for libnetfilter_queue from the source code.