nfq_nlmsg_cfg_put_cmd Add netlink config command to netlink message
- Parameters
-
nlh | 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.