libnetfilter_queue
1.0.3
|
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_snprintf (char *buf, size_t size, const struct ip6_hdr *ip6h) |
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 | ||
) |
nfq_ip6_set_transport_header - set transport header pointer for IPv6 packet
pktb | pointer to user-space network packet buffer |
ip6h | pointer to IPv6 header |
target | protocol number to find transport header (ie. IPPROTO_*) |
This function returns 1 if the protocol has been found and the transport header has been set. Otherwise, it returns 0.
int nfq_ip6_snprintf | ( | char * | buf, |
size_t | size, | ||
const struct ip6_hdr * | ip6h | ||
) |