|
@@ -120,7 +120,7 @@ ntk_load_maps(void)
|
120
|
120
|
|
121
|
121
|
if (file_exist(server_opt.ext_map_file) &&
|
122
|
122
|
(me.ext_map = load_extmap(server_opt.ext_map_file, &me.cur_quadg)))
|
123
|
|
- debug(DBG_NORMAL, "External map loaded");
|
|
123
|
+ debug(DBG_NORMAL, "External map loaded from '%s'", server_opt.ext_map_file);
|
124
|
124
|
else
|
125
|
125
|
me.ext_map = init_extmap(FAMILY_LVLS, 0);
|
126
|
126
|
|
|
@@ -387,6 +387,7 @@ void
|
387
|
387
|
parse_options(int argc, char **argv)
|
388
|
388
|
{
|
389
|
389
|
int c, saved_argc = argc;
|
|
390
|
+ int if_n, if_dup;
|
390
|
391
|
optind = 0;
|
391
|
392
|
|
392
|
393
|
while (1) {
|
|
@@ -489,6 +490,16 @@ parse_options(int argc, char **argv)
|
489
|
490
|
if(server_opt.ifs_n+1 >= MAX_INTERFACES)
|
490
|
491
|
fatal("The maximum number of interfaces is %d",
|
491
|
492
|
MAX_INTERFACES);
|
|
493
|
+ if_dup = 0;
|
|
494
|
+ printf("IF COUNT : %d\n", server_opt.ifs_n);
|
|
495
|
+ for(if_n = 0; if_n < server_opt.ifs_n; if_n++) {
|
|
496
|
+ if(strncmp(server_opt.ifs[if_n], optarg, IFNAMSIZ-1) == 0) {
|
|
497
|
+ if_dup = 1;
|
|
498
|
+ printf("DEDUP !!!\n");
|
|
499
|
+ break;
|
|
500
|
+ }
|
|
501
|
+ }
|
|
502
|
+ if(if_dup) { break; }
|
492
|
503
|
server_opt.ifs[server_opt.ifs_n++]=xstrndup(optarg, IFNAMSIZ-1);
|
493
|
504
|
break;
|
494
|
505
|
case 'D':
|