netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nlmsg.c File Reference
#include <arpa/inet.h>
#include <time.h>
#include <endian.h>
#include <stdlib.h>
#include <string.h>
#include <libmnl/libmnl.h>
#include <linux/netfilter/nfnetlink_queue.h>
#include <libnetfilter_queue/libnetfilter_queue.h>
#include "internal.h"
Include dependency graph for nlmsg.c:

Macros

#define __aligned_be64   __be64 __attribute__((aligned(8)))
 
#define __aligned_le64   __le64 __attribute__((aligned(8)))
 

Functions

void nfq_nlmsg_verdict_put (struct nlmsghdr *nlh, int id, int verdict)
 
 EXPORT_SYMBOL (nfq_nlmsg_verdict_put)
 
void nfq_nlmsg_verdict_put_mark (struct nlmsghdr *nlh, uint32_t mark)
 
 EXPORT_SYMBOL (nfq_nlmsg_verdict_put_mark)
 
void nfq_nlmsg_verdict_put_pkt (struct nlmsghdr *nlh, const void *pkt, uint32_t plen)
 
 EXPORT_SYMBOL (nfq_nlmsg_verdict_put_pkt)
 
void nfq_nlmsg_cfg_put_cmd (struct nlmsghdr *nlh, uint16_t pf, uint8_t cmd)
 nfq_nlmsg_cfg_build_request- build netlink config message More...
 
 EXPORT_SYMBOL (nfq_nlmsg_cfg_put_cmd)
 
void nfq_nlmsg_cfg_put_params (struct nlmsghdr *nlh, uint8_t mode, int range)
 
 EXPORT_SYMBOL (nfq_nlmsg_cfg_put_params)
 
void nfq_nlmsg_cfg_put_qmaxlen (struct nlmsghdr *nlh, uint32_t queue_maxlen)
 
 EXPORT_SYMBOL (nfq_nlmsg_cfg_put_qmaxlen)
 
int nfq_nlmsg_parse (const struct nlmsghdr *nlh, struct nlattr **attr)
 nfq_pkt_parse - set packet attributes from netlink message More...
 
 EXPORT_SYMBOL (nfq_nlmsg_parse)
 

Macro Definition Documentation

#define __aligned_be64   __be64 __attribute__((aligned(8)))
#define __aligned_le64   __le64 __attribute__((aligned(8)))