logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nfq_cfg - Config helpers

Author

       Generated automatically by Doxygen for libnetfilter_queue from the source code.

libnetfilter_queue                                Version 1.0.5                                       nfq_cfg(3)

Detailed Description

Function Documentation

voidnfq_nlmsg_cfg_put_cmd(structnlmsghdr*nlh,uint16_tpf,uint8_tcmd)
       nfq_nlmsg_cfg_put_cmd Add netlink config command to netlink message

       Parametersnlh Pointer to netlink message
           pf Packet family (e.g. AF_INET)
           cmd nfqueue nfnetlink command.

       Possible commands are:

       • NFQNL_CFG_CMD_NONE: Do nothing. It can be useful to know if the queue subsystem is working.

       • NFQNL_CFG_CMD_BIND: Binds the program to a specific queue.

       • NFQNL_CFG_CMD_UNBIND: Unbinds the program to a specifiq queue.

       Obsolete commands:

       • NFQNL_CFG_CMD_PF_BIND:  Binds  to  process packets belonging to the given protocol family (ie. PF_INET,
         PF_INET6, etc).

       • NFQNL_CFG_CMD_PF_UNBIND: Unbinds from processing packets belonging to the given protocol  family.  Both
         commands are ignored by Linux kernel 3.8 and later versions.

       Definition at line 166 of file nlmsg.c.

   voidnfq_nlmsg_cfg_put_params(structnlmsghdr*nlh,uint8_tmode,intrange)
       nfq_nlmsg_cfg_put_params Add parameter to netlink message

       Parametersnlh Pointer to netlink message
           mode one of NFQNL_COPY_NONE, NFQNL_COPY_META or NFQNL_COPY_PACKET
           range value of parameter

       Definition at line 182 of file nlmsg.c.

   voidnfq_nlmsg_cfg_put_qmaxlen(structnlmsghdr*nlh,uint32_tqueue_maxlen)
       nfq_nlmsg_cfg_put_qmaxlen Add queue maximum length to netlink message

       Parametersnlh Pointer to netlink message
           queue_maxlen Maximum queue length

       Definition at line 197 of file nlmsg.c.

Name

       nfq_cfg - Config helpers

Synopsis

Functions
       void nfq_nlmsg_cfg_put_cmd (struct nlmsghdr *nlh, uint16_t pf, uint8_t cmd)
       void nfq_nlmsg_cfg_put_params (struct nlmsghdr *nlh, uint8_t mode, int range)
       void nfq_nlmsg_cfg_put_qmaxlen (struct nlmsghdr *nlh, uint32_t queue_maxlen)

return

See Also