opnsense-src/tools/tools/netmap
Vincenzo Maffione 406e77236a netmap: pkt-gen: fix bug in send_packets()
The send_packets() function was using ring->cur as index to scan
the transmit ring. This function may also set ring->cur ahead of
ring->head, in case no more slots are available. However, the function
also uses nm_ring_space() which looks at ring->head to check how many
slots are available. If ring->head and ring->cur are different, this
results in pkt-gen advancing ring->cur beyond ring->tail.

This patch fixes send_packets() (and similar source locations) to
use ring->head as a index, rather than using ring->cur.

MFC after:	1 week
2019-03-01 09:10:16 +00:00
..
bridge.8 netmap: add load balancer program 2018-11-09 08:43:40 +00:00
bridge.c netmap: add man page for the bridge program 2018-10-23 15:34:43 +00:00
ctrs.h netmap: add load balancer program 2018-11-09 08:43:40 +00:00
lb.8 netmap: add load balancer program 2018-11-09 08:43:40 +00:00
lb.c netmap: add load balancer program 2018-11-09 08:43:40 +00:00
Makefile netmap: add load balancer program 2018-11-09 08:43:40 +00:00
nmreplay.8 netmap: update nmreplay(8) 2018-12-21 14:45:10 +00:00
nmreplay.c netmap: nmreplay: import various fixes from upstream (2704a51839906) 2018-12-21 13:56:57 +00:00
pkt-gen.8 netmap: pkt-gen: several updates from upstream 2018-11-10 15:10:22 +00:00
pkt-gen.c netmap: pkt-gen: fix bug in send_packets() 2019-03-01 09:10:16 +00:00
pkt_hash.c netmap: add load balancer program 2018-11-09 08:43:40 +00:00
pkt_hash.h netmap: add load balancer program 2018-11-09 08:43:40 +00:00
README netmap: add load balancer program 2018-11-09 08:43:40 +00:00
vale-ctl.4 netmap: add man page for the vale-ctl program 2018-10-24 16:01:56 +00:00
vale-ctl.c netmap: add man page for the vale-ctl program 2018-10-24 16:01:56 +00:00

$FreeBSD$

This directory contains applications that use the netmap API

	pkt-gen		a multi-function packet generator and traffic sink

	bridge		a two-port jumper wire, also using the netmap API

	vale-ctl	the program to control and inspect VALE switches

	lb		an L3/L4 load balancer

	nmreplay	a tool to playback a pcap file to a netmap port