mirror of
https://github.com/opnsense/src.git
synced 2026-03-21 02:10:09 -04:00
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 |
||
|---|---|---|
| .. | ||
| bridge.8 | ||
| bridge.c | ||
| ctrs.h | ||
| lb.8 | ||
| lb.c | ||
| Makefile | ||
| nmreplay.8 | ||
| nmreplay.c | ||
| pkt-gen.8 | ||
| pkt-gen.c | ||
| pkt_hash.c | ||
| pkt_hash.h | ||
| README | ||
| vale-ctl.4 | ||
| vale-ctl.c | ||
$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