Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP retry waits are incorrect #58

Open
aamcintosh opened this issue Oct 18, 2024 · 1 comment
Open

TCP retry waits are incorrect #58

aamcintosh opened this issue Oct 18, 2024 · 1 comment
Assignees

Comments

@aamcintosh
Copy link

Run the following with "retry -1/20" and nothing listening to port 6666 at the far end:

0 ON 10 TCP DST 192.168.1.101/6666 PERIODIC [1 400] COUNT 120
60.0 OFF 10
mgen: version 5.1.1
mgen: starting now ...
14:49:26.851824 START Mgen Version 5.1.1
14:49:26.852005 ON flow>10 srcPort>40697 dst>192.168.1.101/6666 
14:49:40.853109 RECONNECT flow>10 srcPort>40697 dst>192.168.1.101/6666 
14:49:54.854267 RECONNECT flow>10 srcPort>40697 dst>192.168.1.101/6666 
14:50:08.855712 RECONNECT flow>10 srcPort>40697 dst>192.168.1.101/6666 
14:50:22.857044 RECONNECT flow>10 srcPort>40697 dst>192.168.1.101/6666 
14:50:36.858349 RECONNECT flow>10 srcPort>40697 dst>192.168.1.101/6666 
14:50:50.859494 RECONNECT flow>10 srcPort>40697 dst>192.168.1.101/6666 

The retries are 14 seconds apart. 20 decimal is 14 hexadecimal.

Change this to "retry -1/10" and the output is:

mgen: version 5.1.1
mgen: starting now ...
14:51:47.579320 START Mgen Version 5.1.1
14:51:47.579537 ON flow>10 srcPort>41967 dst>192.168.1.101/6666 

i.e. no retries at all. 10 decimal is "a" hexadecimal.

Changing the other %x at line 1142 of common/mgenTransport.cpp to a %u fixes the problem. (See #56)

@weston-nrl
Copy link
Collaborator

This has been fixed, let me know if you have issues.

@weston-nrl weston-nrl self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants