Date: Fri, 24 Jan 2020 11:22:33 +0000 (UTC) From: Nick Hibma <n_hibma@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357074 - head/share/man/man4 Message-ID: <202001241122.00OBMXeq052108@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: n_hibma Date: Fri Jan 24 11:22:33 2020 New Revision: 357074 URL: https://svnweb.freebsd.org/changeset/base/357074 Log: Fix a few spacing issues to make the page more readable. Modified: head/share/man/man4/netmap.4 Modified: head/share/man/man4/netmap.4 ============================================================================== --- head/share/man/man4/netmap.4 Fri Jan 24 07:48:11 2020 (r357073) +++ head/share/man/man4/netmap.4 Fri Jan 24 11:22:33 2020 (r357074) @@ -985,7 +985,7 @@ interfaces, as in or even connect the NIC to the host stack using netmap .Dl bridge -i netmap:ix0 .Ss USING THE NATIVE API -The following code implements a traffic generator +The following code implements a traffic generator: .Pp .Bd -literal -compact #include <net/netmap_user.h> @@ -1020,7 +1020,8 @@ void sender(void) } .Ed .Ss HELPER FUNCTIONS -A simple receiver can be implemented using the helper functions +A simple receiver can be implemented using the helper functions: +.Pp .Bd -literal -compact #define NETMAP_WITH_LIBS #include <net/netmap_user.h> @@ -1049,6 +1050,7 @@ it is possible to do packet forwarding between ports swapping buffers. The buffer from the transmit ring is used to replenish the receive ring: +.Pp .Bd -literal -compact uint32_t tmp; struct netmap_slot *src, *dst;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001241122.00OBMXeq052108>