[LTP] [PATCH 2/2] network/route: Rewrite route-change-gw into new API

Petr Vorel pvorel@suse.cz
Fri May 18 13:01:10 CEST 2018

Hi Alexey,

> On 17.05.2018 13:35, Petr Vorel wrote:
> > Drop route command (use just ip command), simplify

> I think the commit message should be more descriptive about the
> changes being made...
Make sense, I'll do.

> don't remember why the rewritten test is
> not using background traffic and not changing gateway anymore?
The current implementation was based on your suggestion for route-change-dst [1] (I'll
mention that in commit message), which uses ns-udpsender.  The other patch [2] is
changing gateway.

Tests used ns-udpsender in previous implementation and we decided to keep it as  use
background traffic isn't sufficient enough [3].

But ns-udpsender isn't good enough, as it doesn't check whether destination receive it [4].
And indeed you can pass it to any destination and it will not fail, e.g.:
ns-udpsender -f 4 -D -p 1 -o -s 1472

I guess we need to write another helper, which will listen for packets on remote side.
Any recommendations/ideas on it?

Kind regards,

[1] http://lists.linux.it/pipermail/ltp/2017-August/005367.html
[2] https://lists.linux.it/pipermail/ltp/2018-May/008152.html
[3] http://lists.linux.it/pipermail/ltp/2017-July/005125.html
[4] http://lists.linux.it/pipermail/ltp/2017-August/005336.html

More information about the ltp mailing list