Revision ebeb853f

View differences:

streamer.c
78 78
extern const char *topo_keep_best_policy;
79 79
extern const char *topo_add_best_policy;
80 80
extern const char *topo_black_list_policy;
81
extern int subnet;
81 82

  
82 83
#ifndef MONL
83 84
extern struct timeval print_tdiff;
......
202 203
        {"topo_keep_best", required_argument, 0, 0},
203 204
        {"topo_add_best", required_argument, 0, 0},
204 205
        {"topo_black_list", required_argument, 0, 0},
206
        {"subnet", required_argument, 0, 0},
205 207
	{0, 0, 0, 0}
206 208
  };
207 209

  
......
217 219
        if( strcmp( "randomize_start", long_options[option_index].name ) == 0 ) { randomize_start = atoi(optarg); }
218 220
        if( strcmp( "capacity_override", long_options[option_index].name ) == 0 ) { capacity_override = atod_kmg(optarg); }
219 221
        if( strcmp( "topo_mem", long_options[option_index].name ) == 0 ) { topo_mem = atof(optarg); }
220
        else if( strcmp( "topo_in", long_options[option_index].name ) == 0 ) { topo_in = true; topo_out = false; }
221
        else if( strcmp( "topo_out", long_options[option_index].name ) == 0 ) { topo_in = false; topo_out = true; }
222
        else if( strcmp( "topo_bidir", long_options[option_index].name ) == 0 ) { topo_in = true; topo_out = true; }
223
        else if( strcmp( "topo_keep_best", long_options[option_index].name ) == 0 ) { topo_keep_best = true; topo_keep_best_policy = strdup(optarg); }
224
        else if( strcmp( "topo_add_best", long_options[option_index].name ) == 0 ) { topo_add_best = true; topo_add_best_policy = strdup(optarg);}
225
        else if( strcmp( "topo_black_list", long_options[option_index].name ) == 0 ) { topo_black_list = true;        topo_black_list_policy = strdup(optarg); }
222
        if( strcmp( "topo_in", long_options[option_index].name ) == 0 ) { topo_in = true; topo_out = false; }
223
        if( strcmp( "topo_out", long_options[option_index].name ) == 0 ) { topo_in = false; topo_out = true; }
224
        if( strcmp( "topo_bidir", long_options[option_index].name ) == 0 ) { topo_in = true; topo_out = true; }
225
        if( strcmp( "topo_keep_best", long_options[option_index].name ) == 0 ) { topo_keep_best = true; topo_keep_best_policy = strdup(optarg); }
226
        if( strcmp( "topo_add_best", long_options[option_index].name ) == 0 ) { topo_add_best = true; topo_add_best_policy = strdup(optarg);}
227
        if( strcmp( "topo_black_list", long_options[option_index].name ) == 0 ) { topo_black_list = true;        topo_black_list_policy = strdup(optarg); }
228
        if( strcmp( "subnet", long_options[option_index].name ) == 0 ) { subnet = atoi(optarg); }
226 229
        break;
227 230
      case 'a':
228 231
        alpha_target = (double)atoi(optarg);

Also available in: Unified diff