ring: purge timer before we unmap tx ring buffers
commit367efea8c9ba557a81158a69ecee267706a520eb
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 28 Mar 2013 17:48:25 +0000 (28 18:48 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Thu, 28 Mar 2013 17:48:25 +0000 (28 18:48 +0100)
tree461ddf127e076a99d792e59006fd599ad1704c01
parentb55fde49e9f3e772b62e175cdbbec8f9fcc77567
ring: purge timer before we unmap tx ring buffers

If we unmap TX ring buffers and still have timer shots that trigger
the kernel to traverse the TX_RING, it can send out random crap in
some situations. Prevent this by destroying the timer and flush the
TX_RING first in wait mode.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
netsniff-ng.c
ring_rx.c
ring_tx.c
ring_tx.h
trafgen.c