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

nlmsg - Netlink message helper functions

Author

       Generated automatically by Doxygen for libnetfilter_queue from the source code.

libnetfilter_queue                                Version 1.0.5                                         nlmsg(3)

Detailed Description

Function Documentation

intnfq_nlmsg_parse(conststructnlmsghdr*nlh,structnlattr**attr)
       nfq_nlmsg_parse - set packet attributes from netlink message

       Parametersnlh Pointer to netlink message
           attr Pointer to array of attributes to set

       Returns
           MNL_CB_OK on success or MNL_CB_ERROR if any error occurs

       Definition at line 269 of file nlmsg.c.

   structnlmsghdr*nfq_nlmsg_put(char*buf,inttype,uint32_tqueue_num)
       nfq_nlmsg_put - Convert memory buffer into a Netlink buffer

       Parameters*buf Pointer to memory buffer
           type Either NFQNL_MSG_CONFIG or NFQNL_MSG_VERDICT
           queue_num Queue number

       Returns
           Pointer to netlink message

       Definition at line 283 of file nlmsg.c.

Name

       nlmsg - Netlink message helper functions

Synopsis

Functions
       int nfq_nlmsg_parse (const struct nlmsghdr *nlh, struct nlattr **attr)
       struct nlmsghdr * nfq_nlmsg_put (char *buf, int type, uint32_t queue_num)

See Also