@@ -47,7 +47,6 @@ struct flags_parser *add_flags_common(struct flags_parser *fp)
4747 DEFINE_FLAG (fp , double , interval , 1.0 , 'I' , "For how many seconds that a sample is generated" );
4848 DEFINE_FLAG (fp , long long , max_pacing_rate , 0 , 'm' , "SO_MAX_PACING_RATE value; use as 64-bit unsigned" );
4949 DEFINE_FLAG_PARSER (fp , max_pacing_rate , parse_max_pacing_rate );
50- DEFINE_FLAG (fp , int , mark , 0 , 'M' , "SO_MARK value; use as 32-bit unsigned" );
5150 DEFINE_FLAG (fp , const char * , local_hosts , NULL , 'L' , "Local hostnames or IP addresses" );
5251 DEFINE_FLAG (fp , const char * , host , NULL , 'H' , "Server hostname or IP address" );
5352 DEFINE_FLAG (fp , const char * , control_port , "12866" , 'C' , "Server control port" );
@@ -96,6 +95,7 @@ struct flags_parser *add_flags_rr(struct flags_parser *fp)
9695 DEFINE_FLAG_PRINTER (fp , percentiles , percentiles_print );
9796 DEFINE_FLAG (fp , int , test_length , 10 , 'l' , "Test length, >0 seconds, <0 transactions" );
9897 DEFINE_FLAG (fp , int , buffer_size , 65536 , 'B' , "Number of bytes that each read()/send() can transfer at once" );
98+ DEFINE_FLAG (fp , int , mark , 0 , 0 , "SO_MARK value; use as 32-bit unsigned" );
9999
100100 /* Return the updated fp */
101101 return (fp );
@@ -122,6 +122,7 @@ struct flags_parser *add_flags_tcp_rr(struct flags_parser *fp)
122122 DEFINE_FLAG (fp , unsigned long , delay , 0 , 'D' , "Delay between each send()/write() in ns (default), us, ms, or s" );
123123 DEFINE_FLAG_PARSER (fp , delay , parse_duration );
124124 DEFINE_FLAG (fp , bool , async_connect , false, 0 , "use non blocking connect" );
125+ DEFINE_FLAG (fp , bool , reuseaddr , false, 0 , "Use SO_REUSEADDR on sockets" );
125126 DEFINE_FLAG (fp , unsigned long , noburst , 0 , 0 , "noburst interval in ns (default), us, ms, or s" );
126127 DEFINE_FLAG_PARSER (fp , noburst , parse_duration );
127128
@@ -151,6 +152,7 @@ struct flags_parser *add_flags_tcp_stream(struct flags_parser *fp)
151152 DEFINE_FLAG (fp , bool , enable_tcp_maerts , false, 'M' , "Enables TCP_MAERTS test (server writes and client reads). It overrides enable_read, and enable_write" );
152153 DEFINE_FLAG (fp , bool , async_connect , false, 0 , "use non blocking connect" );
153154 DEFINE_FLAG (fp , bool , no_cork , false, 0 , "Do not set MSG_MORE when sending over data sockets." );
155+ DEFINE_FLAG (fp , int , mark , 0 , 'M' , "SO_MARK value; use as 32-bit unsigned" );
154156
155157 /* Return the updated fp */
156158 return (fp );
@@ -170,6 +172,7 @@ struct flags_parser *add_flags_udp_stream(struct flags_parser *fp)
170172 /* Define flags specialized to only UDP_STREAM */
171173 DEFINE_FLAG (fp , unsigned long , delay , 0 , 'D' , "Nanosecond delay between each send()/write()" );
172174 DEFINE_FLAG (fp , int , buffer_size , 1400 , 'B' , "Number of bytes that each read/write uses as the buffer" );
175+ DEFINE_FLAG (fp , int , mark , 0 , 'M' , "SO_MARK value; use as 32-bit unsigned" );
173176
174177 /* Return the updated fp */
175178 return (fp );
0 commit comments