UDP source port


Hi,

I am using iperf to run some tests on our hardware. As the tests are 
running fine I ran across a problem.

I need to change the source port of the UDP packets in client mode. As I 
can see, there is no command line options for this. Is there a patch I need 
to apply to change the UDP source port?

I have tweaked Client.cpp/Listener.cpp/SocketAddr.c in order to bind() to a 
modified mSettings/inSettings ->local.sin_port and ->mPort but it just does 
not work. Maybe using a SOCK_RAW I could include the whole UDP header with 
the modified src/dst ports?

Before going any further into this, im asking for some light over this. Any 
kind of help would be appreciated.

Regards,



Other Mailing lists | Author Index | Date Index | Subject Index | Thread Index