netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libmnl] src: doc: Fix messed-up Netlink message batch diagram
@ 2021-08-08  3:07 Duncan Roe
  2021-08-10 15:44 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Duncan Roe @ 2021-08-08  3:07 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

Put the diagram in a *verbatim* block (like all the other diagrams)

Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
---
 src/nlmsg.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/nlmsg.c b/src/nlmsg.c
index d398e63..ce37cbc 100644
--- a/src/nlmsg.c
+++ b/src/nlmsg.c
@@ -381,15 +381,16 @@ EXPORT_SYMBOL void mnl_nlmsg_fprintf(FILE *fd, const void *data, size_t datalen,
  * datagram. These helpers do not perform strict memory boundary checkings.
  *
  * The following figure represents a Netlink message batch:
- *
- *   |<-------------- MNL_SOCKET_BUFFER_SIZE ------------->|
- *   |<-------------------- batch ------------------>|     |
- *   |-----------|-----------|-----------|-----------|-----------|
- *   |<- nlmsg ->|<- nlmsg ->|<- nlmsg ->|<- nlmsg ->|<- nlmsg ->|
- *   |-----------|-----------|-----------|-----------|-----------|
- *                                             ^           ^
- *                                             |           |
- *                                        message N   message N+1
+ *\verbatim
+   |<-------------- MNL_SOCKET_BUFFER_SIZE ------------->|
+   |<-------------------- batch ------------------>|     |
+   |-----------|-----------|-----------|-----------|-----------|
+   |<- nlmsg ->|<- nlmsg ->|<- nlmsg ->|<- nlmsg ->|<- nlmsg ->|
+   |-----------|-----------|-----------|-----------|-----------|
+					     ^           ^
+					     |           |
+					message N   message N+1
+\endverbatim
  *
  * To start the batch, you have to call mnl_nlmsg_batch_start() and you can
  * use mnl_nlmsg_batch_stop() to release it.
-- 
2.17.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH libmnl] src: doc: Fix messed-up Netlink message batch diagram
  2021-08-08  3:07 [PATCH libmnl] src: doc: Fix messed-up Netlink message batch diagram Duncan Roe
@ 2021-08-10 15:44 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2021-08-10 15:44 UTC (permalink / raw)
  To: Duncan Roe; +Cc: netfilter-devel

On Sun, Aug 08, 2021 at 01:07:31PM +1000, Duncan Roe wrote:
> Put the diagram in a *verbatim* block (like all the other diagrams)

Also applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-10 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-08  3:07 [PATCH libmnl] src: doc: Fix messed-up Netlink message batch diagram Duncan Roe
2021-08-10 15:44 ` Pablo Neira Ayuso

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).