From 550c2d648a0447045662809e8e927b6c37007dfe Mon Sep 17 00:00:00 2001 From: Piotr Jurkiewicz Date: Thu, 22 Nov 2018 07:37:34 +0100 Subject: [PATCH] Fix bug introduced by "From*Device: Add SCALE parameter" Fixes bug introduced by 4bed2b3dd73864078d63d9bf89c0b4f7c0a4a7aa --- elements/userlevel/tonetmapdevice.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/elements/userlevel/tonetmapdevice.cc b/elements/userlevel/tonetmapdevice.cc index 29864ab7d2..1217609138 100644 --- a/elements/userlevel/tonetmapdevice.cc +++ b/elements/userlevel/tonetmapdevice.cc @@ -46,9 +46,12 @@ ToNetmapDevice::configure(Vector &conf, ErrorHandler *errh) if (Args(this, errh).bind(conf) .read_mp("DEVNAME", ifname) - .complete() < 0) + .consume() < 0) return -1; + if (parse(conf, errh) != 0) + return -1; + if (_internal_tx_queue_size < _burst * 2) { return errh->error("IQUEUE (%d) must be at least twice the size of BURST (%d)!",_internal_tx_queue_size, _burst); }