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

Small fixes to transmit pacing rate. #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/nettest_bsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ TCP/UDP BSD Sockets Test Options:\n\
-N Use the connected socket for UDP remotely\n\
-p min[,max] Set the min/max port numbers for TCP_CRR, TCP_TRR\n\
-P local[,remote] Set the local/remote port for the data socket\n\
-q rate Transmit pacing rate\n\
-r req,[rsp] Set request/response sizes (TCP_RR, UDP_RR)\n\
-s send[,recv] Set local socket send/recv buffer sizes\n\
-S send[,recv] Set remote socket send/recv buffer sizes\n\
Expand Down Expand Up @@ -13153,7 +13154,7 @@ scan_sockets_args(int argc, char *argv[])

{

#define SOCKETS_ARGS "aAb:CDnNhH:L:m:M:p:P:r:R:s:S:T:Vw:W:z46"
#define SOCKETS_ARGS "aAb:CDnNhH:L:m:M:p:P:q:r:R:s:S:T:Vw:W:z46"

extern char *optarg; /* pointer to option string */

Expand Down Expand Up @@ -13333,6 +13334,10 @@ scan_sockets_args(int argc, char *argv[])
if (arg2[0])
strncpy(remote_data_port,arg2,sizeof(remote_data_port));
break;
case 'q':
/* set the local socket pacing rate */
pacing_rate = convert(optarg);
break;
case 't':
/* set the test name */
strcpy(test_name,optarg);
Expand Down
3 changes: 2 additions & 1 deletion src/nettest_omni.c
Original file line number Diff line number Diff line change
Expand Up @@ -7108,6 +7108,7 @@ OMNI and Migrated BSD Sockets Test Options:\n\
Use filename of '?' to get the list of choices\n\
-p min[,max] Set the min/max port numbers for TCP_CRR, TCP_TRR\n\
-P local[,remote] Set the local/remote port for the data socket\n\
-q rate Transmit pacing rate\n\
-r req,[rsp] Set request/response sizes (TCP_RR, UDP_RR)\n\
-R 0/1 Allow routing of traffic on data connection.\n\
Default: 0 (off) for UDP_STREAM, 1 (on) otherwise\n\
Expand Down Expand Up @@ -7478,7 +7479,7 @@ scan_omni_args(int argc, char *argv[])
break;
case 'q':
/* set the local socket pacing rate */
pacing_rate = atoi(optarg);
pacing_rate = convert(optarg);
break;
case 'r':
/* set the request/response sizes. setting request/response
Expand Down