.TH "nlmsg" 3 "Thu Jan 28 2021" "Version 1.0.5" "libnetfilter_queue" \" -*- nroff -*- .ad l .nh .SH NAME nlmsg \- Netlink message helper functions .SH SYNOPSIS .br .PP .SS "Functions" .in +1c .ti -1c .RI "int \fBnfq_nlmsg_parse\fP (const struct nlmsghdr *nlh, struct nlattr **attr)" .br .ti -1c .RI "struct nlmsghdr * \fBnfq_nlmsg_put\fP (char *buf, int type, uint32_t queue_num)" .br .in -1c .SH "Detailed Description" .PP .SH "Function Documentation" .PP .SS "int nfq_nlmsg_parse (const struct nlmsghdr * nlh, struct nlattr ** attr)" nfq_nlmsg_parse - set packet attributes from netlink message .PP \fBParameters\fP .RS 4 \fInlh\fP Pointer to netlink message .br \fIattr\fP Pointer to array of attributes to set .RE .PP \fBReturns\fP .RS 4 MNL_CB_OK on success or MNL_CB_ERROR if any error occurs .RE .PP .PP Definition at line 269 of file nlmsg\&.c\&. .SS "struct nlmsghdr* nfq_nlmsg_put (char * buf, int type, uint32_t queue_num)" nfq_nlmsg_put - Convert memory buffer into a Netlink buffer .PP \fBParameters\fP .RS 4 \fI*buf\fP Pointer to memory buffer .br \fItype\fP Either NFQNL_MSG_CONFIG or NFQNL_MSG_VERDICT .br \fIqueue_num\fP Queue number .RE .PP \fBReturns\fP .RS 4 Pointer to netlink message .RE .PP .PP Definition at line 283 of file nlmsg\&.c\&. .SH "Author" .PP Generated automatically by Doxygen for libnetfilter_queue from the source code\&.