Skip to contentSkip to conversation

src: doc: Fix messed-up Netlink message batch diagram

PATCH In review Duncan Roe 2 participants 2 messages Aug 8, 2021 – Aug 10, 2021 netfilter

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH 1/1 src: doc: Fix messed-up Netlink message batch diagram

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

---
 src/nlmsg.c | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
src/nlmsg.c +10 -9
index d398e63..ce37cbc 100644
@@ -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.
Signature · 1 line
2.17.5
#1 lore raw
Quoted 1 line · Duncan Roe

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

Also applied, thanks.