Functions | |
struct udphdr * | nfq_udp_get_hdr (struct pkt_buff *pktb) |
nfq_udp_get_hdr - get the UDP header. More... | |
EXPORT_SYMBOL (nfq_udp_get_hdr) | |
void * | nfq_udp_get_payload (struct udphdr *udph, struct pkt_buff *pktb) |
nfq_udp_get_payload - get the UDP packet payload. More... | |
EXPORT_SYMBOL (nfq_udp_get_payload) | |
unsigned int | nfq_udp_get_payload_len (struct udphdr *udph, struct pkt_buff *pktb) |
nfq_udp_get_payload_len - get the udp packet payload. More... | |
EXPORT_SYMBOL (nfq_udp_get_payload_len) | |
void | nfq_udp_compute_checksum_ipv4 (struct udphdr *udph, struct iphdr *iph) |
nfq_udp_set_checksum_ipv4 - computes a IPv4/TCP packet's segment More... | |
EXPORT_SYMBOL (nfq_udp_compute_checksum_ipv4) | |
void | nfq_udp_compute_checksum_ipv6 (struct udphdr *udph, struct ip6_hdr *ip6h) |
nfq_udp_set_checksum_ipv6 - computes a IPv6/TCP packet's segment More... | |
EXPORT_SYMBOL (nfq_udp_compute_checksum_ipv6) | |
int | nfq_udp_mangle_ipv4 (struct pkt_buff *pkt, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len) |
nfq_tcp_mangle_ipv4 - mangle TCP/IPv4 packet buffer More... | |
EXPORT_SYMBOL (nfq_udp_mangle_ipv4) | |
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 More... | |
EXPORT_SYMBOL (nfq_udp_snprintf) | |
EXPORT_SYMBOL | ( | nfq_udp_get_hdr | ) |
EXPORT_SYMBOL | ( | nfq_udp_get_payload | ) |
EXPORT_SYMBOL | ( | nfq_udp_get_payload_len | ) |
EXPORT_SYMBOL | ( | nfq_udp_compute_checksum_ipv4 | ) |
EXPORT_SYMBOL | ( | nfq_udp_compute_checksum_ipv6 | ) |
EXPORT_SYMBOL | ( | nfq_udp_mangle_ipv4 | ) |
EXPORT_SYMBOL | ( | nfq_udp_snprintf | ) |
nfq_udp_set_checksum_ipv4 - computes a IPv4/TCP packet's segment
iphdrp | pointer to the ip header |
ippayload | payload of the ip packet |
References nfq_checksum_tcpudp_ipv4().
Referenced by nfq_udp_mangle_ipv4().
nfq_udp_set_checksum_ipv6 - computes a IPv6/TCP packet's segment
iphdrp | pointer to the ip header |
ippayload | payload of the ip packet |
References nfq_checksum_tcpudp_ipv6().
nfq_udp_get_hdr - get the UDP header.
head | pointer to the beginning of the packet |
tail | pointer to the tail of the packet |
This function returns NULL if invalid UDP header is found. On success, it returns the UDP header.
References NULL, pkt_buff::tail, and pkt_buff::transport_header.
nfq_udp_get_payload - get the UDP packet payload.
udph | the pointer to the UDP header. |
tail | pointer to the tail of the packet |
References len, NULL, pkt_buff::tail, and pkt_buff::transport_header.
nfq_udp_get_payload_len - get the udp packet payload.
udp | the pointer to the udp header. |
References pkt_buff::tail, and pkt_buff::transport_header.
int nfq_udp_mangle_ipv4 | ( | struct pkt_buff * | pkt, |
unsigned int | match_offset, | ||
unsigned int | match_len, | ||
const char * | rep_buffer, | ||
unsigned int | rep_len | ||
) |
nfq_tcp_mangle_ipv4 - mangle TCP/IPv4 packet buffer
pktb | pointer to network packet buffer |
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 |
References pkt_buff::network_header, nfq_ip_mangle(), and nfq_udp_compute_checksum_ipv4().
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
buf | pointer to buffer that is used to print the object |
size | size of the buffer (or remaining room in it). |
udp | pointer to a valid udp header. |