diff options
author | Duncan Roe <duncan_roe@optusnet.com.au> | 2021-08-08 13:07:31 +1000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-08-10 17:40:21 +0200 |
commit | 2a3e927ec79e3a52d8cea60ccdfb8699b8a0d56e (patch) | |
tree | 69bc3966cc72d3e6c7aa719f4d24bfc07a702f8f | |
parent | ceab313e36b1d99481c961cf2f91c4734fac08fc (diff) |
src: doc: Fix messed-up Netlink message batch diagram
Put the diagram in a *verbatim* block (like all the other diagrams)
Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/nlmsg.c | 19 |
1 files 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. |