|
@@ -28,7 +28,8 @@ int output_interval_max=0*1000;
|
|
|
|
|
|
int fix_latency=0;
|
|
|
|
|
|
-address_t local_addr,remote_addr;
|
|
|
+bool has_b=false;
|
|
|
+address_t local_addr,remote_addr,bind_addr;
|
|
|
//u32_t local_ip_uint32,remote_ip_uint32=0;
|
|
|
//char local_ip[100], remote_ip[100];
|
|
|
//int local_port = -1, remote_port = -1;
|
|
@@ -654,6 +655,7 @@ void process_arg(int argc, char *argv[])
|
|
|
{"queue-len", required_argument, 0,'q'},
|
|
|
{"fec", required_argument, 0,'f'},
|
|
|
{"jitter", required_argument, 0,'j'},
|
|
|
+ {"bind", required_argument, 0,'b'},
|
|
|
{"header-overhead", required_argument, 0, 1},
|
|
|
//{"debug-fec", no_argument, 0, 1},
|
|
|
{"debug-fec-enc", no_argument, 0, 1},
|
|
@@ -717,7 +719,7 @@ void process_arg(int argc, char *argv[])
|
|
|
|
|
|
|
|
|
int no_l = 1, no_r = 1;
|
|
|
- while ((opt = getopt_long(argc, argv, "l:r:hcsk:j:f:p:n:i:q:",long_options,&option_index)) != -1)
|
|
|
+ while ((opt = getopt_long(argc, argv, "l:r:hcsk:j:f:p:n:i:q:b",long_options,&option_index)) != -1)
|
|
|
{
|
|
|
//string opt_key;
|
|
|
//opt_key+=opt;
|
|
@@ -824,6 +826,10 @@ void process_arg(int argc, char *argv[])
|
|
|
no_r = 0;
|
|
|
remote_addr.from_str(optarg);
|
|
|
break;
|
|
|
+ case 'b':
|
|
|
+ has_b = true;
|
|
|
+ bind_addr.from_str(optarg);
|
|
|
+ break;
|
|
|
case 'h':
|
|
|
break;
|
|
|
case 1:
|