Hi all, it seems that tcpreplay-edit does the trick ...
After issuing the following comand line wireshark can capture my network UDP flow after the destination address has been rewritten:
sudo tcpreplay-edit -i eth0 -N X.X.X.X/NN:Y.Y.Y.Y,Z.Z.Z.Z/MM:D.D.D.D <my .pcapng file>
where
X.X:X.X is the original source address and NN its netmask
Y.Y.Y.Y is X.X.X.X substitute
Z.Z.Z.Z is the original destination address and MM its netmask
and finally
D.D.D.D is an address I own and control that substitutes Z.Z.Z.Z
<my .pcapng file> is my dump file.
with this settings the respective ports are preserved but they could be changed as well using the -r switch (or so I think it would be possible ...)
Now I have only to write something that reads my packets, or at least I hope so ...
Thank you all for helping me with precious advices.
Have a nice day :-)
-- Mistakes are portals of discovery - JAAJ
--- --------------------------------------------------------------