netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ipv4.c File Reference
#include <stdio.h>
#include <stdbool.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
#include <libnetfilter_queue/libnetfilter_queue_ipv4.h>
#include <libnetfilter_queue/pktbuff.h>
#include "internal.h"
Include dependency graph for ipv4.c:

Functions

struct iphdr * nfq_ip_get_hdr (struct pkt_buff *pktb)
 nfq_ip_get_hdr - get IPv4 header More...
 
 EXPORT_SYMBOL (nfq_ip_get_hdr)
 
int nfq_ip_set_transport_header (struct pkt_buff *pktb, struct iphdr *iph)
 nfq_ip_set_transport_header - set transport header More...
 
 EXPORT_SYMBOL (nfq_ip_set_transport_header)
 
void nfq_ip_set_checksum (struct iphdr *iph)
 nfq_ip_set_checksum - set IPv4 checksum More...
 
 EXPORT_SYMBOL (nfq_ip_set_checksum)
 
int nfq_ip_mangle (struct pkt_buff *pkt, unsigned int dataoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len)
 nfq_ip_mangle - mangle IPv4 packet buffer More...
 
 EXPORT_SYMBOL (nfq_ip_mangle)
 
int nfq_ip_snprintf (char *buf, size_t size, const struct iphdr *iph)
 nfq_pkt_snprintf_ip - print IPv4 header into buffer in iptables LOG format More...
 
 EXPORT_SYMBOL (nfq_ip_snprintf)