ipv4(3) | Library Functions Manual | ipv4(3) |
ipv4 - IPv4 helper functions
Internal IP functions
struct iphdr * nfq_ip_get_hdr (struct pkt_buff *pktb)
int nfq_ip_set_transport_header (struct pkt_buff *pktb, struct iphdr
*iph)
int nfq_ip_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_ip_snprintf (char *buf, size_t size, const struct iphdr *iph)
nfq_ip_get_hdr - get the IPv4 header
Parameters
Returns
Many programs will not need to call this function. A possible use is to determine the layer 4 protocol. The validation is that the buffer is big enough for the declared lengths in the header, i.e. an extra check for packet truncation.
Definition at line 40 of file ipv4.c.
nfq_ip_mangle - mangle IPv4 packet buffer
Parameters
Returns
Note
Definition at line 127 of file ipv4.c.
nfq_ip_set_transport_header - set the transport_header field in pktb
Parameters
Returns
Note
Definition at line 73 of file ipv4.c.
nfq_pkt_snprintf_ip - print IPv4 header into buffer in iptables LOG format
Parameters
Returns
See also
Definition at line 153 of file ipv4.c.
Generated automatically by Doxygen for libnetfilter_queue from the source code.
Version 1.0.5 | libnetfilter_queue |