From: Duncan Roe <duncan_roe@optusnet.com.au>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH libnetfilter_queue v3 3/4] src: doc: Add \return for nflog_get_packet_hw()
Date: Mon, 27 Sep 2021 13:53:29 +1000 [thread overview]
Message-ID: <20210927035330.11390-3-duncan_roe@optusnet.com.au> (raw)
In-Reply-To: <20210927035330.11390-1-duncan_roe@optusnet.com.au>
Also indicate that hw_addrlen has NBO in struct nfulnl_msg_packet_hw
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
---
src/libnetfilter_log.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/libnetfilter_log.c b/src/libnetfilter_log.c
index 581f612..66669af 100644
--- a/src/libnetfilter_log.c
+++ b/src/libnetfilter_log.c
@@ -818,11 +818,15 @@ uint32_t nflog_get_physoutdev(struct nflog_data *nfad)
* The nfulnl_msg_packet_hw structure is defined in libnetfilter_log.h as:
* \verbatim
struct nfulnl_msg_packet_hw {
- uint16_t hw_addrlen;
+ uint16_t hw_addrlen; // Network Byte Order
uint16_t _pad;
uint8_t hw_addr[8];
} __attribute__ ((packed));
\endverbatim
+ *
+ * \return Pointer to struct nfulnl_msg_packet_hw from originating host
+ * or NULL if none available (e.g. locally-originated packet not for \b lo
+ * interface).
*/
struct nfulnl_msg_packet_hw *nflog_get_packet_hw(struct nflog_data *nfad)
{
--
2.17.5
next prev parent reply other threads:[~2021-09-27 3:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 3:53 [PATCH libnetfilter_queue v3 1/4] src: doc: revise doxygen for all other modules Duncan Roe
2021-09-27 3:53 ` [PATCH libnetfilter_queue v3 2/4] src: doc: Insert SYNOPSIS sections for man pages Duncan Roe
2021-09-27 3:53 ` Duncan Roe [this message]
2021-09-27 3:53 ` [PATCH libnetfilter_queue v3 4/4] src: doc: Document nflog_callback_register() and nflog_handle_packet() Duncan Roe
2021-09-28 0:57 ` [PATCH libnetfilter_queue v3 1/4] src: doc: revise doxygen for all other modules Duncan Roe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210927035330.11390-3-duncan_roe@optusnet.com.au \
--to=duncan_roe@optusnet.com.au \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).